error when login

error when login

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


lionel posted on Monday, September 03, 2007

 Hello, I got error after enter user/pass.  and when I set to use com+. I'm using win2000 server.

 <add key="CslaDataPortalProxy"
    value="EnterpriseServicesHost.EnterpriseServicesProxy, EnterpriseServicesHostcs"/>

works fine for RemotingProxy and WebServicesProxy.  Can someone pls help?

Thanks,

=======================================================

 

Server Error in '/PTWeb' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 171:        if (proxy.IsServerRemote)
Line 172:          ApplicationContext.SetGlobalContext(result.GlobalContext);
Line 173:        throw new DataPortalException("DataPortal.Fetch " + 
Line 174:          Resources.Failed, ex.InnerException, result.ReturnObject);
Line 175:      }

Source File: C:\Visual Studio Projects\csla20cs\Csla\DataPortal\Client\DataPortal.cs    Line: 173

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]

[CallMethodException: DataPortal_Fetch method call failed]

[DataPortalException: DataPortal.Fetch failed]
   Csla.DataPortal.Fetch(Object criteria) in C:\Visual Studio Projects\csla20cs\Csla\DataPortal\Client\DataPortal.cs:173
   Csla.DataPortal.Fetch(Object criteria) in C:\Visual Studio Projects\csla20cs\Csla\DataPortal\Client\DataPortal.cs:138
   ProjectTracker.Library.Security.PTPrincipal.Login(String username, String password) in C:\Visual Studio Projects\ProjectTracker20cs\ProjectTracker.Library\Security\PTPrincipal.cs:15
   PTMembershipProvider.ValidateUser(String username, String password) in c:\Visual Studio Projects\ProjectTracker20cs\www\PTWeb\App_Code\PTMembershipProvider.cs:11
   System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +160
   System.Web.UI.WebControls.Login.AttemptLogin() +105
   System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +99
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
   System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102


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

webjedi replied on Monday, October 01, 2007

Check step 7 from this document:

http://www.lhotka.net/files/csla20/BuildCsla.pdf

Copyright (c) Marimer LLC