Problem on install

Posts   
 
    
Jeff M
User
Posts: 250
Joined: 04-Aug-2004
# Posted on: 11-Aug-2006 07:03:13   

Hi Frans.

I installed LLBLGenPro ver 2.0 8-9-06 build. Then, I installed the new version of Template Studio. I started Template Studio in the same directory and got this:


Exception has been thrown by the target of an invocation.
Object reference not set to an instance of an object.

with the following stack trace:


-----[Core exception]--------------------
   at System.RuntimeMethodHandle._SerializationInvoke(Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context)
   at System.RuntimeMethodHandle.SerializationInvoke(Object target, SignatureStruct declaringTypeSig, SerializationInfo info, StreamingContext context)
   at System.Reflection.RuntimeConstructorInfo.SerializationInvoke(Object target, SerializationInfo info, StreamingContext context)
   at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)
   at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)
   at System.Runtime.Serialization.ObjectManager.DoFixups()
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at SD.LLBLGen.Pro.Tools.TemplateEditor.MainForm.MainForm_Load(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
-----[InnerException]--------------------
   at SD.LLBLGen.Pro.Tools.TemplateEditor.Classes.GuiState..ctor(SerializationInfo info, StreamingContext context)

What am I doing wrong?

Thanks.

Jeff

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 11-Aug-2006 10:08:14   

strange. Could you remove the Template StudioGuiState20.dat file in C:\documents and settings\yourusername\Application data\LLBLGen Pro

?

Stil strange that it crashes there as the file is new for templatestudio 2.0...

Frans Bouma | Lead developer LLBLGen Pro
Jeff M
User
Posts: 250
Joined: 04-Aug-2004
# Posted on: 12-Aug-2006 23:07:09   

Well, deleting the TemplateStudioGuiState20.dat didn't work, so I removed all the Template Studio files in the documents and settings. This included several files that did not have the ...20.

This seems to have worked.

Upon closing of Template Studio, two new files (TSGuiState20 and TSPanelState20) were created.

Thanks, Frans.

Jeff

mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 13-Aug-2006 13:44:21   

Otis wrote:

strange. Could you remove the Template StudioGuiState20.dat file in C:\documents and settings\yourusername\Application data\LLBLGen Pro

?

Stil strange that it crashes there as the file is new for templatestudio 2.0...

I had a similar issue. I "installed" TS2 with the july version of LLBLGP. It worked. Then I uninstalled LLBLGP July and installed august version (what are the differences btw?). After I run TS2 again I got this error. I deleted .dat file and now it works fine.

mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 13-Aug-2006 14:06:19   

I also noted that this problem might happen when you encounter exceptions during working (I got an exception that has something to do with a dictionary and a key - but I can't reproduce it) with TS2 but you continue to work. Seems like TS2 saved corrupted dat file at the end.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 13-Aug-2006 14:31:21   

mihies wrote:

Otis wrote:

strange. Could you remove the Template StudioGuiState20.dat file in C:\documents and settings\yourusername\Application data\LLBLGen Pro

?

Stil strange that it crashes there as the file is new for templatestudio 2.0...

I had a similar issue. I "installed" TS2 with the july version of LLBLGP. It worked. Then I uninstalled LLBLGP July and installed august version (what are the differences btw?).

Differences are that the aug 3rd version starts to have support for a templateLanguage attribute on a templatebinding tag. This is required for lpt templates which have a different templatelanguage logic than the target lanuage. Say you want to emit HTML or SQL text, so the targetlanguage is for example HTML or SQL, then you need to specify somewhere that you're usign C# as the templatelanguage.

After I run TS2 again I got this error. I deleted .dat file and now it works fine.

Thanks, I now understand why this is... simple_smile

Frans Bouma | Lead developer LLBLGen Pro