无法下载Microsoft.SqlServer.BatchParser

时间:2011-04-04 20:37:21

标签: c# sql-server database-connection

我最近将系统从Windows XP升级到Windows 7 64位。我有一个C#应用程序,它在我的一个数据库服务器上加载并运行存储过程。这已成功运行在Windows XP上,VS.NET 2005 32位,SQL Server 2005客户端SDK和SQL Server 2005上运行的服务器。

升级后,程序在以下ExecuteNonQuery方法失败:

    Server server = new Server(new ServerConnection(conn));
    server.ConnectionContext.ExecuteNonQuery(script);

记录了以下异常:

LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.
LOG: Post-policy reference: Microsoft.SqlServer.BatchParser, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
LOG: Attempting download of new URL file:///C:/../Microsoft.SqlServer.BatchParser.DLL.
LOG: Attempting download of new URL file:///C:/../Debug/Microsoft.SqlServer.BatchParser/Microsoft.SqlServer.BatchParser.DLL.
LOG: Attempting download of new URL file:///C:/../Microsoft.SqlServer.BatchParser.EXE.
LOG: Attempting download of new URL file:///C:/../Microsoft.SqlServer.BatchParser/Microsoft.SqlServer.BatchParser.EXE.

我做了一些研究,发现这些链接似乎没有完全回答我的问题:

  
      
  1. http://social.msdn.microsoft.com/Forums/en/sqlsmoanddmo/thread/4b3bfde7-9ef5-42f5-8aa4-0e4612fc4901

  2.   
  3. Can't find microsoft.sqlserver.batchparser.dll

  4.   

你们之前有没有遇到过类似的问题?

0 个答案:

没有答案