andrewdavey/cassette — Issue #154: Unable to determine granted permission for assembly. Cassette.Web
Author: nazjunaid
Created: 2012-02-01 14:10:55+00:00
State: open

When using the release dlls (debug is fine) of current master I get the following error

Unable to determine granted permission for assembly.

```
Line 18: public static IsolatedStorageFile IsolatedStorageFile
Line 19: {
Line 20: get { return LazyStorage.Value; }
Line 21: }
Line 22:

[IsolatedStorageException: Unable to determine granted permission for assembly.]
System.IO.IsolatedStorage.IsolatedStorage.InitStore(IsolatedStorageScope scope, Type domainEvidenceType, Type assemblyEvidenceType) +746
System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedStorageScope scope, Type domainEvidenceType, Type assemblyEvidenceType) +77
System.Lazy`1.CreateValue() +12770415
System.Lazy`1.LazyInitValue() +355
Cassette.Web.IsolatedStorageContainer.get_IsolatedStorageFile() in C:\Websites\Git\forks\cassette\src\Cassette.Web\IsolatedStorageContainer.cs:20
Cassette.IO.IsolatedStorageFile.get_Exists() in C:\Websites\Git\forks\cassette\src\Cassette\IO\IsolatedStorageFile.cs:46
Cassette.Manifests.CassetteManifestCache.LoadCassetteManifest() in C:\Websites\Git\forks\cassette\src\Cassette\Manifests\CassetteManifestCache.cs:17
Cassette.Configuration.CachedBundleContainerFactory.Create(IEnumerable`1 unprocessedBundles) in C:\Websites\Git\forks\cassette\src\Cassette\Configuration\CachedBundleContainerFactory.cs:27
Cassette.Web.CassetteApplicationContainerFactory.CreateCassetteApplicationCore() in C:\Websites\Git\forks\cassette\src\Cassette.Web\CassetteApplicationContainerFactory.cs:82
Cassette.CassetteApplicationContainerFactoryBase`1.CreateApplication() in C:\Websites\Git\forks\cassette\src\Cassette\CassetteApplicationContainerFactoryBase.cs:51
Cassette.CassetteApplicationContainer`1.CreateApplication() in C:\Websites\Git\forks\cassette\src\Cassette\CassetteApplicationContainer.cs:135
System.Lazy`1.CreateValue() +12770415
System.Lazy`1.LazyInitValue() +355
Cassette.Web.StartUp.PostApplicationStart() in C:\Websites\Git\forks\cassette\src\Cassette.Web\StartUp.cs:63

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +0
System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +152
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +396
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +38
System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +35
WebActivator.BaseActivationMethodAttribute.InvokeMethod() +341
WebActivator.ActivationManager.RunActivationMethods() +787
WebActivator.ActivationManager.RunPostStartMethods() +38
WebActivator.StartMethodCallingModule.Init(HttpApplication context) +159
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +575
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +352
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11700592
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4868789
```