Could not load type Csla.BusinessBase from assembly OCSRR.Web.Controls

Could not load type Csla.BusinessBase from assembly OCSRR.Web.Controls

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


capo posted on Monday, March 10, 2008

Have you ever seen this error?

Same code works fine on my colleague pc... but when I try to save the form on my pc I get the following error.

<ClassName id="ref-18">System.TypeLoadException</ClassName>
<Message id="ref-19">Could not load type &#39;Csla.BusinessBase`1&#39; from assembly &#39;OCSRR.Web.Controls, Version=1.0.2979.28349, Culture=neutral, PublicKeyToken=null&#39;.</Message>
<Data xsi:null="1"/>
<InnerException xsi:null="1"/>
<HelpURL xsi:null="1"/>
<StackTraceString id="ref-20">   at OCSRR.Web.Controls.ReqRepFormBase`1.SaveBusinessObject()
   at OCSRR.Web.Controls.FormBase.mBtnSave_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\OCSR\OCSRR\OCSRR.Web.Controls\FormBase.vb:line 200
   at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)</StackTraceString>
<RemoteStackTraceString xsi:null="1"/>
<RemoteStackIndex>0</RemoteStackIndex>
<ExceptionMethod id="ref-21">8
SaveBusinessObject
OCSRR.Web.Controls, Version=1.0.2979.28349, Culture=neutral, PublicKeyToken=null
OCSRR.Web.Controls.ReqRepFormBase`1
Void SaveBusinessObject()</ExceptionMethod>

Can you help? Thank you

RockfordLhotka replied on Monday, March 10, 2008

No, I haven't seen something like that.

However, you might try doing a Clean in your solution. And you might also try deleting the temporary web cache VS creates under your user profile. Sometimes that cache gets old stuff and VS can get confused.

Copyright (c) Marimer LLC