Comments (12)
Which user account is IIS running under? I need to check if there's a reason it can't access isolated storage.
from cassette.
I'm using the standard AppPool - ASP.NET v4.0 - (ApplicationPoolIdentity)
from cassette.
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.
I think that did the trick - the exception is gone. now I'll move onto using it.
from cassette.
Thank you for testing that. I will try to get it into the source this week and update the nuget package.
from cassette.
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.
Cassette v0.5.3 uses GetMachineStoreForAssembly
so should fix this issue. Can someone please verify. Thanks.
from cassette.
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.
Sorry, it seems I forgot to push Cassette.Web 0.5.3. It's now there. Please update and try it again.
from cassette.
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.
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.
Fixed in 0.6
https://github.com/andrewdavey/cassette/blob/master/src/Cassette.Web/StartUp.cs#L50
from cassette.
Related Issues (20)
- Infinite loop between ExceptionCatchingBundleCollectionInitializer and BundleCollection.GetReadLock HOT 3
- Remove legacy classic pipeline web.config transforms HOT 1
- Strange behavior using Web Deploy HOT 1
- Azure + Release = 500 on cassette.axd HOT 10
- Change ID of html template
- cassette rebuild is slow HOT 1
- Sorting assets in HtmlTemplateBundles
- Cassette.RequireJS breaks with most recent version of AjaxMin
- 304 Not Modified HOT 1
- When minifing comma operator syntax, the behaviour of the minified code changes
- Cassette stripping timing units from 0 values making CSS properties invalid HOT 1
- Support "defer" and "async" on scripts
- Support ASP.NET core HOT 3
- Fonts and CSS Animations for Semantic UI not working once bundled HOT 1
- Cassette does not include files in /fonts and /images.
- Cached Manifest.xml being empty breaks website
- CSS minification breaking calc() HOT 1
- setTimeout with lambda causes incorrect minification
- Can Cassette be used in react-native?
- Could not load type 'Cassette.Trace' from assembly 'Cassette, Version=2.4.2.13844, Culture=neutral, PublicKeyToken=null'. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cassette.