腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(1376)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
7
回答
WebConfigurationManager
我正在研究C# 2010。由于以下错误,我的网站无法运行:String connectionString = WebConfigrationManager.ConnectionStrings["costr"].ConnectionString;
浏览 5
修改于2013-01-09
得票数 1
4
回答
CloudConfigurationManager对
WebConfigurationManager
?
在Azure网站中,我总是使用以下代码从config的应用程序设置中获取一些值:虽然CloudConfigurationManager似乎更适合于云的使用,但我对
WebConfigurationManager
在什么情况下,CloudConfigurationManager的行为不同
浏览 2
修改于2015-10-07
得票数 15
回答已采纳
2
回答
WebConfigurationManager
未被识别
System.Configuration;using System.Security; conn.Credential = cred; comm.ExecuteNonQuery();}
WebConfigurationManager
浏览 3
修改于2014-12-09
得票数 0
回答已采纳
1
回答
WAP + NUnit +
WebConfigurationManager
引脚
但是,当我通过测试用例访问相同的方法时,
WebConfigurationManager
.GetSection()总是返回null。
浏览 2
修改于2009-10-20
得票数 1
2
回答
缓存
WebConfigurationManager
.AppSettings?
我有很多读取Web配置文件的请求
WebConfigurationManager
.AppSettings
浏览 1
修改于2013-10-03
得票数 13
回答已采纳
4
回答
WebConfigurationManager
和ConfigurationManager有什么不同?
WebConfigurationManager
和ConfigurationManager有什么不同我刚刚查看了
WebConfigurationManager
,由于某些原因,您无法像在ConfigurationManager中那样访问连接字符串(如数组)。谁能告诉我为什么微软会变成这样?使用
WebConfigurationManager
获取所需的连接字符串似乎很麻烦。 再次更新,但有警告!如果您没有将对System.Configuration名称空间的引用添加到项目中,那么当您尝试像访问数组一样访
浏览 38
修改于2019-06-10
得票数 108
回答已采纳
1
回答
System.Web.Configuration.
WebConfigurationManager
.OpenWebConfiguration
Dim rootWebConfig1 As System.Configuration.Configuration rootWebConfig1 = System.Web.Configuration.
WebConfigurationManager
.OpenWebConfiguration("/myWebPagesrootWebConfig1 = Sys
浏览 10
修改于2014-07-06
得票数 0
2
回答
WebConfigurationManager
还是HttpContext.Application?
是否与使用并使用 我认为在这个页面上:建议在Web应用程序中使用
WebConfigurationManager
浏览 2
修改于2013-05-12
得票数 0
回答已采纳
1
回答
WebConfigurationManager
读/写位置path=xx
我正在尝试,但我无法使用如下代码读取它们或其他许多可能性。
浏览 3
提问于2012-11-30
得票数 1
1
回答
WebConfigurationManager
.AppSettings.Get("urlAddress")异常
ToPost.xml"); xmlWriter.WriteStartElement("eclRequest xmlns='" +
WebConfigurationManager
.AppSettings.Get但是
WebConfigurationManager
.AppSettings.Get("urlAddress")给了我以下例外: “eclRequest xmlns=‘’”中的名称字符无效。
浏览 5
修改于2014-07-28
得票数 0
回答已采纳
1
回答
使用
WebConfigurationManager
访问的设置源
当ASP.NET MVC应用程序作为Azure运行时,
WebConfigurationManager
可以从application和web.config文件中获取设置,其中门户设置优先。
浏览 0
提问于2017-08-07
得票数 0
回答已采纳
2
回答
添加siteMap后出现
WebConfigurationManager
错误
我得到了这个错误: </siteMap>System.Web.Configuration myWebConfig =
WebConfigurationManager
.OpenWebConfigu
浏览 5
提问于2010-05-16
得票数 0
回答已采纳
2
回答
无法使用
WebConfigurationManager
.AppSettings检索值
/></appSettings> string localization =
WebConfigurationManager
.AppSettings
浏览 2
提问于2013-01-17
得票数 1
1
回答
通过
WebConfigurationManager
和configuration对象检索配置节
我们可以通过以下两种方式从web.config中检索配置节:或
WebConfigurationManager
.GetSection
浏览 0
提问于2010-01-31
得票数 1
回答已采纳
4
回答
MVC 3
WebConfigurationManager
.AppSettings["key"]返回null
Web.config里放了几个appsettings键(我也试过在web.debug.config里放几个键),但是也是
WebConfigurationManager
.AppSettings
浏览 0
修改于2011-10-14
得票数 1
2
回答
WebConfigurationManager
.OpenWebConfiguration抛出未能映射路径'/‘
我正在使用: Configuration objConfig =
WebConfigurationManager
.OpenWebConfiguration(HttpContext.Current.Request.ApplicationPath
浏览 12
修改于2015-04-08
得票数 1
1
回答
在单元测试中使用
WebConfigurationManager
要加载Web.config,需要使用
WebConfigurationManager
.OpenWebConfiguration。这在单元测试中不能很好地工作。 我有什么选择?
浏览 0
修改于2011-09-08
得票数 4
1
回答
WebConfigurationManager
.OpenWebConfiguration返回“正在检索COM类工厂...失败”
我正在尝试运行使用方法来处理远程IIS站点配置的.NET工具。虽然它在其他计算机上运行良好,但我的计算机拒绝连接,因为方法调用引发了以下异常:我尝试在x86构建配置中运行该应用程序,但无济于事。
浏览 0
提问于2015-08-03
得票数 0
5
回答
在执行过程中动态覆盖
WebConfigurationManager
.AppSettings["SomeProperty"]
var someVar =
WebConfigurationManager
.AppSettings["SomeProperty"]; } }我不能更改该代码,但我需要
WebConfigurationManager
.AppSettings"SomeProperty“根据一些外部条件(例如,根据用户角色)返回不同的值。我发现了这个问题:,但它似乎不适合我,因为这里
WebConfigurationManager
.AppSettings&q
浏览 0
修改于2017-05-23
得票数 0
1
回答
从
webConfigurationManager
.AppSettings中读取asp.net
在googling之后,我发现我可以使用以下代码:
WebConfigurationManager
.AppSettings["configFile
浏览 4
修改于2015-02-11
得票数 0
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券