Updating an existing Project

Posts   
 
    
Eddie
User
Posts: 4
Joined: 16-Feb-2006
# Posted on: 16-Feb-2006 17:29:05   

I'm trying to update a project file to include some editted stored procedures, as well as some new fields in a few entities. The original generated files contain this information:

Code is generated using LLBLGen Pro version: 1.0.2004.2 // Code is generated on: Friday, October 28, 2005 2:14:14 PM // Code is generated using templates: C# template set for SqlServer (1.0.2004.2) // Templates vendor: Solutions Design. // Templates version: 1.0.2004.2.071205

Now, I'm using the demo version as kind of a proof of concept to upgrade the project as well as update my build to include my new edits to my schema. So, when I refresh my schema, it refreshes the items I need, but the old project generates some subdirectories like CollectionClasses, and EntityBseClasses which are referenced in my web project, yet no longer a part of myLLBLGen project. I used the self servicing adapter for VS 2005, what else do I need to do? The new version of LLBLGen I'm using is SD.LLBLGen.Pro.ORMSupportClasses.NET2.0.dll

Eddie
User
Posts: 4
Joined: 16-Feb-2006
# Posted on: 16-Feb-2006 18:12:59   

Okay, I got it to build the CollectionClasses folder and files, but I still need it to build the EntityBaseClasses folder in my LLBLGen Project, as well as the associated Base classes. I did get the legacy Project file to compile and referenced it in my project, and I get this error when I try to browse my website. I'm a newbie at LLBLGen by the way!

System.IO.FileLoadException: Could not load file or assembly 'SD.LLBLGen.Pro.ORMSupportClasses.NET11, Version=1.0.2004.2, Culture=neutral, PublicKeyToken=ca73b74ba4e3ff27' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'SD.LLBLGen.Pro.ORMSupportClasses.NET11, Version=1.0.2004.2, Culture=neutral, PublicKeyToken=ca73b74ba4e3ff27' at XXXXX.Business.Renter.GetMoveDate(Guid RenterRefID) at DetailedSearch.SetFlashMoveDate() in c:\Renter\Renter\DetailedSearch.aspx.cs:line 51 at DetailedSearch.Page_Load(Object sender, EventArgs e) in c:\Renter\Renter\DetailedSearch.aspx.cs:line 36 at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 17-Feb-2006 07:41:24   

Your code is referencing SD.LLBLGen.Pro.ORMSupportClasses.NET11, while it should be referencing SD.LLBLGen.Pro.ORMSupportClasses.NET20

If you generate your code to work for .Net 2, you should be referencing the corresponding LLBLGen Pro RuntimeLibraries.