p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning ASP.NET 4.5.1 : in C# and VB (http://p2p.wrox.com/forumdisplay.php?f=754)
-   -   Chapter 11: Contact Us page, HTML Error 404.0 (http://p2p.wrox.com/showthread.php?t=93951)

MeTP December 30th, 2014 01:28 AM

Chapter 11: Contact Us page, HTTP Error 404.0
 
Hello. I'm working in Chapter 11 using the sample code that I downloaded from your site. Everything works fine except the Contact Us page (which is used extensively in this chapter). I have changed nothing at all in the downloaded code, however when I try to run the Contact Us page I receive the following error:

HTTP Error 404.0 - Not Found

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

Can you tell me what might be causing this and how to fix it? Thanks!

MeTP December 30th, 2014 04:40 PM

Although I'm not sure this was the cause (it seems there should be a different error for this), I made the following correction in the downloaded code and now it works:

Original markup in Frontend.Master:
Code:

   
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
      <Scripts>
        <asp:ScriptReference Name="jquery" />
      </Scripts>
    </asp:ScriptManager>

Corrected:
Code:

   
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
      <Scripts>
        <asp:ScriptReference Path="~/Scripts/jquery-2.1.1.min.js" />
      </Scripts>
    </asp:ScriptManager>



All times are GMT -4. The time now is 07:57 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.