如何将localdb从Visual Studio连接到已发布的Azure Web应用程序?

因此我在Visual Studio中为我的项目设置了一个localdb,但是当我将其发布到Azure Web应用程序时,我得到"

So i have a localdb set up for my project in Visual Studio but when I publish it to my Azure web app, I get "

处理请求时发生未处理的异常. Win32Exception:系统无法找到指定的文件TryGetConnection"

An unhandled exception occurred while processing the request. Win32Exception: The system canot find the file specified TryGetConnection"

我尝试添加带有数据库/服务器的"DefaultConnection"连接字符串作为Web App设置中的值,但这没有任何作用

I tried adding a "DefaultConnection" Connection String with the database/server as the value in the Web App settings but that didn't do anything



 1 条回答