升级到 .NET Framework 4.0 - 站点已关闭
将服务器框架升级到4.0。使用 Godaddy 托管。该网站现在显示此错误
500 - 内部服务器错误。 您要查找的资源有问题,无法显示。
在互联网上搜索发现:
访问 IIS 7.0 上托管的网站时出现错误消息:“HTTP 错误 500.0 – 内部服务器错误”
上面的链接显示:
解决方案 2 确保运行 IIS 7.0 的服务器可以访问所请求位置的已配置根目录。
我不知道该怎么办。
Upgraded server Framework to 4.0. Using Godaddy hosting. The website is now showing this error
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
On searching the internet found this:
The link above says:
Resolution 2
Make sure that the server that is running IIS 7.0 can access the configured root directory of the requested location.
I am not sure what to do.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您的应用程序池是在 .NET 4.0 还是 .NET 2.0 上运行?
http://technet.microsoft.com/en-us/ Library/cc754523(WS.10).aspx
Is your Application Pool running on .NET 4.0 or .NET 2.0?
http://technet.microsoft.com/en-us/library/cc754523(WS.10).aspx
从评论转移到答案,以便标记答案以供将来参考
不确定这是否有帮助,但这是我升级到 .NET 4 时遇到的问题。在我之前管理该网站的人使用 IIS 管理器来配置设置,并在 web.config 中添加了对 .NET 3.5 的引用。删除与 3.5 及以下版本相关的所有引用/程序集修复了该问题。
Moving from comment to answer so answer may be marked for future reference
Not sure if this would help, but it's an issue I ran into when upgrading to .NET 4. The person who had managed the site before me had used IIS manager to configure settings and it added references to .NET 3.5 in the web.config. Removing all references/assemblies related to 3.5 and below fixed the issue.
如果您使用 Telerik 等第三方控件或 web.config 文件中出现问题,也可能会发生这种情况。尝试从 web.config 文件中删除 httpHandlers/httpModules,如果这解决了问题,您可以将它们一一添加以检查哪个处理程序/模块可能导致问题。
This can also happen if you are using third party controls like Telerik or if something is wrong in the web.config file. Try to remove the httpHandlers/httpModules from web.config file and if this solves the problem, you can add them one by one to check which handler/module might be causing the problem.