在'/'Application Server的错误时,资源无法找到 [英] Server Error in '/' Application, The resource cannot be found

查看:104
本文介绍了在'/'Application Server的错误时,资源无法找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

资源无法找到。
说明:HTTP 404。您正在寻找(或它的一个依赖)可能已被删除的资源,更名或暂时不可用。请检查以下URL并确保其拼写正确。

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.

请求的URL:/public/google_setup.aspx

Requested URL: /public/google_setup.aspx

我收到的时候我在服务器上托管网站上面的错误。在我的本地计算机它是工作的罚款。 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.

任何想法是错误的。

如果有人能提出一个办法让我将能够修复这一错误多一点详细信息

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

推荐答案

听起来像你对我正面临着相对和绝对URL的问题。

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>

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

这篇关于在'/'Application Server的错误时,资源无法找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆