Issue with unwanted connection string appearing in my published web config

梦想与她 提交于 2019-12-11 16:39:10

问题


I’ve been testing the new web deploy tool with VS 2012 but I have this issue:

I get this extra connection string added to my published web config that I don't currently have in my projects web config.

   <add name="name" connectionString="name_ConnectionString" providerName="System.Data.SqlClient" />

Where could this be coming from? It seems like is a relic from past conn strings I've used..

Hope this explains my issue :0) Thanks for any assistance

Quantum


回答1:


It has to be coming from one of the web.config files.

Have you checked if a transform to your web.config is applied or not. Check web.release.config, web.debug.config file to check if the connection string is still there.



来源:https://stackoverflow.com/questions/13581892/issue-with-unwanted-connection-string-appearing-in-my-published-web-config

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!