I have website which using Visual Studio 4 (.NET Framework 4) and bundling, and it runs locally on my machine (from Visual Studio) and also runs locally on the server just fine (using ...localhost/myWebsite/myWebPage.aspx).

But, when I access the page from the outside (..myDomain/myWebsite/myWebPage.aspx), I am getting the error

Failed to load resource: the server responded with a status of 404 (Not Found)
...//myDomain/myWebsite/bundles/jquery?v=Hd6gS6lVluRXliWH-rB-gFCWqe5KCgDBB4IJl6ONpB01

The error is on the line

 </title>
    <script src="/myWebsite/bundles/jquery?v=Hd6gS6lVluRXliWH-rB-gFCWqe5KCgDBB4IJl6ONpB01">
 </script>

In my website folder, there is no real folder whose name is "bundles".

This is in Global.asa.cs

using System.Web.Optimization;
void Application_Start(object sender, EventArgs e)
{
RegisterBundles(BundleTable.Bundles);
}
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/scripts/myJSFile.js",
"~/scripts/jquery-1.4.1-vsdoc.js",
"~/scripts/jquery-1.4.1.js"
));
}

This is in the master page

<head runat="server">
<title></title>
<%: Scripts.Render("~/bundles/jquery")%> //-->>> ERROR HERE

I downloaded the hot fix from ...support.microsoft.com/en-us/kb/980368, but when trying to install it on my Server 2008 R2 64bit, I got the error

Windows Update Standalone Installer. The update is not applicable to your computer.

Somebody mentioned that "this hot fix is rolled up in server 2008 r2 sp1", but our server 2008 R2 64 bit already has SP1.

How can I fix this error ?

0

There are 0 answers