命名空间异常

时间:2009-07-15 16:15:42

标签: subsonic

我在Fasthosts托管的网站上遇到以下异常。它刚刚启动,并通过编辑web.config解决,从而回收应用程序。问题是它每两周左右回来一次。任何人的想法?

异常详细信息:System.ArgumentException:给定名称“NHSSBS”至少匹配具有不同名称空间的集合对象中的两个名称。

来源错误:

第32行:string pageDatabasePath = SiteStructure.GetDatabasePath(Request.AppRelativeCurrentExecutionFilePath); 第33行: 第34行:SubSonic.Query query = new SubSonic.Query(“Metatag”); 第35行:query.QueryType = SubSonic.QueryType.Select; 第36行:query.WHERE(“Path”,pageDatabasePath);

源文件:e:\ DOMAINS \ s \ sbs.nhs.uk \ user \ htdocs \ UserControls \ HTMLHead.ascx.cs Line:34

堆栈追踪:

[ArgumentException:给定名称'NHSSBS'匹配具有不同名称空间的集合对象中的至少两个名称。    System.Data.DataTableCollection.get_Item(String name)+1770251    C:\ Program Files \ SubSonic \ SubSonic 2.0.3 \ src \ SubSonic \ DataProviders \ SqlDataProvider.cs中的SubSonic.SqlDataProvider.GetTableSchema(String tableName,TableType tableType):430    C:\ Program Files \ SubSonic \ SubSonic 2.0.3 \ src \ SubSonic \ DataProviders \ DataService.cs中的SubSonic.DataService.GetSchema(String tableName,String providerName,TableType tableType):426    C:\ Program Files \ SubSonic \ SubSonic 2.0.3 \ src \ SubSonic \ DataProviders \ DataService.cs中的SubSonic.DataService.GetTableSchema(String tableName,String providerName):440    C:\ Program Files \ SubSonic \ SubSonic 2.0.3 \ src \ SubSonic \ Sql Tools \ Query.cs中的SubSonic.Query.BuildTableSchema(String tableName,String providerName):497    C:\ Program Files \ SubSonic \ SubSonic 2.0.3 \ src \ SubSonic \ Sql Tools \ Query.cs中的SubSonic.Query.BuildTableSchema(String tableName):492    C:\ Program Files \ SubSonic \ SubSonic 2.0.3 \ src \ SubSonic \ Sql Tools \ Query.cs中的SubSonic.Query..ctor(String tableName):651    e:\ DOMAINS \ s \ sbs.nhs.uk \ user \ htdocs \ UserControls \ HTMLHead.ascx.cs中的UserControls_HTMLHead.SetupMetatags():34    e:\ DOMAINS \ s \ sbs.nhs.uk \ user \ htdocs \ UserControls \ HTMLHead.ascx.cs中的UserControls_HTMLHead.Page_Load(Object sender,EventArgs e):27    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp,Object o,Object t,EventArgs e)+14    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender,EventArgs e)+35    System.Web.UI.Control.OnLoad(EventArgs e)+99    System.Web.UI.Control.LoadRecursive()+50    System.Web.UI.Control.LoadRecursive()+ 141    System.Web.UI.Control.LoadRecursive()+ 141    System.Web.UI.Control.LoadRecursive()+ 141    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)+627

1 个答案:

答案 0 :(得分:1)

我猜你的/ bin中有不同名称的重复DLL。