ASP.NET-HTTP 404错误 [英] ASP.NET - HTTP 404 Error

查看:65
本文介绍了ASP.NET-HTTP 404错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网站上,我有一个母版页.所有页面在根文件夹中都可以正常工作.而且我在名为用户"的文件夹中有一组页面.这些页面需要登录.首次登录后,我尝试导航至其中一个页面,工作正常.之后,当我尝试导航到任何其他页面时,它给我这样的错误..




.................................错误................ ........................

``/ADWMM''应用程序中的服务器错误.

找不到资源.

说明:HTTP404.您正在寻找的资源(或其依赖项之一)可能已被删除,名称更改或暂时不可用.请查看以下URL,并确保其拼写正确.

要求的网址:/ADWMM/User/User/Search.aspx

................................................... .....................................

即时通讯将Visual Studio Professional SP1与Windows 7 32位一起使用

如果有人知道如何解决此问题,请帮助我..

In my web site i have a master page. all the pages are working fine in root folder. and i have set of pages inside a folder called "User". these pages requires a login. after the login the first time i try to navigate to one of these pages, work fine. after that when i try to navigate to any other page it gives me an error like this..




.................................Error........................................

Server Error in ''/ADWMM'' 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: /ADWMM/User/User/Search.aspx

..............................................................................

im using Visual Studio Professional SP1 with Windows 7 32bit

if anyone know how to solve this please help me..

推荐答案

似乎您有一个相对链接错误.

因为您已经访问过/user中的文件,所以下一页正在尝试向路径中添加另一个/user.
It looks like you have a relative link error.

as you have already been to a file in /user, the next page is trying to add another /user to the path.


您请求的URL似乎正在添加第二个User目录:

/ADWMM/User/用户/Search.aspx

这可能就是为什么它找不到正确的页面的原因.您的超链接中是否有多余的用户目录?
The URL you are requesting seems to be adding a second User directory:

/ADWMM/User/User/Search.aspx

Which is probably why it can''t find the right page. Do your hyperlinks have an extra User directory in them?


ruknil写道:

它们不是超链接i只需在每个页面上使用href ="User/Search.aspx"

they are not hyperlinks i simply used a href="User/Search.aspx" for every page



我想您是从用户"目录中的某些登录"页面执行此操作的.因此,当前位置变为ApplicationRootDir/User.并添加一个链接User/Search.aspx将使其变为ApplicationRootDir/User/User/Search.aspx
因此,只需编写href ="Search.aspx"(或相关链接).

希望这会有所帮助!



I guess you are doing this from some of the Logged in page which is inside ''User'' directory. So the current location becomes ApplicationRootDir/User. And adding a link User/Search.aspx will make it ApplicationRootDir/User/User/Search.aspx
So instead, just write href="Search.aspx" (or the relevant link).

Hope this helps!


这篇关于ASP.NET-HTTP 404错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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