Deleted TypeConverter and now I can't open my project

Posts   
 
    
edalzell
User
Posts: 44
Joined: 27-May-2008
# Posted on: 26-May-2009 23:32:29   

I changed my mind about using a TypeConverter so I delete the source and the DLLs from my system. Now I can't open my LLBLGen project because it keeps looking for the TypeConverter.

Is there any way to force it to open the project?

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 27-May-2009 09:29:29   

As a work around, try to create a similar dummy dll for your typeConverter, ut it in the right folder. Open your project and then remove the TypceConverter usage from there. Now you can freely re-open your project without having the typeconverter dll.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39613
Joined: 17-Aug-2003
# Posted on: 27-May-2009 09:39:49   

The error comes from the fact that the typeconverter dll also contains specific .NET types, like enums, am I correct? As you have fields defined with those types, it needs to load the types. You indeed should first use the old type converter assembly to load the project, remove the type converter, then save again, or place the types in a separate assembly (with the same namespaces and signature) and select that assembly when the dialog pops up during project load to look for additional assemblies as it can't find a specific assembly.

In v2.x this is unfortunately the only way, as the deserialization is done by .NET and our code starts after the whole project file is loaded. If you really can't get it working and don't have any sourcecode of the types anymore, let us know, and we'll see if we can resurrect your project in a debug build of the designer. The main thing is, IF you still have the .net types which are defined by the typeconverters, that's the main solution. You can reply to this message to re-open the thread

Frans Bouma | Lead developer LLBLGen Pro
edalzell
User
Posts: 44
Joined: 27-May-2008
# Posted on: 27-May-2009 23:09:10   

Thanks guys, I ended up just recreating my project. Thankfully it is small.