强烈向大家推荐一个好网站,【我要自学网】,教程由在校老师录制,有办公会计、平面设计、室内设计、机械设计、网页编程、影视动画等教程.....让你足不出门,都可以体验学校的专业教育!
hishop访问报错未能使用提供程序“DataProtectionConfigurationProvider”进行解密。提供程序返回错误消息为: 该项不适于在指定状态下使用,
您可以修改web.config配置文件中的数据库连接信息 参考代码
<connectionStrings> <add name="HishopSqlServer" connectionString="server=数据库地址;uid=登录名;pwd=数据库密码; Trusted_Connection=no;database=数据库名" providerName="System.Data.SqlClient"/> </connectionStrings>
把这段代码按新的数据库信息修改之后覆盖到原有代码上即可
web.config-里面查找
就是这段代码,您把修改之后的代码覆盖这段代码就可以了
<connectionStrings configProtectionProvider=”DataProtectionConfigurationProvider”> <EncryptedData> <CipherData> <CipherValue>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAA3JTtorFsS0aM7tN3BmvCbgQAAAACAAAAAAADZgAAqAAAABAAAACYBBUhZn4BrPV1RK+VYMPBAAAAAASAAACgAAAAEAAAAGxoGq2pS23T/YUDp5AphM3IAQAAk052ljqcX0X5Q/uphGeSkD78fFaLNzDjdPW6bpzy9wiJBzo1CD56SJ4uBC3l3L07VvdC8k2guZV68eDytKrOUIF64QH7Ee8Qfdl2Eex32odEsIjHhz/F0oeTe4o5gtZhbBSm3fjlRviLYGftisBZSNpufWooUUdWNaPAtcj0IrlsYNu2uV+OAX7flXwoCm31kBBwQ2LoNzG/Wf6fU5NLvwSTVyik1yfruxA5uVl43Xy5O6dx6jIx3nw9Ln+QfK+N2o9+qsmyRPD8H/5ezp5t+AI+kb0zH/9sPREr6FvenidD4k5ZOyrbim52a7YH9j5RftY8UwpCmHlmtP31QsWQko1mqBQWIdc3TVrZ64ea/Gf5B8pa1DQUfHd5Yqp6eUeZ0zhegvulXH+HBiPhcj/vr2Qybwa+vUp/kqernSIlEKhSvitoB7hYWDgSI+lwR5CM971YnhAcIcouXwmVbKG6jv038kxdQKGMivrV1JyoG4lWoqPEbO6vh1w8ysRTDabbeMxtkJum7PxGmGijXNqIWLWzxKdsCVWYX4B0fa7WTdKlhnI9pDRAJX3lYT3MfecG+RO6GmCl8q9pYM2cmBRhKlcCtZ0B7KRFFAAAAKqdigcokl0p6kAZTwVjeYuY0266</CipherValue> </CipherData> </EncryptedData> </connectionStrings>