Azure Web Sites connection string for EF not being picked up

后端 未结 1 487
无人及你
无人及你 2021-02-08 09:30

I am deploying an ASP.NET web app to Azure Web Sites.

The site uses Entity Framework, and when I include the following in Web.config it runs fine:



        
相关标签:
1条回答
  • 2021-02-08 09:51

    See similar question here.

    Try leaving the connection string in web.config with some value (either some test connection string, or some dummy value) e.g.

    <connectionStrings>
      <add name="DataContext" connectionString="dummy" providerName="System.Data.EntityClient" />
    </connectionStrings>
    
    0 讨论(0)
提交回复
热议问题