Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Root Path (~) not working on Helios #306

Open
JCKodel opened this issue Mar 18, 2015 · 1 comment
Open

Root Path (~) not working on Helios #306

JCKodel opened this issue Mar 18, 2015 · 1 comment

Comments

@JCKodel
Copy link

JCKodel commented Mar 18, 2015

I'm using Helios (Microsoft.AspNet.Loader.IIS), with this code on DefaultNancyBootstrapper:

`Bundle.JavaScript()
.Add("/Scripts/JavaScript1.js")
.Add("
/Scripts/JavaScript2.js")
.AsCached("JavaScripts", "~/Bundles/JavaScript");'

And Helios give me this error:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files\IIS Express\Scripts\JavaScript1.js'.

My mistake or SquishIt is not compatible with NancyFX running on Helios (not using MVC nor System.Web)?

@AlexCuse
Copy link
Collaborator

I am not very familiar with Nancy but I have looked into it - I think you need to define a root path provider for SquishIt if you haven't. This post details my most recent attempt to get things working - if you need to make any change with later versions I'd love to hear about it, we get these issues popping up on the mailing list from time to time and I'm not really familiar enough with nancy to be very helpful.

http://blogs.lessthandot.com/index.php/webdev/serverprogramming/squishit-and-nancy-part-deux/

https://github.com/AlexCuse/SquishIt.NancySample

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants