Git Product home page Git Product logo

Comments (12)

andrewdavey avatar andrewdavey commented on June 25, 2024

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

from cassette.

tkarpinski avatar tkarpinski commented on June 25, 2024

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

from cassette.

andrewdavey avatar andrewdavey commented on June 25, 2024

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.

from cassette.

tkarpinski avatar tkarpinski commented on June 25, 2024

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

from cassette.

andrewdavey avatar andrewdavey commented on June 25, 2024

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

from cassette.

kaatula avatar kaatula commented on June 25, 2024

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

from cassette.

andrewdavey avatar andrewdavey commented on June 25, 2024

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

from cassette.

kaatula avatar kaatula commented on June 25, 2024

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'''

from cassette.

andrewdavey avatar andrewdavey commented on June 25, 2024

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

from cassette.

ChrisMH avatar ChrisMH commented on June 25, 2024

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?

from cassette.

andrewdavey avatar andrewdavey commented on June 25, 2024

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 :)

from cassette.

andrewdavey avatar andrewdavey commented on June 25, 2024

Fixed in 0.6
https://github.com/andrewdavey/cassette/blob/master/src/Cassette.Web/StartUp.cs#L50

from cassette.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.