1

我的Visual Studio 2012 Professional在三个项目解决方案中遇到问题。 我一整天都在用LinqToMySQL.edmx文件挣扎,并且得到一个MySQL数据连接选项以显示在服务器资源管理器中。 为此,我尝试安装EFTools6.1.0ForVS2012。我试过的mysql连接器是mysql-connector-net-6.7.4。这工作在一个点上,但其他与MySQL dll版本有关的问题意味着我回到了原点(当我从nuGet 6.8.3获得最新版本的DLL时,它仍然在寻找6.7.4)。从那以后,我得到了6.7.4,并为所有项目添加了对dll的引用。我也试着编辑machine.config来寻找正确的mysql数据提供者。仍然没有快乐。Visual Studio设置文件损坏/ MySQL连接问题

但是现在......

对于每一个解决方案试图访问属性>设置时,在app.config或web.config文件中不能被读取。

An error occurred while reading the app.config file. The file might be corrupted or contain invalid XML

在XML验证器下进行检查时,所有文件似乎都有效。

当VS2012打开一个项目,我得到的错误:

Microsoft Visual Studio The ProviderPackage package did not load correctly. The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file t:\Users\John\AppData\Roaming\Microsoft\VisualStudio\11.0\A ctivityLog.xml.

当试图创建一个新的项目,我得到:

Failed to create a 'ImageSource' from the text '..\lmages\Medium.png'.

后重新安装Visual Studio中的问题仍然存在。 在活动日志中的最后一个错误是:

<entry> 
    <record>235</record> 
    <time>2014/03/25 10:28:31.202</time> 
    <type>Warning</type> 
    <source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source> 
    <description>The catalog cache file is not up-to-date and has to be regenerated:</description> 
    <path>C:\Users\John\AppData\Local\Microsoft\VisualStudio\11.0\ComponentModelCache\Microsoft.VisualStudio.Default.cache</path> 
    </entry> 
<entry> 
    <record>236</record> 
    <time>2014/03/25 10:28:31.211</time> 
    <type>Error</type> 
    <source>VisualStudio</source> 
    <description>SetSite failed for package [Visual Studio Component Model Host Package]</description> 
    <guid>{49D12072-378B-4FFA-A09E-40E0B5D097CC}</guid> 
    <hr>80131902</hr> 
    <errorinfo>Configuration system failed to initialize</errorinfo> 
    </entry> 
<entry> 
    <record>237</record> 
    <time>2014/03/25 10:28:31.241</time> 
    <type>Error</type> 
    <source>VisualStudio</source> 
    <description>End package load [Visual Studio Component Model Host Package]</description> 
    <guid>{49D12072-378B-4FFA-A09E-40E0B5D097CC}</guid> 
    <hr>80131902</hr> 
    <errorinfo>Configuration system failed to initialize</errorinfo> 
    </entry> 
+0

卸载所有版本的Visual Studio并重新安装VS2012后,我仍然收到'ProviderPackage'错误。 – JohnnyBizzle

回答

0

貌似大多数误差是由畸形XML在machine.config中文件中的框架文件夹引起的。在framework64中的machine.config文件很好,这一定让我感到困惑。这就是用记事本编辑得到你! 仍然有问题与MySQL连接器,但这是一个单独的问题。