0

共有ホスティング アカウントで複数のドメインをホストするオプションがあります。プライマリ ドメインをルート フォルダーでホストする必要があり、他のドメインは、そのルート フォルダー内でホストされているドメインごとに別のフォルダーでホストできます。プライマリ ドメイン domain1.com は完全に正常に動作します。しかし、domain2.com 用に構成されたフォルダー名「domain2」で新しいフォルダーを作成し、静的なwelcome.html ページをアップロードすると、次のエラーが表示されました。

Server Error in '/domain2' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: Could not load file or assembly 'MySql.Web' or one of its dependencies. The system cannot find the file specified.

Source Error: 


Line 37:            <providers>
Line 38:                <clear/>
Line 39:                <add connectionStringName="domain1MembershipDB" applicationName="/" autogenerateschema="true" name="MySqlRoleProvider" type="MySql.Web.Security.MySQLRoleProvider, MySql.Web"/>
Line 40:            </providers>
Line 41:        </roleManager>

Source File: D:\Hosting\4343434\html\web.config    Line: 39 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'MySql.Web' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

しかし、これは私のプライマリ ドメイン domain1.com の web.config ファイルに対応する行であり、domain1.com は引き続き正常に動作します。

ちょっとした情報が欠けていますか?

4

1 に答える 1

1

これは、セカンダリ ドメインが web.config 定義を継承しているが、必要な dll への参照がないためMySql.Web.dllです。

セカンダリ ドメインを追加すると、上位レベルの接続文字列をクリアできます。

<roleManager>
   <providers>
     <clear/>
   </providers>
</roleManager>
于 2012-09-09T12:07:53.667 に答える