asp.net做的网站,IIS该怎么设置?

VIV777 2007-11-17 11:55:22
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>

...全文
469 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
bwangel 2007-11-17
  • 打赏
  • 举报
回复
这个不是IIS设置的问题,是你自己的程序出了错.如果是本地测试,应该会显示错误的详细信息.如果是远程访问,就会出这些个东东.它要你按它所讲的方法配置web.config,就可以在远程也看到错误出在哪了.
nnh 2007-11-17
  • 打赏
  • 举报
回复
把那些出错的代码删除试试.
yuan74521940 2007-11-17
  • 打赏
  • 举报
回复
IIS虚拟网站的建立
由于这个web管理工具具有很高的权限,为了安全性考虑,需要将其部署在内网环境中,外网用户是不能访问的。
所以需要在IIS中新建一个网站(XP自带的IIS不能建立多个网站?)。
首先建立一个本地目录,里面放置页面文件。然后建立一个网站。有几个默认参数需要改变一下,不然是不能进行asp.net访问的。
在网站主目录中,要勾上:读取,目录浏览,记录访问,索引资源
在执行权限中选择:纯脚本。
访问地址如下:http://192.168.1.2:5150,后面不需要跟虚拟网站的名称。

redstorm11 2007-11-17
  • 打赏
  • 举报
回复
应该是代码问题

62,046

社区成员

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

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

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

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