简体   繁体   中英

Server Error in '/' Application, The resource cannot be found

Server Error in '/' Application.

The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /public/google_setup.aspx

I am getting the above error when i host the site on the server. In my local computer it is working fine. google_setup.aspx is referring to a master page which is also on the server. I have developed other pages using that master page before and they are working fine.

Any idea what is wrong.

If someone can suggest a way to get little bit more detail information on this error i would be able to fix it

Sounds to me like you are facing a problem with relative and absolute URLs.

Try using the ~ (tilde) and runat="server" when you link to your page:

<asp:HyperLink 
    NavigateUrl="~/public/google_setup.aspx"
    runat="server">Google Setup</asp:HyperLink>

or

<a href="~/public/google_setup.aspx" runat="server">Google Setup</a>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM