System.Runtime.Serialization.SerializationException: Type is not resolved for member 'ContractManagerBO.CMBO.CMBusinessPrincipal,ContractManagerBO, Version=3.0.5.2, Culture=neutral, PublicKeyToken=null'.

System.Runtime.Serialization.SerializationException: Type is not resolved for member 'ContractManagerBO.CMBO.CMBusinessPrincipal,ContractManagerBO, Version=3.0.5.2, Culture=neutral, PublicKeyToken=null'.

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


nitinbande posted on Tuesday, April 27, 2010

Hello,

 

I am using VS2005, VB.net and trying to integrate CSLA object in my web application. when i take simple page it is working properly but when i integrating this page with master page i am getting an error

"System.Runtime.Serialization.SerializationException: Type is not resolved for member 'ContractManagerBO.CMBO.CMBusinessPrincipal,ContractManagerBO, Version=3.0.5.2, Culture=neutral, PublicKeyToken=null'."

here is my CSLA object

        ContractManagerBO.CMBO.CMBusinessPrincipal.Login("", "", True)
        Dim temp As String = ContractManagerBO.CMBO.Carrier.GetCarrier("RDWY").CarrName

My CSLA objects are written 1.1 and web application is in 2.0.

Thanks,

Nitin

RockfordLhotka replied on Tuesday, April 27, 2010

Are you using the ASP.NET Development Web Server (code name Cassini)? If so, this is a known limitation of Cassini - you can't use custom principal types unless you install the containing assembly in the GAC. You are better off using IIS for your dev work when using a custom prinicpal.

Copyright (c) Marimer LLC