本文介绍了MSLinqToSQLGenerator在VS2008中失败。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 当我尝试添加新项目时,我收到以下错误(Linq to SQL Classes): "错误1自定义工具'MSLinqToSQLGenerator'失败。对象引用未设置为对象的实例。" 我在Beta 2中遇到此错误(不是最初虽然)。 我卸载了Beta 2并安装了RTM Visual Studio 2008,但同样的错误不断出现。 修复RTM是没用的。 然后我卸载RTM并重新安装,但这也无济于事。 当我在VS2008中打开现有的dbml文件时,没有错误,但是文件是在XML编辑器中打开而不是'MSLinqToSQLGenerator'编辑。 我想编辑器和文件类型之间的链接已经消失了。 当我打开菜单项Tools / Options / Database tools / O / R designer时,右窗格不会显示,只显示"加载此属性页面时出错"。显示。 如何重新创建链接? 亲切的问候, Karel Vandenhove 解决方案 你卸载了*所有*吗?添加/删除程序[Vista中的程序和功能]中有很多与Visual Studio相关的条目,您应该将它们全部删除。 以下是Scott Guthrie的摘要: http://weblogs.asp.net/scottgu/archive/2007/11/20/steps-to-uninstall-vs- 2008-beta2-before-installation-vs-2008-final-release.aspx Hi, I'm getting the following error when I try to add a new item (Linq to SQL Classes): "Error 1 The custom tool 'MSLinqToSQLGenerator' failed. Object reference not set to an instance of an object." I got this error in Beta 2 (not initially though).I de-installed Beta 2 and installed the RTM Visual Studio 2008, but the same error keeps appearing.Repairing RTM was of no use.I then de-installed RTM and re-installed again, but this didn't help either. When I open an existing dbml file in VS2008, there is no error, but the file is opened in an XML editor in stead of the 'MSLinqToSQLGenerator' editor. I suppose the link between the editor and the filetype is gone. When I open the menu item Tools / Options / Database tools / O/R designer, the right pane is not displayed, only "An error occurred loading this property page" is displayed. How can I recreate this link? kind regards, Karel Vandenhove 解决方案 Did you uninstall *everything*? There are a lot of entries in Add/Remove Programs [Programs and Features in Vista] that are related to Visual Studio, and you should remove them all. Here's a summary by Scott Guthrie: http://weblogs.asp.net/scottgu/archive/2007/11/20/steps-to-uninstall-vs-2008-beta2-before-installing-the-vs-2008-final-release.aspx 这篇关于MSLinqToSQLGenerator在VS2008中失败。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 06-13 21:50