2009-08-10 98 views
1

這幾個月在本地工作正常,只是打破了部署到服務器(discountasp)。我正在開發.net 3.5和asp.net mvc。我以前在這個帳戶(但沒有配置部分)上成功地託管了asp.net mvc應用程序。自定義配置部分的配置錯誤 - 找不到指定的文件?

我有一個自定義配置節在我的web.config文件中設置了這是造成負載以下錯誤:

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: An error occurred creating the configuration section handler for SCConfig: The system cannot find the file specified. 

Source Error: 

Line 179: 
Line 180: <SCConfig> 
Line 181: <authentication> 
Line 182:  <groups Administrators="Administrator" Auditors="Auditor" Auditor_Supervisors="Auditor Supervisor" Auditor_Externals="External Auditor" Biz_Users="Business User"/> 

Source File: E:\web\irstagelert\htdocs\web.config Line: 180 

Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074 

,我定義的配置處理程序的Web.config的部分是:

<section name="SCConfig" type="com.lerteco.SoxCompliance.ConfigHandler.CustomTagHandler, com.lerteco.SoxCompliance.ConfigHandler"/> 

我玩的類型的幾個不同的迭代,但他們都產生與上述相同的錯誤消息。

類文件的頂部是:

namespace com.lerteco.SoxCompliance.ConfigHandler 
{ 

    [Flags] 
    public enum GroupCodes 
    { 
     .... 
    } 

    public class CustomTagHandler : IConfigurationSectionHandler 
    { 
     public object Create(object parent, object configContext, XmlNode section) 
     { 

而且我已經確認主機上的/斌/目錄既包含了com.lerteco.SoxCompliance.ConfigHandler.dll.... pdb文件。

感謝您的幫助, 詹姆斯

+1

你可以發佈你的配置文件的configSections部分以及ConfigHandler類的其餘部分嗎?它看起來像一個運行時錯誤發生在ConfigHandler中。 – Jacob 2009-08-11 01:15:51

回答