Web Deploy / Publish is adding a unknown connection string?

前端 未结 4 1303
小蘑菇
小蘑菇 2021-01-07 19:09

Previously publishing my web api app was working perfectly. Today i converted my app from being \"any cpu\" to x86. Now when i\'m publishing its adding a connection string t

4条回答
  •  情深已故
    2021-01-07 19:42

    In the .pubxml file there where some extra connectionstrings added for some reason. Remove all of them and it should work fine, the default connectionstring will still be added.

    I have a hunch that this has been added to the .pubxml when I fiddled a little with my publishing information but it wasn't removed when I switched back to my regular publish setup.

    
        
        
        
      
      
        <_ConnectionStringsToInsert Include="MyProject" />
        <_ConnectionStringsToInsert Include="Myproject_dev" />
      
    

提交回复
热议问题