M
moondaddy
I was working in my app today and my app was running fine. Then one time
when I tried to run it I started getting this error when the app tried to
load. Here's the error:
StackTrace " at
System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32
nCmdShow)
at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at CharmpixAdmin_01.frmMain.Main() in
D:\nwis\Apps\Charmpix\VS\CharmpixAdmin_01\frmMain.vb:line 26" String
So I built a new app and imported my old files and then rant it and got the
same error. when i tried to run the exe I got this error:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Configuration.ConfigurationException: '<', hexadecimal value 0x3C, is
an invalid attribute character. Line 67, position 3.
(D:\nwis\Apps\Charmpix\VS\CharmpixAdmin_01\bin\CharmpixAdmin_01.exe.config
line 67) ---> System.Xml.XmlException: '<', hexadecimal value 0x3C, is an
invalid attribute character. Line 67, position 3.
at System.Xml.XmlScanner.ScanLiteral()
at System.Xml.XmlTextReader.SetLiteralValues(XmlAttributeTokenInfo fld)
at System.Xml.XmlTextReader.SetAttributeValues()
at System.Xml.XmlTextReader.ParseElement()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.Skip()
at
System.Configuration.ConfigurationRecord.StrictSkipToNextElement(XmlTextRead
er reader)
at
System.Configuration.ConfigurationRecord.ScanSectionsRecursive(XmlTextReader
reader, String configKey)
at System.Configuration.ConfigurationRecord.Load(String filename)
--- End of inner exception stack trace ---
at System.Configuration.ConfigurationSettings.GetConfig(String
sectionName)
at System.Configuration.ConfigurationSettings.get_AppSettings()
at CharmpixAdmin_01.LoginForm.LoginForm_Load(Object sender, EventArgs e)
in D:\nwis\Apps\Charmpix\VS\CharmpixAdmin_01\LoginForm.vb:line 201
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.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
CharmpixAdmin_01
Assembly Version: 1.0.1742.40187
Win32 Version: 1.0.1742.40187
CodeBase:
file:///D:/nwis/Apps/Charmpix/VS/CharmpixAdmin_01/bin/CharmpixAdmin_01.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.3052.4
CodeBase:
file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
----------------------------------------
************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.
and the line it bombs on is this:
Shared Sub Main()
Try
System.Windows.Forms.Application.EnableVisualStyles()
System.Windows.Forms.Application.DoEvents()
'Erros on the next line
System.Windows.Forms.Application.Run(New frmMain)
Catch ex As Exception
Console.WriteLine(ex.StackTrace)
End Try
End Sub
It seems that something went worng on my computer becuase I'm sure its not
my code doing this? can someone shed some light on this?
Thanks
when I tried to run it I started getting this error when the app tried to
load. Here's the error:
StackTrace " at
System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32
nCmdShow)
at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at CharmpixAdmin_01.frmMain.Main() in
D:\nwis\Apps\Charmpix\VS\CharmpixAdmin_01\frmMain.vb:line 26" String
So I built a new app and imported my old files and then rant it and got the
same error. when i tried to run the exe I got this error:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Configuration.ConfigurationException: '<', hexadecimal value 0x3C, is
an invalid attribute character. Line 67, position 3.
(D:\nwis\Apps\Charmpix\VS\CharmpixAdmin_01\bin\CharmpixAdmin_01.exe.config
line 67) ---> System.Xml.XmlException: '<', hexadecimal value 0x3C, is an
invalid attribute character. Line 67, position 3.
at System.Xml.XmlScanner.ScanLiteral()
at System.Xml.XmlTextReader.SetLiteralValues(XmlAttributeTokenInfo fld)
at System.Xml.XmlTextReader.SetAttributeValues()
at System.Xml.XmlTextReader.ParseElement()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.Skip()
at
System.Configuration.ConfigurationRecord.StrictSkipToNextElement(XmlTextRead
er reader)
at
System.Configuration.ConfigurationRecord.ScanSectionsRecursive(XmlTextReader
reader, String configKey)
at System.Configuration.ConfigurationRecord.Load(String filename)
--- End of inner exception stack trace ---
at System.Configuration.ConfigurationSettings.GetConfig(String
sectionName)
at System.Configuration.ConfigurationSettings.get_AppSettings()
at CharmpixAdmin_01.LoginForm.LoginForm_Load(Object sender, EventArgs e)
in D:\nwis\Apps\Charmpix\VS\CharmpixAdmin_01\LoginForm.vb:line 201
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.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
CharmpixAdmin_01
Assembly Version: 1.0.1742.40187
Win32 Version: 1.0.1742.40187
CodeBase:
file:///D:/nwis/Apps/Charmpix/VS/CharmpixAdmin_01/bin/CharmpixAdmin_01.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.3052.4
CodeBase:
file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
----------------------------------------
************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.
and the line it bombs on is this:
Shared Sub Main()
Try
System.Windows.Forms.Application.EnableVisualStyles()
System.Windows.Forms.Application.DoEvents()
'Erros on the next line
System.Windows.Forms.Application.Run(New frmMain)
Catch ex As Exception
Console.WriteLine(ex.StackTrace)
End Try
End Sub
It seems that something went worng on my computer becuase I'm sure its not
my code doing this? can someone shed some light on this?
Thanks