I've been having a hell of a time with the last few releases of LLBLGen. Normally, after I upgrade, I stick the runtime libs in the gac, reference the new libs, regen the code, do a build and everything works. However, after upgrading about a week ago (for about the first time since early June), this method produces the following error:
Server Error in '/' Application.
Method not found: Boolean SD.LLBLGen.Pro.ORMSupportClasses.EntityBase2.SetNewFieldValue(Int32, System.Object, Boolean).
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.MissingMethodException: Method not found: Boolean SD.LLBLGen.Pro.ORMSupportClasses.EntityBase2.SetNewFieldValue(Int32, System.Object, Boolean).
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[MissingMethodException: Method not found: Boolean SD.LLBLGen.Pro.ORMSupportClasses.EntityBase2.SetNewFieldValue(Int32, System.Object, Boolean).]
Mozaic.Portal.BusinessEntities.EntityClasses.PortalsEntity.SetNewFieldValue(Int32 fieldIndex, Object value) +0
Mozaic.Portal.BusinessEntities.EntityClasses.PortalsEntity.set_ID(Int32 value) +31
Mozaic.Portal.BusinessEntities.EntityClasses.PortalsEntity..ctor(Int32 iD) +87
Mozaic.Portal.BusinessServices.PortalManager.Fetch(Int32 portalID) +50
Mozaic.Portal.BusinessServices.PortalManager.get_CurrentPortal() +113
Mozaic.Portal.Web.Index.Page_Init(Object sender, EventArgs e) +113
System.Web.UI.Control.OnInit(EventArgs e) +67
System.Web.UI.Control.InitRecursive(Control namingContainer) +241
System.Web.UI.Page.ProcessRequestMain() +197
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
This happens for all web applications built against the newer releases and on all machines I've tried it on, including my Windows XP development box, another programmers XP box, our Windows 2000 staging server, and our Windows 2000 intranet server.
I did manage to get the assemblies installed in the gac on my local machine after removing all previous llblgen libs from the gac and only installing the latest, however this does not work on all of our servers and I get the error above if the runtime libs are in the gac. I then have to have copies of the lib in the bin directory for my app to run, which causes other problems.
I would love to avoid the gac altogether, but unfortunatly asp.net throws cryptic compiler errors if you reference a strong named assemblies in the gac (see here among others http://support.microsoft.com/default.aspx?scid=kb;en-us;813833). I could also compile my own versions from your source but that can get really tedious, especially when you put out several releases in a week (especially since I would have to re-distribute those custom assemblies to the other developers here each time).
I've performed this same upgrade dozens of times over the last year and a half (basically since LLBLGen Pro was release) and this is the first time I've ever had this problem and now I'm completely stuck. Help!