Everything works great locally and remotely when debug = "true". However, once published in release mode (and settings debug to false), all calls to the cassette.axd file throws a 500 with the following error message:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'script/js/dashboard/b955baf4713c9f6f2c09183f1d4217c560be3960.js'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.IsolatedStorage.IsolatedStorageFileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, IsolatedStorageFile isf)
at System.IO.IsolatedStorage.IsolatedStorageFileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, IsolatedStorageFile isf)
at System.IO.IsolatedStorage.IsolatedStorageFile.OpenFile(String path, FileMode mode, FileAccess access, FileShare share)
at Cassette.IO.IsolatedStorageFile.Open(FileMode mode, FileAccess access, FileShare fileShare)
at Cassette.IO.FileExtensions.OpenRead(IFile file)
at Cassette.CachedBundleContent.OpenStream()
at Cassette.Bundle.OpenStream()
at Cassette.Aspnet.BundleRequestHandler`1.SendBundle(Bundle bundle, String actualETag)
at Cassette.Aspnet.BundleRequestHandler`1.ProcessRequest(String path)
at Cassette.Aspnet.CassetteHttpHandler.CallBundleHandler(String pathInfo)
at Cassette.Aspnet.CassetteHttpHandler.CallPathInfoHandler(String pathInfo)
at Cassette.Aspnet.CassetteHttpHandler.ProcessRequest()
at Cassette.Aspnet.CassetteHttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
The bold text changes depending on the bundle it's trying to reference.
Raw url: /cassette.axd/script/b955baf4713c9f6f2c09183f1d4217c560be3960/js/dashboard
Any ideas what is causing this error?
Thanks
Mike