Moving a project file

Posts   
 
    
rcross
User
Posts: 8
Joined: 15-Jun-2004
# Posted on: 25-Jun-2004 00:05:11   

I have moved a project file from one machine to another machine, each having LLBLGen Pro installed I get the following error message when I try to open the project on the new machine:

Possible Version mismatch. Type System.Collections.Comparer has 1 members, number of members deserialized is 0.

Is it possible I may be having a versioning issue? Unfortunately the other machine is dead so I hope to get these project files running. Please let me know if there is a chance I can salvage these projects so I can continue to use them.

Thanks in advance, RC

The stack trace is below:

-----[Core exception]-------------------- at System.Runtime.Serialization.Formatters.Binary.ReadObjectInfo.GetMemberTypes(String[] inMemberNames) at System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable) at System.Runtime.Serialization.Formatters.Binary.ObjectMap.Create(String name, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable) at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record) at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum) at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run() at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, IMethodCallMessage methodCallMessage) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, IMethodCallMessage methodCallMessage) at SD.LLBLGen.Pro.ApplicationCore.Project.Load(String projectPathFileName) at SD.LLBLGen.Pro.Gui.Forms.MainWindow.OpenExistingProject(String filenameToOpen)

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 25-Jun-2004 09:50:53   

The source of this is that on the old machine you had probably VS.NET 2005 installed and not on the new box or vice versa. I got one report of this 2 weeks ago where this was the case. It is a .NET version related issue.

With a 'hack' I can trick the deserializer code to load your project again. However I have to create a custom ApplicationCore assembly for you. If it is not a lot of trouble, it would be good if you do the following: - UNinstall vs.net 2005 from your production system on which you use LLBLGen Pro. - Re-create the project.

In that order simple_smile

Frans Bouma | Lead developer LLBLGen Pro
rcross
User
Posts: 8
Joined: 15-Jun-2004
# Posted on: 25-Jun-2004 16:10:12   

It appears that Visual Studio 2005 was not installed, however it wouldn't suprise me if some other program was installed that might have caused a problem. The developer is no longer with us, so I really would like to be able to revive this project file. Are there any settings in the project file that could be modified via notepad?

Thanks, RC

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 25-Jun-2004 16:37:44   

rcross wrote:

It appears that Visual Studio 2005 was not installed, however it wouldn't suprise me if some other program was installed that might have caused a problem. The developer is no longer with us, so I really would like to be able to revive this project file. Are there any settings in the project file that could be modified via notepad?

No, the problem is that it's a binary serialized file. So altering it will violated it. This can only be solved by using a special crafted ApplicationCore dll which will fake the sortedlist deserializer with a fake class.

Be absolutely sure you don't have VS.NET 2005 installed on your system now.

I hope you're still using the old 1.0.2003.1 designer, so I can re-use the dll I've send to the other customer who had this problem 2 weeks ago simple_smile , otherwise I have to re-add the hack code and I didn't keep it (so I have to look it up on google again wink ). I'll mail you the fake dll to the email address you've specified in the forum system. I'll pack the dll in a zip file. If it doesn't arrive within 10 minutes a virusscanner has picked it up and you should mail me then so we can discuss how to get the dll accross simple_smile

You first should copy your old ApplicationCore dll to a back up dir, copy the dll I'll send you in the program folder, start LLBLGen Pro, load the project, save the project in another folder, close LLBLGen Pro, copy the backed up dll back, restart LLBLGen Pro and you should be able to load the project again.

The core reason for the error is that a different version of the SortedList Class is used during serialization, probably due to the presence of VS.NET 2005.

(mail sent).

Frans Bouma | Lead developer LLBLGen Pro
rcross
User
Posts: 8
Joined: 15-Jun-2004
# Posted on: 25-Jun-2004 17:11:26   

That worked perfectly!!! Thanks for that, you really saved me there. simple_smile

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 25-Jun-2004 18:03:29   

rcross wrote:

That worked perfectly!!! Thanks for that, you really saved me there. simple_smile

Ok simple_smile and I thank the .NET designers for including surrogate classes functionality simple_smile . I never knew they existed until I had to fix this issue 2 weeks ago. simple_smile

Frans Bouma | Lead developer LLBLGen Pro
radicalx
User
Posts: 3
Joined: 11-Aug-2004
# Posted on: 11-Aug-2004 23:10:56   

We are also having this problem at work. Two of us are able to open the project file, however, a guy who is relatively new to the team and who did not have previous versions of LLBLGen installed on his machine is unable to open a project file I created on my machine.

I have come up with an untested theory that core .NET libraries might get upgraded as part of the BizTalk 2004 installation (Certainly there are number of prerequisites dealing with the version of MSXML that need to be installed prior to BizTalk 2004)

I think well investigate this further and Ill let you guys know what happens.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 12-Aug-2004 10:47:13   

Did you get the same exception?

Frans Bouma | Lead developer LLBLGen Pro
Devildog74
User
Posts: 719
Joined: 04-Feb-2004
# Posted on: 12-Aug-2004 14:17:56   

Actually, BizTalk 2004 does put in .NET 1.1 hot fixes. Rcross and I used to work on the same dev team, and I was the only person doing LLBLGen IDE work. My machine was also the only machine that had BT2004 Installed on it.

radicalx
User
Posts: 3
Joined: 11-Aug-2004
# Posted on: 12-Aug-2004 17:25:42   

Otis wrote:

Did you get the same exception?

Yes it is the exact same exception which includes the contents of the stack trace.

radicalx
User
Posts: 3
Joined: 11-Aug-2004
# Posted on: 12-Aug-2004 17:28:10   

radicalx wrote:

I think a pattern is definately emerging. My colleague installed MDAC and XML 3.0 with no luck. He is now installing BizTalk 2004. I will verify the outcome in the next few hours.

Devildog74 wrote:

Actually, BizTalk 2004 does put in .NET 1.1 hot fixes. Rcross and I used to work on the same dev team, and I was the only person doing LLBLGen IDE work. My machine was also the only machine that had BT2004 Installed on it.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 12-Aug-2004 18:04:41   

I can send you the dll with the fake sortedlist to you as well, however if you can solve it differently, I'd recommend that.

Frans Bouma | Lead developer LLBLGen Pro
tmeyer
User
Posts: 20
Joined: 23-Feb-2010
# Posted on: 25-Aug-2010 19:57:10   

This is the same issue i'm currently having. Where can I get this DLL fix please?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 25-Aug-2010 20:21:28   

tmeyer wrote:

This is the same issue i'm currently having. Where can I get this DLL fix please?

please state the llblgen pro version you're using. If possible try to download the latest build of your version.

Frans Bouma | Lead developer LLBLGen Pro
tmeyer
User
Posts: 20
Joined: 23-Feb-2010
# Posted on: 25-Aug-2010 20:27:22   

Nevermind i fixed it, i just needed to install .NET 1.1 SP1. Thanks!