Open torymartin88 opened 10 years ago
I should note that we've tried a good number of things to resolve this. IIS Config, Cassette Settings Config, etc.
I also browsed through the source for Cassette and found this... https://github.com/andrewdavey/cassette/blob/ed1b6c332c37555f6eaca9f02e91beb3c98b5255/src/Cassette/VirtualDirectoryPrepender.cs
But not sure exactly if that's what I'm looking for.
Cassette doesn't work with ASP.NET's "virtual files". It only looks at the physical file system.
In the past, when wanting to share some common bundles between multiple sites, I've created symbolic links (via mklink
in cmd) to the common bundle directory. This way they appear to Cassette as just another directory in the file system.
Confirmed that this does work. Like a charm.
mklink /D "C:\sitefiles\sitefolder\adminportal" "D:\sitefiles\sharedfiles\adminportal"
Thanks!
We are running into an issue using Cassette with asset bundles located in a Virtual Directory set up in IIS (We have Cassette up and running without Virtual Directories btw and it works great!).
Here is an example of our current setup. Each site directory is set up as IIS application as normal. Site location on disk: c:/sitefiles/sitename CMS admin portal location on disk: c:/sitefiles/sharedfiles/adminportal
The CMS admin portal is setup in the IIS as a virtual directory for each site. sitename.com/adminportal -or- c:/sitefiles/sitename/adminportal
So a Cassette reference in /adminportal/Login/Default.aspx looks like this
Therefore when Cassette references the bundle we are getting the following error.
Files and bundles outside the Virtual Directory work fine.
So when I copy the admin files directly into the site directory everything works fine. But when outside of the site files and setup as a virtual directory it no longer works.
Obviously we could duplicate the admin portal on each site, but that really puts a kink in our upgrading system.
Just looking to see if anyone else has had this problem. I've found a few that look similar-ish, but not quite.
https://github.com/andrewdavey/cassette/issues/138 (perhaps the same issue, but not well explained, hopefully I've done a little bit better of a job... :) https://github.com/andrewdavey/cassette/issues/209 https://github.com/andrewdavey/cassette/issues/234