0
C:\WINDOWS\Microsoft.NET\Framework\v2.0>aspnet_regiis.exe -pef connection1
"C:\Website1" -prov "RSAProtectedConfigurationProvider"
Encrypting configuration section...
The configuration section 'connection1' was not found.
Failed!

上記は、接続文字列の暗号化中に発生したエラーのスクリーン ショットです。

Web構成ファイルは次のとおりです。

<configuration>

    <connectionStrings>
        <add name="connection1" connectionString="Data Source=inpun2-s4pvh8bs;uid=cusa;pwd=csusa;Initial Catalog=ChemTrack"/>
    </connectionStrings>
</configuration>

これについて何か考えはありますか?

Visual Studio 2010 コマンド プロンプトからこれを実行しています。私が使用しているエアコンも管理者グループのメンバーです。

4

1 に答える 1

0

代わりにこれを試してください:

aspnet_regiis.exe -pef "connectionStrings" "C:\Website1"

詳細: http: //www.codeproject.com/Tips/304638/Encrypt-or-Decrypt-Connection-Strings-in-web-confi

于 2012-09-25T11:51:17.950 に答える