VS 2010/SQLServer 2005 调试挂起

发布于 2024-09-13 10:41:57 字数 51 浏览 2 评论 0原文

当尝试调试 SQL CLR 函数时,调试器会挂起。 使用VS2010和SQL 2005。

When attempt to debug a SQL CLR Function the debugger hangs.
Using VS2010 and SQL 2005.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

⒈起吃苦の倖褔 2024-09-20 10:41:57

问题似乎是Framework冲突,VS2010默认使用Framework 4.0。
必须将以下配置文件(sqlservr.exe.config)添加到 SQL Binn 目录中,以便 VS2010 加载框架 2.x 库

<?xml version="1.0"?>
<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v2.0.50727"/>
  </startup>
</configuration>

the problem appear to be the conflict of Framework, VS2010 uses Framework 4.0 by default.
Following config file(sqlservr.exe.config) must be added to the SQL Binn directory so that the VS2010 will load frame work 2.x libraries

<?xml version="1.0"?>
<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v2.0.50727"/>
  </startup>
</configuration>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文