ターミナルサーバーに.netアプリケーションをインストールすると、アプリの起動時に次の例外がスローされます。
System.Configuration.ConfigurationErrorsExceptionMessage = Index 1 is out of range.FullText=
System.Configuration.ConfigurationErrorsException: Index 1 is out of range.
at System.Configuration.ConfigurationElementCollection.BaseGet(Int32 index)
at System.Configuration.ConnectionStringSettingsCollection.get_Item(Int32 index)
AppName.exe.configにある接続文字列が見つかりません。ただし、構成ファイルは.exeファイルの隣の正しい場所に配置され、接続文字列は.configファイルに存在します。このエラーはターミナルサーバーでのみ発生し、XP、Vista、win7ではすべて正常に動作します...
Appname.exe.config:
<?xml version="1.0"?>
<configuration>
<configSections>
...
</configSections>
<connectionStrings>
<add name="..."
connectionString="..." />
<add name="..."
connectionString="..." />
</connectionStrings>
...
どうしたの ??