网站连接问题

gmzlcl 2008-03-19 12:55:37
我在单位的服务器上配置好了运行ASP.NET的环境,

建了一个*.html主页,做了一个链接,链到Default.aspx可运行时点击链接后弹出错误提示:
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>

一堆看了又看也看不懂的英文,估计不出那出了问题?网站的配置、服务器SQL还是程序代码?
请各位仁兄指点
...全文
133 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
k19791 2008-03-21
  • 打赏
  • 举报
回复
低价转让:中#美#爱#梯#科技.Net软件工程师培训课程内容(共35G),声音清晰,课程完整!
需要这个培训视频的朋友请联系 QQ 936652114
jxqvip 2008-03-21
  • 打赏
  • 举报
回复
把图片发上来!
gmzlcl 2008-03-20
  • 打赏
  • 举报
回复
怪了,我发的图片怎么看不到?我是点击上面的插入图片,在弹出的对话框中输入d:/cc.gif
怎么没显示图片呢?
gmzlcl 2008-03-20
  • 打赏
  • 举报
回复
此图片是在服务器端运行时提示的错误

有那为仁兄能帮指点一二.
ICeeYeS 2008-03-19
  • 打赏
  • 举报
回复
很大可能还是权限的问题,
你试着看看目录里有没有iis_wpg用户
jxqvip 2008-03-19
  • 打赏
  • 举报
回复
你要是没有设置错误默认页,无论什么错误在客户端看到的都是那个信息,你在服务器端运行一下程序才能看到真正的问题!然后你再具体问题具体分析就ok了!
jxqvip 2008-03-19
  • 打赏
  • 举报
回复
你要是没有设置错误默认页,无论什么错误在客户端看到的都是那个信息,你在服务器端运行一下程序才能看到真正的问题!
milozy1983 2008-03-19
  • 打赏
  • 举报
回复
可能是iis权限问题,需要设置成windows集成环境
gmzlcl 2008-03-19
  • 打赏
  • 举报
回复
以上5个楼主的回复俺都尝试了,不好使啊.
在服务器端运行IE提示28行<authentication mode="Windows"/>有问题.

做好了网页运行 Visual studio 2005 生成工具栏下的/生成网站,这种方式是不是所说的编译啊.

问题差哪呢?
sunrain_yingxi 2008-03-19
  • 打赏
  • 举报
回复
在web.config中添加<customErrors mode="Off" defaultRedirect="mycustompage.htm"/>,這樣再運行時就可以看到出錯信息了
xierfly 2008-03-19
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 milozy1983 的回复:]
iis虚拟目录设好了没啊
[/Quote]

是不是没有把项目设置成虚拟目录啊?
qfgyd2004 2008-03-19
  • 打赏
  • 举报
回复
改成这样<customErrors mode="Off" defaultRedirect="mycustompage.htm"/>
milozy1983 2008-03-19
  • 打赏
  • 举报
回复
iis虚拟目录设好了没啊
qfgyd2004 2008-03-19
  • 打赏
  • 举报
回复
权限问题。

62,262

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧