Problem With , Server.Hosts.EnterpriseServicesPortal svc = GetServerObject();

Problem With , Server.Hosts.EnterpriseServicesPortal svc = GetServerObject();

Old forum URL: forums.lhotka.net/forums/t/3999.aspx


amit posted on Thursday, December 06, 2007

Hi ,

I am trying to run projecttracker20cs PTWeb application (CSLA 2.1.4-070223). I have done all setting as per the release notes. The Projects starts successfully...but when I goes to login or click on ProjectList hyperlink I got  following error :-

Server Error in '/MyDemo' Application.

The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

Source Error:

Line 50:     public virtual Server.DataPortalResult Fetch(Type objectType, object criteria, Server.DataPortalContext context)
Line 51:     {
Line 52:       Server.Hosts.EnterpriseServicesPortal svc = GetServerObject();
Line 53:       try
Line 54:       {

Source File: C:\Documents and Settings\anawale\Desktop\csla\csla20cs-2.1.4-070223\csla20cs\csla20cs\Csla\DataPortal\Client\EnterpriseServicesProxy.cs    Line: 52

Stack Trace:

[FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)]
   System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) +0
   System.EnterpriseServices.Thunk.Proxy.CoCreateObject(Type serverType, Boolean bQuerySCInfo, Boolean& bIsAnotherProcess, String& uri) +539
   System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type serverType) +161
   System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type serverType, Object[] props, Boolean bNewObj) +73
   EnterpriseServicesHost.EnterpriseServicesProxy.GetServerObject() +32
   Csla.DataPortalClient.EnterpriseServicesProxy.Fetch(Type objectType, Object criteria, DataPortalContext context) in C:\Documents and Settings\anawale\Desktop\csla\csla20cs-2.1.4-070223\csla20cs\csla20cs\Csla\DataPortal\Client\EnterpriseServicesProxy.cs:52
   Csla.DataPortal.Fetch(Type objectType, Object criteria) in C:\Documents and Settings\anawale\Desktop\csla\csla20cs-2.1.4-070223\csla20cs\csla20cs\Csla\DataPortal\Client\DataPortal.cs:185
   Csla.DataPortal.Fetch(Object criteria) in C:\Documents and Settings\anawale\Desktop\csla\csla20cs-2.1.4-070223\csla20cs\csla20cs\Csla\DataPortal\Client\DataPortal.cs:140
   ProjectTracker.Library.ProjectList.GetProjectList() in D:\csla20cs-2.1.4-070223\New Folder\csla20cs\ProjectTracker20cs\ProjectTracker.Library\ProjectList.cs:22
   ProjectList.GetProjectList() +56
   ProjectList.ProjectListDataSource_SelectObject(Object sender, SelectObjectArgs e) +5
   Csla.Web.CslaDataSource.OnSelectObject(SelectObjectArgs e) in C:\Documents and Settings\anawale\Desktop\csla\csla20cs-2.1.4-070223\csla20cs\csla20cs\Csla\Web\CslaDataSource.cs:180
   Csla.Web.CslaDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) in C:\Documents and Settings\anawale\Desktop\csla\csla20cs-2.1.4-070223\csla20cs\csla20cs\Csla\Web\CslaDataSourceView.cs:93
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +17
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +149
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
   System.Web.UI.WebControls.GridView.DataBind() +4
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +69
   System.Web.UI.Control.EnsureChildControls() +87
   System.Web.UI.Control.PreRenderRecursiveInternal() +41
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360

 Can anybody please help me :-)

ajj3085 replied on Friday, December 07, 2007

It sounds like you have a COM library that isn't properly registered.

Copyright (c) Marimer LLC