当前位置:编程学习 > C#/ASP.NET >>

Server Error in '/' Application.

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: /index.aspx
 在本地运行好好的 放到服务器上就出现上面的错误.请问是什么问题?如何解决?谢谢了 --------------------编程问答-------------------- 好像是你要访问的页面不存在!!检查一下!! --------------------编程问答-------------------- 加入.net权限或IIS权限,在程序根目录下 --------------------编程问答-------------------- 这样看根本检查不出来。 --------------------编程问答-------------------- 文件系统权限问题 --------------------编程问答-------------------- 上面的问题已经解决 是没有文件.
可是又有新问题 就是有的页面能打开 有的就不能打开 出现的错误是
Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error 
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. 

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
 

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
 
也可以访问http://hwj99.com --------------------编程问答-------------------- 加.net权限或IIS权限 你有没有指向主机头(也就是域名) --------------------编程问答-------------------- 楼上的 请问怎么加IIS权限 为什么有的页面能访问 有的就不能访问出错呢?能不能说的再明白点?谢谢了!!!! --------------------编程问答-------------------- 没人知道吗?
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,