CSLA 3.0.2: Multi-Tiered Deployment Problem

CSLA 3.0.2: Multi-Tiered Deployment Problem

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


cjherasmus posted on Wednesday, December 12, 2007

I have the following setup. If I missed out something, feel free to ask and I'll fill in the gaps.

 

I have a Windows Application that connects directly to my Security Database via the App.config file. Dead easy.  I have a Web Application that connects directly to my Security Database via the Web.config file. Dead easy.  These are exactly the same Security Database with the same tables and login stored proc.  Both applications use exactly the same XYPrincipal and XYIdentity.

 

I’ve added a public property “Roles” in XYIdentity to be able to reference the _roles List to which a user belongs to from the Windows and Web front-ends as follows:

 

public List<string> Roles

{

      get { return _roles; }

}

 

Everything works like a dream.

 

I then change as follows:

 

I have an “http://ApplicationServer” in IIS and ASP.NET 2.0 that contains a Web.config file that points to the Security Database via connection string.

 

I have an “http://WebSite” in IIS and ASP.NET for the Web Application which contains a Web.config file that points to the “http://ApplicationServer” via Remoting.  Now the Web Application connects to the “http://ApplicationServer” which connects to the Security Database. Dead easy.

 

I have a local Windows Application points to the “http://ApplicationServer” via Remoting. Now the Windows Application connects to the “http://ApplicationServer” which connects to the Security Database. Dead easy.

 

I have thus two different platforms (Windows and Web) on two different locations (local machine and web server) connecting to an “http://ApplicationServer” which in-turns connect to the Security Database. Dead easy.

 

Everything works like a dream, the user is authenticated, etc, except:

 

The Roles property in XYIdentity is not loaded with the roles from the database anymore. If I change back to the first scenario where I connect directly to the Security Database, the Roles gets loaded again. I need the role for authorization!

 

Anyone with a few ideas, please.

 

Regards,

cmellon replied on Thursday, December 13, 2007

It sounds like your application server has not got the latest build of your business objects.

 

 

cjherasmus replied on Monday, December 17, 2007

Thanks, problem solved.

Copyright (c) Marimer LLC