无法加载类型... 升级到 W2K3 和 IIS6 时

发布于 2024-07-07 00:13:02 字数 270 浏览 29 评论 0原文

我有一个 c# .NET 2.0 应用程序,它已经在 W2K/IIS5 上运行了好几年了。 系统管理员团队当前正在使用相同的安装文件为应用程序设置 W2K3 框,但遇到了可怕的“无法加载类型...”错误。 所讨论的类型是所请求页面的类(即隐藏代码)。

我听说将 .NET 版本切换到 1.1 然后再切换回 2.0 可以解决该问题,但我们尝试过,但没有成功。

有任何想法吗? 我能找到的大部分信息都是关于解决开发过程中发生的问题,从 Visual Studio 运行应用程序。

I have a c# .NET 2.0 application that has been running on W2K/IIS5 quite happily for several years. The sysadmin team are currently setting up a W2K3 box for the app, using the same install files, but are running into the dreaded "Could not load type..." error. The type in question is the class (i.e. code behind) for the page being requested.

I've read that switching the .NET version to 1.1 and back to 2.0 can fix the problem, but we've tried this with no luck.

Any ideas? Most of the info I can find is about solving the problem when it happens during development, running the app from Visual Studio.

Thanks,
Jon.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

无戏配角 2024-07-14 00:13:04

我想我以前也遇到过这种情况,它需要更改应用程序文件夹中的权限或重置 IIS Web 应用程序文件夹设置。

阅读您的错误消息,我认为我们发现的另一个原因是当 JIT 尝试编译页面时,它没有临时文件夹的权限。

I think I had this before and it required either permissions changing in the application folder or resetting the IIS web application folder settings.

Reading your error message, I think another cause we found was when the JIT tried to compile the page, it didn't have permissions to the temporary folder.

潜移默化 2024-07-14 00:13:03

找出程序集未加载原因的最佳选择是程序集绑定日志查看器。 http://msdn.microsoft.com/en-us /library/e74a18c4(VS.71).aspx

Your best bet for finding out why an assembly isn't loading is the Assembly Binding Log Viewer. http://msdn.microsoft.com/en-us/library/e74a18c4(VS.71).aspx

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