SQL Server Management Studio ->;新查询-> “不是有效的 win32 应用程序”

发布于 2024-12-25 04:52:07 字数 677 浏览 3 评论 0原文

我多年来一直使用 SQL Server Management Studio。昨天,当我开始点击“新查询”时,我会在弹出窗口中收到以下错误:

“不是有效的 win32 应用程序”。

我做了很多谷歌搜索,发现了这个:

这根本不适用(但我确实在 IIS 中设置了所有应用程序池,以允许服务器和客户端上的 32 位应用程序。我不知道如何做到这一点会产生任何影响,但事实并非如此)。我认为这可能是 VSSHell 的问题,但我一直无法找到任何有效的信息来修复它(如果是的话)。

我使用的是 Windows 7 64 位旗舰版。

我的同事连接到同一个 SQL Server 实例,没有这个问题(所以这是我的环境的问题)。

  • 我尝试卸载并重新安装。
  • 我尝试安装 SQL Server 2008 R2 Management Studio(和 Express 版本)。
  • 我尝试安装 SQL Server 2005 Management Studio Express。
  • 我什至尝试了 SQL Server 2012 R0 Management Studio。在所有这些中,当我单击新查询时,我会收到一个弹出窗口,显示“不是有效的 win32 应用程序”。

请帮忙!

I have been using SQL Server Management Studio for years. Yesterday, when I started hitting "new Query", I would get the following error in pop up form:

"is not a valid win32 application".

I did a lot of googling, and I found this:

http://blog.sqlauthority.com/2009/04/30/sql-server-fix-error-is-not-a-valid-win32-application-exception-from-hresult-0x800700c1/

Which is not at all applicable (but I did set all of my application pools in my IIS to allow 32 bit applications on both the server and my client. I'm not sure how that would make any difference and it didn't). I thought maybe it was a problem with VSSHell, but I have been unable to find any valid information to fix it if it is.

I am using Windows 7 64 bit Ultimate.

My colleagues, who connect to the same SQL Server instance, do not have this issue (so it is a problem with my env).

  • I tried uninstalling and reinstalling.
  • I tried installing SQL Server 2008 R2 Management Studio (and express version).
  • I tried installing SQL Server 2005 Management Studio Express.
  • I even tried the SQL Server 2012 R0 Management Studio. In all, of these, when I click, New Query, I get a pop up that says "is not a valid win32 application".

Please help!

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

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

发布评论

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

评论(1

孤星 2025-01-01 04:52:07

遇到了同样的问题 - 结果发现 MS C 运行时库之一以某种方式损坏了。我从异常详细信息中获取了名称。就我而言,它是 C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a 中的 MSVCM80.dll,即 0kB。

当我将其替换为实际文件后,一切都重新开始工作。
我的建议是 - 尝试找到 SQL Studio 试图打开的错误文件(在我的例子中,当我尝试启动 SQL Profiler 时发生了同样的错误,我可以在那里跟踪异常详细信息)。

祝你好运

Had the same issue - it turns out one of the MS C Runtime libraries got corrupted somehow. I got the name from the exception details. In my case it was MSVCM80.dll in C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a, that was 0kB.

Once I replaced it with the actual file, all started working again.
My advice is - try to locate the faulty file that SQL Studio is trying to open (in my case the same error happened when I tried to start SQL Profiler, and I could trace the exception details there).

Good luck

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文