当前位置: 代码迷 >> .NET Framework >> iis windows7解决思路
  详细解决方案

iis windows7解决思路

热度:68   发布时间:2016-05-01 23:35:53.0
iis windows7
本帖最后由 jckson2007 于 2013-11-20 21:49:28 编辑
试着发布一个网站,管理网站-浏览时能打开首页,首页设置为二级目录下的login.aspx,登陆后提示“
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: /Default.aspx

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1


咋回事啊,我是新手。

正常在登陆后应该转向其他网页,怎么转到Default.aspx?
------解决方案--------------------
是跳转路径不对,或指定的资源找不到.具体检查一下你跳园的路径是什么写的,是不是异常错误后跳园回Default.aspx
------解决方案--------------------
你怎么设置首页的。应该在IIS中配置默认文档。VS中的首页只是调试的时候帮你打开的页面。
------解决方案--------------------
一般情况下都是用根目录(虚拟路径)下某个页面作为首页,我觉得楼主如果不好解决,可以用根目录下一个页面来跳转到/web/login.aspx。这样应该就没有什么问题了!
总结出来还是目录结构的问题吧!
  相关解决方案