Weird error that only happens sometimes..
-
I am getting an error that I cannot reproduce in the dev environment.. Here is the information I have captured from the deployed app. Please tell me what this means if it means anymore to you than myself. Also it would be cool if you could tell me why my stack trace does not show the line numbers like many other stack traces that I have seen. This error is very random there does not seem to a consistent set of steps that causes it. Error number 5 T Create__Instance__[T](T) An error occurred creating the form. See Exception.InnerException for details. The error is: Exception has been thrown by the target of an invocation. Stack trace at ClientDBv3.My.MyProject.MyForms.Create__Instance__[T](T Instance) at ClientDBv3.frmClientCommon1..ctor() at ClientDBv3.frmMainForm.sCallClientScreen(Int64 lUniqueNumber, String tMode) at ClientDBv3.frmMainForm.btnOpen_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.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) thank you.
Humble Programmer
-
I am getting an error that I cannot reproduce in the dev environment.. Here is the information I have captured from the deployed app. Please tell me what this means if it means anymore to you than myself. Also it would be cool if you could tell me why my stack trace does not show the line numbers like many other stack traces that I have seen. This error is very random there does not seem to a consistent set of steps that causes it. Error number 5 T Create__Instance__[T](T) An error occurred creating the form. See Exception.InnerException for details. The error is: Exception has been thrown by the target of an invocation. Stack trace at ClientDBv3.My.MyProject.MyForms.Create__Instance__[T](T Instance) at ClientDBv3.frmClientCommon1..ctor() at ClientDBv3.frmMainForm.sCallClientScreen(Int64 lUniqueNumber, String tMode) at ClientDBv3.frmMainForm.btnOpen_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.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) thank you.
Humble Programmer
Hi, in order to provide line numbers, the EXE (and the DLL files it depends on) need the presence of the PDB files next to the files they relate to. The actual situation and problem description is too vague to work on. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
-
Hi, in order to provide line numbers, the EXE (and the DLL files it depends on) need the presence of the PDB files next to the files they relate to. The actual situation and problem description is too vague to work on. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
So I would have to deploy in Debug mode this that correct? If my understanding is correct the only problem that deploying like would cause is that somethings would not be optimized is that a correct assumption.
Humble Programmer
-
Hi, in order to provide line numbers, the EXE (and the DLL files it depends on) need the presence of the PDB files next to the files they relate to. The actual situation and problem description is too vague to work on. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
Do you know what the error could be referring to?
Humble Programmer
-
So I would have to deploy in Debug mode this that correct? If my understanding is correct the only problem that deploying like would cause is that somethings would not be optimized is that a correct assumption.
Humble Programmer
deploy a debug build and include the PDB file(s), that is what I recommend. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
-
I am getting an error that I cannot reproduce in the dev environment.. Here is the information I have captured from the deployed app. Please tell me what this means if it means anymore to you than myself. Also it would be cool if you could tell me why my stack trace does not show the line numbers like many other stack traces that I have seen. This error is very random there does not seem to a consistent set of steps that causes it. Error number 5 T Create__Instance__[T](T) An error occurred creating the form. See Exception.InnerException for details. The error is: Exception has been thrown by the target of an invocation. Stack trace at ClientDBv3.My.MyProject.MyForms.Create__Instance__[T](T Instance) at ClientDBv3.frmClientCommon1..ctor() at ClientDBv3.frmMainForm.sCallClientScreen(Int64 lUniqueNumber, String tMode) at ClientDBv3.frmMainForm.btnOpen_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.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) thank you.
Humble Programmer
Just on a hunch, are you using the "default form instance" facility that VB.NET provides to help with upgrading VB6 apps? My guess is that there is some problem that is occurring the first time you use frmClientCommon1. Did you do what the error message suggested and look at the InnerException? The inner exception should provide you with more useful information about what is going wrong. Also, as a general tip, think about what is different between the dev environment and production environment. Different connection strings needed? Missing data files? Registry settings? Basically anything that might be set up differently.