이전에 문제가 있습니다. 그것을 해결하는 방법에 대한 나의 참조를 찾을 수 없습니다.App.config 연결 문자열 보호 오류
여기에 문제가 있습니다. 우리는 아래의 클라이언트 응용 프로그램을 사용하여 코드의의 app.config에서 연결 문자열 섹션을 암호화 :
config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None)
If config.ConnectionStrings.SectionInformation.IsProtected = False Then
config.ConnectionStrings.SectionInformation.ProtectSection(Nothing)
' We must save the changes to the configuration file.'
config.Save(ConfigurationSaveMode.Modified, True)
End If
문제는 우리가 영업 사원의 휴가를했다입니다. 오래된 노트북은 새로운 영업 사원에게 가고 새로운 사용자의 로그인 아래에서 이렇게하려고 할 때 오류가 발생합니다. 오류 :
Unhandled Exception: System.Configuration.ConfigurationErrorsException:
An error occurred executing the configuration section handler for connectionStrings. ---> System.Configuration.ConfigurationErrorsException: Failed to encrypt the section 'connectionStrings' using provider 'RsaProtectedConfigurationProvider'.
Error message from the provider: Object already exists.
---> System.Security.Cryptography.CryptographicException: Object already exists
Vista 이상인 경우 관리자 권한으로 실행하고 있는지 확인하십시오. –