andrewdavey/cassette — Issue #138: Bundle Descriptor bugs when Site is Virtual Directory
Author: robasta
Created: 2012-01-17 07:29:45+00:00
State: open

I have the following file structure:
~/scripts
~/scripts/calendar

I have setup a bundles.txt in the calendar folder describing the references and ordering. This works perfectly when I run in Visual Studio. However, when I deploy the site as a virtual folder ("http:/localhost/mysite/")

My bundles.txt has:

Common.js
jquery.alert.js
wdCalendar_lang_US.js
jquery.calendar.js
*

[references]
~/scripts

I get an error saying:

Reference error in bundle descriptor for "~/Scripts/calendar". Cannot find "~/scripts".

The stacktace reads:

`
[AssetReferenceException: Reference error in bundle descriptor for "~/Scripts/calendar". Cannot find "~/scripts".]
Cassette.BundleContainer.ValidateBundleReferences() +347
Cassette.BundleContainer..ctor(IEnumerable``1 bundles) +33
Cassette.Configuration.BundleContainerFactory.Create(IEnumerable``1 unprocessedBundles, CassetteSettings settings) +122
Cassette.Web.StartUp.CreateCassetteApplication() +738
Cassette.CassetteApplicationContainer.CreateApplication() +67
System.Lazy``1.CreateValue() +361
System.Lazy``1.LazyInitValue() +104
System.Lazy``1.get_Value() +89
Cassette.CassetteApplicationContainer.get_Application() +11
Cassette.Web.CassetteHttpModule.HttpApplicationPostMapRequestHandler(Object sender, EventArgs e) +15
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75`