IIS显示错误代码500,正在维护
问题描述:
亲爱的先生,
我正在开发一个Asp.NET项目,我想在IIS中运行它。但是当我在浏览页面时在IIS中安装后,它显示错误代码500并且网站正在维护。
提前感谢。
Dear sir,
I'm working on an Asp.NET project and I want to run it in IIS. But after install in IIS when I am browsing the page, it shows me error code 500 and site is under maintenance.
Thanks in advance.
答
Http 500响应意味着您的网站应用程序出错,引发了一些未处理的异常。
设置 CustomError [ ^ ]元素为Off。这将在浏览器上公开错误详细信息。请记得在生产环境中将其更改回来。
此外,我假设您必须登录到位。查看您的日志,看看有什么问题。您还可以检查事件查看器日志。那里记录了未处理的异常。
希望有所帮助!
Http 500 response means there was an error in your website application, some unhandled exception was thrown.
Set the CustomError[^] element in the web.config to Off. This will expose the error details on browser. Do remember to change it back on production environment.
Also I am assuming you must have logging in place. Check out your logs and see what's wrong. You may also check the event viewer logs. Unhandled exceptions are logged there.
Hope that helps!
好吧,如果......
您可能已安装IIS服务器但未激活ASP,ASP.Net,...
使用控制面板或Windows快捷方式,转到
- 安装程序
- 激活Windows功能
- 互联网信息服务
- 服务世界网络
- 开发应用程序功能(不确定,我目前在其他语言操作系统上)
- 然后检查ASP,ASP .NET 3.5,ASP .NET 4.5
它应该可以帮助你
Well, in case of...
You may have install IIS server but not activated ASP, ASP.Net, ...
Using Control Panel or Windows shortcut, Go to
- Install Programs
- Activate Windows Features
- Internet Information Services
- Services World Web Web
- Developement Application Functionnalities (not sure, i'm currently on other language OS)
- Then check ASP, ASP .NET 3.5 , ASP .NET 4.5
it should help you