Reputation: 2153
I have this piece of code:
Page.ClientScript.RegisterClientScriptInclude(this.GetType(), Guid.NewGuid().ToString(), this.ResolveUrl("~/Scripts/min.js"));
When we push to our QA server - http://qa.example.com - it works just fine, but when we push to an address in the intranet - http://intranet/app - it won't find the script.
Any suggestions?
Upvotes: 0
Views: 441
Reputation: 6442
You Intranet's root is http://intranet not http://intranet/app - your RegisterClientScriptInclude in is looking in http://intranet/scripts/min.js not http://intranet/app/scripts.
Upvotes: 1