无法识别的属性'configProtectionProvider'。请注意,属性名称区分大小写 [英] Unrecognized attribute 'configProtectionProvider'. Note that attribute names are case-sensitive
本文介绍了无法识别的属性'configProtectionProvider'。请注意,属性名称区分大小写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨所有
我在我的项目中添加一个Web服务功能(vb.net应用程序)
和我在app.config中解密连接字符串
但是当我运行程序时这个错误的表现者:
无法识别的属性'configProtectionProvider'。请注意,属性名称区分大小写
请帮助我
谢谢
解决方案
很难猜出所提供的信息出了什么问题。但请查看步骤:
http://msdn.microsoft.com /en-us/library/dtkwfdky.aspx [ ^ ]
祝你好运!
我的加密连接字符串遇到了同样的问题。对我来说,问题是调用`ConfigurationManager.RefreshSection(connectionStrings)`命令。
试试这个:
< pre lang =c#>配置config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
if (config.ConnectionStrings!= null )
{
foreach (ConnectionStringSettings cs in config.ConnectionStrings.ConnectionStrings)
{
// 您的代码在这里......
}
}
hi for all
I add a Web Service function in my project(vb.net application)
and i Decrypt connectionstring in app.config
but when i run program this error apperars:
Unrecognized attribute 'configProtectionProvider'. Note that attribute names are case-sensitive
please help me
thanks
解决方案
It's hard to guess what is going wrong with the information provided. But check out the walk through:
http://msdn.microsoft.com/en-us/library/dtkwfdky.aspx[^]
Good luck!
I was having the same problem with my encrypted connection strings. For me, the problem was with a call to `ConfigurationManager.RefreshSection("connectionStrings")` command.
Try this:
Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); if (config.ConnectionStrings != null) { foreach (ConnectionStringSettings cs in config.ConnectionStrings.ConnectionStrings) { // Your code here... } }
这篇关于无法识别的属性'configProtectionProvider'。请注意,属性名称区分大小写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文