ASP.NET 项目框架错误
我有一个继承的遗留项目。这绝对是一团糟。在版本控制中,每个文件都是修订版 1。长话短说,它完全被破坏了,根本无法编译。 dll 刷新文件被指向版本控制之外的文件,并且版本控制的 dll 是错误的。为了在 VS2008 中构建它,我们花费了很多时间。
无论如何,根据项目详细信息,项目的目标是框架 3.5。但是,在调试项目时,我的浏览器中出现 401.2 授权错误,表明正在使用框架 2.0.*。
有谁以前见过这种情况,或者知道补救措施吗?
I have a legacy project that I have inherited. It was an absolute utter and complete mess. Within version control, every single file was revision 1. Long story short it was completely broken and did not come close to compiling. dll refresh files were pointed to files outside of version control, and the dll's that were versioned were the WRONG ones. Hours and hours lost just getting this to build in VS2008.
At any rate, according to the project details the project targets framework 3.5. However, an 401.2 authorization error I get in my browser when debugging the project says that framework 2.0.* was being used.
Has anyone had seen this before, or know of a remedy?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
3.5版本的框架只是将一些附加功能(例如Linq)集成到v2.0的CLR中。因此,即使您的项目显示的目标为 3.5,它仍然在 CLR 版本 2.0 上运行。
请参阅http://en.wikipedia.org/wiki/.NET_Framework_version_history#.NET_Framework_3。 5
The 3.5 version of the framework is just some additional features (such as Linq) integrated into v2.0 of the CLR. So, even if your project shows a target of 3.5, it is still running on version 2.0 of the CLR.
See http://en.wikipedia.org/wiki/.NET_Framework_version_history#.NET_Framework_3.5
检查 IIS 以查看工作进程正在使用哪个版本的框架。另请检查您可能正在编译的任何类文件,以确保它们使用相同的框架版本。
Check IIS to see which version of the framework the worker process is using. Also check any class files you may also be compiling to make sure that they are using the same framework version.