无法下载 Microsoft.SqlServer.BatchParser
我最近将系统从 Windows XP 升级到 Windows 7 64 位。我有一个 C# 应用程序,它在我的一台数据库服务器上加载并运行存储过程。该程序在 Windows XP 上成功运行,其中包含 VS.NET 2005 32 位、SQL Server 2005 Client 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.
我做了一些研究并发现了这些链接,它们似乎并不能完全回答我的问题:
你们以前遇到过类似的问题吗?
I recently upgraded my system to Windows 7 64 bit from Windows XP. I had a C# application which loads and runs a stored procedure on one of my database server. This was successfully running on Windows XP with VS.NET 2005 32 bit, SQL Server 2005 Client SDK and server running on SQL Server 2005.
After upgrading, the program is failing at the ExecuteNonQuery
method below:
Server server = new Server(new ServerConnection(conn));
server.ConnectionContext.ExecuteNonQuery(script);
The following exception has been logged:
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.
I did some research and found these links, which don't seem to quite answer my problem:
Have any of you encountered similar issue before?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论