我遇到了 SQL Server 无法与 Azure 开发存储一起使用的问题。
当我开始调试时,我总是必须运行 DSInit 命令。它运行成功,输出如下:
Added reservation for http://127.0.0.1:10000/ in user account STARDESTROYER\NW.
Added reservation for http://127.0.0.1:10001/ in user account STARDESTROYER\NW.
Added reservation for http://127.0.0.1:10002/ in user account STARDESTROYER\NW.
Found SQL Instance (localdb)\v11.0.
Creating database DevelopmentStorageDb20 on SQL instance '(localdb)\v11.0'.
Granting database access to user STARDESTROYER\NW.
Database access for user STARDESTROYER\NW was granted.
Initialization successful. The storage emulator is now ready for use.
但是几分钟后,我开始为 SQL Server 弹出此错误:
The application was unable to start correctly (0xc0000142). Click OK to close the application.
我可以关闭弹出窗口,并且调试工作正常,但我会不断重复弹出窗口,每分钟左右。这真的很烦人,我通常只是将弹出窗口从屏幕边缘移开。
如果我关闭 Azure 模拟器,那么最终可以关闭弹出窗口,但如果我想再次调试,我必须从另一个 DSInit 命令重新开始。