0

私のweb.configファイルには次のものがあります-そのスニペットを以下に示します-ADConnectionセクションのみを暗号化したい-そして、UserIDとPasswordはこれを機能させるためのテスト用であることに注意してください:

<configuration>
  <configSections>
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  </configSections>
  <ADConnection
   UserID="Test"
   Password="Test1234"
/>
  <connectionStrings>
    <add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="" />
  </connectionStrings>
  <system.web>
    <compilation debug="true" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />
    <pages>

以下のコマンドを実行しているマシンは、64 ビット Windows Server 2008 R2 です。

次のことを試しました-右クリックしてCMDを管理者として実行します。

CD: C:\Windows\Microsoft.NET\Framework\v4.0.30319

次に、次のコマンドを試しました。

aspnet_regiis.exe -pef "ADConnection" C:\Users\Test\Documents\Visual Studio 2012\Projects\WebApplication
1\WebApplication1\Web.config

ただし、Enter キーを押すと、aspnet_regiis が実行できるすべてのオプションと、aspnet_regiis がローカル マシンに ASP.NET をインストールおよびアンインストールするために使用される管理ツールであるという簡単な説明が一覧表示されます。

私が見逃したものはありますか?

4

1 に答える 1