Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IsolatedStorageException: Unable to create the store directory #6

Closed
tkarpinski opened this issue Jul 25, 2011 · 12 comments
Closed

IsolatedStorageException: Unable to create the store directory #6

tkarpinski opened this issue Jul 25, 2011 · 12 comments

Comments

@tkarpinski
Copy link

Create and Publishn MVC3 app with Cassette.Web 0.5.2 to a Server 2008 R2 box with standard permissions (i.e. nothing's been modified). The following error occurs without any additional code changes outside of installing the NuGet Package

Unable to create the store directory. (Exception from HRESULT: 0x80131468)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.IsolatedStorage.IsolatedStorageException: Unable to create the store directory. (Exception from HRESULT: 0x80131468)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[IsolatedStorageException: Unable to create the store directory. (Exception from HRESULT: 0x80131468)]
   Cassette.Web.ExceptionCachedManager.CreatePageAssetManager(HttpContextBase httpContext) +92
   Cassette.Web.CassetteHttpModule.<Init>b__0(Object sender, EventArgs e) +173
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +266
@andrewdavey
Copy link
Owner

Which user account is IIS running under? I need to check if there's a reason it can't access isolated storage.

@tkarpinski
Copy link
Author

I'm using the standard AppPool - ASP.NET v4.0 - (ApplicationPoolIdentity)

@andrewdavey
Copy link
Owner

Please try pulling the source for Cassette and changing line 21 of Cassette.Web\CassetteApplication.cs to:

IsolatedStorageFile.GetMachineStoreForAssembly()

I'm hoping the app pool account can access that location instead.

@tkarpinski
Copy link
Author

I think that did the trick - the exception is gone. now I'll move onto using it.

@andrewdavey
Copy link
Owner

Thank you for testing that. I will try to get it into the source this week and update the nuget package.

@kaatula
Copy link

kaatula commented Jul 26, 2011

Hi Andrew,
I ran into the same problem and fixed it in the same way.

Maybe it makes sense to allow this feature to be configurable through config section?

Thanks

@andrewdavey
Copy link
Owner

Cassette v0.5.3 uses GetMachineStoreForAssembly so should fix this issue. Can someone please verify. Thanks.

@kaatula
Copy link

kaatula commented Jul 27, 2011

Just after updating to 0.5.3 and deploying (Windows 2008 R2 virtual maching, AppPoolIdentity user, .NET 4) i got some exception, but I believe it's related with my changes in Cassette. I had manually cleared isolated storage in my Users directory, and web site started working just fine.

Just for your info, that's exception which I got (but I still believe it's my problem, not your one):
'''Server Error in '/' Application.
Unable to delete file.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.IsolatedStorage.IsolatedStorageException: Unable to delete file.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[IsolatedStorageException: Unable to delete file.]
Cassette.Web.ExceptionCachedManager.CreatePageAssetManager(HttpContextBase httpContext) in D:\Sandbox\andrewdavey-cassette-dee75e7\src\Cassette.Web\ExceptionCachedManager.cs:28
Cassette.Web.CassetteHttpModule.b__0(Object sender, EventArgs e) in D:\Sandbox\andrewdavey-cassette-dee75e7\src\Cassette.Web\CassetteHttpModule.cs:14
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +266

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1'''

@andrewdavey
Copy link
Owner

Sorry, it seems I forgot to push Cassette.Web 0.5.3. It's now there. Please update and try it again.

@ChrisMH
Copy link
Contributor

ChrisMH commented Aug 19, 2011

0.5.4 Still uses GetMachineStoreForDomain and I am getting this error in IISExpress.

Changing to GetMachineStoreForAssembly fixes the issue.

Am I missing something, or did you decide not to push this change?

@andrewdavey
Copy link
Owner

Erm, that's odd. Perhaps I messed up the nuget build...

I'm very close to releasing the big-rewrite of Cassette (big-rewrite branch for those who want a peak). It should have bugs like this squashed and lots of new features to play with. So I hope you don't mind waiting just a little longer :)

@andrewdavey
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants