在我发布的 Web 配置中出现不需要的连接字符串的问题 [英] Issue with unwanted connection string appearing in my published web config

查看:25
本文介绍了在我发布的 Web 配置中出现不需要的连接字符串的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用 VS 2012 测试新的网络部署工具,但我遇到了这个问题:

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

我将这个额外的连接字符串添加到我发布的 Web 配置中,而我的项目 Web 配置中目前没有.

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" />

这可能是从哪里来的?这似乎是我过去使用过的 conn 字符串的遗物..

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

希望这能解释我的问题:0)感谢您的帮助

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

量子

推荐答案

它必须来自 web.config 文件之一.

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

您是否检查过是否应用了对 web.config 的转换.检查 web.release.config、web.debug.config 文件以检查连接字符串是否还在.

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.

这篇关于在我发布的 Web 配置中出现不需要的连接字符串的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆