VS2005未能加载文件或程序集Microsoft.Build.Engine

时间: 2008-06-01 / 分类: 学习心得 / 浏览次数: 1,648 views / 0个评论 发表评论

文中提到的软件下载:

dotnetfx cleanup_tool:作者博客(英文) 
我的SkyDrive

dotnetfx 2.0:微软官方(简中) 我的SkyDrive

-----------------正文----------------

使用VS2005的时候遇到了一个问题,打开ASP.NET项目的时候就会出现下面的错误提示:

无法读取项目文件“*****.csproj”,未能加载文件或程序集“Microsoft.Build.Engine,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a”或者它的某一个依赖项.系统找不到指定的文件。

   
刚开始以为是VS2005的问题,于是经过反复重装都没有解决问题,最后只得求助于百度和google,结果用中文搜索的话只在CSDN论坛找到了一篇帖子,而且回复都模棱两可,除了重装系统也没有提出什么可行的解决方案。于是我用英文搜索了一下,问题马上就解决了。

   
英文的描述是这样的:

Unable to read the project file
'*****.vbproj'. Could not load file or assembly
'Microsoft.Build.Engine, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The
module was expected to contain an assembly manifest.

作者还罗嗦了一大通,原话是这么写的:

My web application contains three projects named 'DataAccess',
'BusinessLogic' and 'Common' containing their relevant classes.
When I attempt to load project in VS2005 using solution file only
my website open but the included projects are not loaded and above
errors are displayed.

I am in deep trouble because of this as I have to finish this
project within tight deadlines. The project code was working fine
before I formatted my PC but on now after i completed all the
installation it is troubling me.

Can anyone help me figure out what is the real problem!!! My
assumption is that there is some problem with VS2005
Microsoft.Build.Engine as I am even unable to create new VB.net
projects. Moreover, I even re-installed my VS2005 in hope of
getting the error removed but all in vain.. :( (

Your early replies, link to answers or sites, suggestion will be
highly appreciated.
呵呵,我贴出这段话来主要是为了学习一下英文的求助表达技巧,以后到了国外网站求助不至于用汉语吧?虽然说汉语使用的人最多。注意了,下面开始才是正点内容:

RE:
Based on my experience, probably the NET Framework 2.0 is corrupt
and the corrupt file/files remain after you reinstall VS.NET 2005.
Hence, please try to uninstall .NET Framework 2.0 and then install
.NET Framework 2.0 again.

You can download the
“Cleanup_tool” from Aaron's blog to automatically remove the
Framework.

Automated cleanup tool to remove
the .NET Framework 1.0, 1.1, 2.0, 3.0 and
3.5
http://blogs.msdn.com/astebner/archive/2006/05/30/611355.aspx

Alternately, you can manually do cleanup
steps by following another article.

How to manually cleanup a failed .NET
Framework 2.0 install
http://blogs.msdn.com/astebner/archive/2005/04/16/408856.aspx

呵呵,就是酱紫了,到指定的链接或者我提供的下载地址下载那个“Cleanup_tool”,清理.NET
Framework完毕,重启系统,重新安装,搞定了。当然了如果你喜欢自己清理也可以,只要你不怕繁琐的注册表清理工作,第二个链接就是手动方式。如果你英文水平有限,可以找我帮忙。

   
对了,上面那篇帖子的地址是:http://forums.asp.net/t/1177531.aspx

===================博客订阅列表=================

 
 
 

 
 
 

 
 
 

===================最新文章列表=================


[地震知识]山东会有地震吗?中国的几条地震带


好莱坞女星莎朗·斯通关于四川地震的无耻言论


谭晶:女声版《生死不离》


四川地震:写给孩子的诗
 


广播:十个寻找四川灾区亲人的网站
 


成龙:抗震救灾歌曲《生死不离》


歌曲《明天的太阳》,献给四川的歌


分享:香港艺人四川大地震赈灾主题曲《承诺》完整MV
 


谨借此片献给抗震救灾的战友们:谭晶《兵》
 


译言翻译《地震搜救手册》&《地震安全手册》
 


博客订阅(RSS FEED)
 


儿童节快乐!分享一部动画和电影《和你在一起》
 


PageRequestManagerParserErrorException错误




ASP.NET:在TextBox中实现鼠标点击文本消失


ASP.NET:ListBox数据合并问题


ASP.NET中关于GridView使用的几个问题


使用 JavaScript 
更新 UpdatePanel
 


GridView里面的HyperLink和ButtonField操作总结


又解决了几个问题:DropdownList和UpdatePanel


GridView.RowDeleting 事件
 


[ASP.NET 2.0]关于GridView的一些操作
 


CSS真的很好很强大


解析SQLServer事务日志压缩与删除的方法


IIS 
ASP.NET 2.0调试过程
 


[ASP.NET]Response.Redirect转到页面并刷新
 

分享 |

发表评论

您的昵称 *

您的邮箱 *

您的网站