簡體   English   中英

Web.config影響共享托管帳戶中的其他域

[英]Web.config affecting the other domains in shared hosting account

我可以選擇在一個共享的托管帳戶上托管多個域。 我必須將我的主域托管在根文件夾中,而其他域可以托管在該根文件夾中,其中每個托管的域都有單獨的文件夾。 主域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仍然可以正常工作。

我是否缺少任何一點信息?

這是因為您的輔助域繼承了web.config定義,但沒有對必需的dll MySql.Web.dll的引用。

如果在輔助域中添加,則可以清除上一級的連接字符串:

<roleManager>
   <providers>
     <clear/>
   </providers>
</roleManager>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM