升级到 .NET Framework 4.0 - 站点已关闭

发布于 2024-10-06 21:12:42 字数 338 浏览 0 评论 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:

Error message when you visit a Web site that is hosted on IIS 7.0: "HTTP Error 500.0 – Internal Server Error"

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

究竟谁懂我的在乎 2024-10-13 21:12:42

您的应用程序池是在 .NET 4.0 还是 .NET 2.0 上运行?

http://technet.microsoft.com/en-us/ Library/cc754523(WS.10).aspx

  1. 打开 IIS 管理器。有关打开 IIS 管理器的信息,请参阅打开 IIS 管理器 (IIS 7)。
  2. 在“连接”窗格中,展开服务器节点并单击“应用程序池”。
  3. 在“应用程序池”页面上,选择要为其指定 .NET Framework 版本的应用程序池,然后单击“操作”窗格中的“基本设置”。
  4. 在“编辑应用程序池”对话框的 .NET Framework 版本列表中,选择希望应用程序池使用的版本,或者如果应用程序仅使用本机代码,则选择“无托管代码”。
  5. 单击“确定”。

Is your Application Pool running on .NET 4.0 or .NET 2.0?

http://technet.microsoft.com/en-us/library/cc754523(WS.10).aspx

  1. Open IIS Manager. For information about opening IIS Manager, see Open IIS Manager (IIS 7).
  2. On the Connections pane, expand the server node and click Application Pools.
  3. On the Application Pools page, select the application pool for which you want to specify a .NET Framework version, and then click Basic Settings in the Actions pane.
  4. In the Edit Application Pool dialog box, in the .NET Framework version list, select the version that you want the application pool to use or select No Managed Code if the application uses only native code.
  5. Click OK.
手心的温暖 2024-10-13 21:12:42

从评论转移到答案,以便标记答案以供将来参考

不确定这是否有帮助,但这是我升级到 .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.

凡间太子 2024-10-13 21:12:42

如果您使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文