я видел то же сообщение об ошибке. войдите в свой пул приложений и быть уверенными, что Вы включили и приложения на 64 бита и на 32 бита. затем, если Вы называете какой-либо DLLs на 32 бита из своего приложения, и Вы находитесь на машине на 64 бита, необходимо шлепнуться DLLs на 32 бита и любые зависимости в папку SysWow64/inetsrv наряду с любыми файлами конфигурации, в которых они, возможно, нуждаются. это добилось цели для меня.
The problem was with my configuration. I ended up troubleshooting it using sqlcmd.exe
which allowed me to attempt to connect manually using the parameters I had specified, and they didn't work. A look at its documentation and I realized that localhost
was probably insufficient. I needed to include the instance
, as mentioned in the documenation -S [protocol:]server[\instance_name][,port]
. Adding this to the sqlcmd
string and to the xml configuration fixed my connection issue.