.net网站发布问题

huangguan009 2011-05-20 04:39:26
iis配置以后,访问网站,能打开登录页面,但是点击登录的时候出现
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>

急,求高手帮助
...全文
233 18 打赏 收藏 转发到动态 举报
写回复
用AI写文章
18 条回复
切换为时间正序
请发表友善的回复…
发表回复
huangguan009 2011-05-20
  • 打赏
  • 举报
回复
分了。找了网上的资料说是。net没有完全注册到iis
这个又是怎么回事
ltcszk 2011-05-20
  • 打赏
  • 举报
回复
iis里有没有调.net版本啊,默认是1.1
laowang134 2011-05-20
  • 打赏
  • 举报
回复
你分配IP地址跟端口了?
huangguan009 2011-05-20
  • 打赏
  • 举报
回复
在同一服务器的
v_yao 2011-05-20
  • 打赏
  • 举报
回复
你的数据库和ISS 是不是在同一台服务器!
huangguan009 2011-05-20
  • 打赏
  • 举报
回复
怎么没人啦,高手们呢
huangguan009 2011-05-20
  • 打赏
  • 举报
回复
就是出先上面那个错误了
huangguan009 2011-05-20
  • 打赏
  • 举报
回复
都在服务器上访问:http://localhost:7406/a1/Login.aspx 正常
http://192.168.0.106:7406/a1/Login.aspx出错
是不是IIS配置问题
laowang134 2011-05-20
  • 打赏
  • 举报
回复
那你在本地IIS中配置下能运行不。
  • 打赏
  • 举报
回复
[Quote=引用 8 楼 huangguan009 的回复:]
正常,就放到FWQ后出错了
[/Quote]
通常在服务器上运行看下,应该能看到具体到哪行代码!
huangguan009 2011-05-20
  • 打赏
  • 举报
回复
正常,就放到FWQ后出错了
laowang134 2011-05-20
  • 打赏
  • 举报
回复
在VS中运行的时候正常不?
huangguan009 2011-05-20
  • 打赏
  • 举报
回复
我加了你的代码没什么改变啊,zlj002
wtj2832 2011-05-20
  • 打赏
  • 举报
回复
运行时错误
webconfig中加上
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
看看具体哪里出问题
myhope88 2011-05-20
  • 打赏
  • 举报
回复
程序出错啦,将web.config的显示错误模式改为Off,就会显示具体是什么错误了
lorinzhang 2011-05-20
  • 打赏
  • 举报
回复
先看把你的错误信息打开<customErrors mode="True"/>
错误就出来了
huangguan009 2011-05-20
  • 打赏
  • 举报
回复
连接字符串正确的,还是 谢谢关注
laowang134 2011-05-20
  • 打赏
  • 举报
回复
查看你的连接字符串是否正确。。

62,025

社区成员

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

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

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

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