.NET Framework Bookmark and Share   
 index > .NET Framework Setup > net framework unhandled exception
 

net framework unhandled exception

the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidCastException: Unable to cast object of type 'System.Configuration.ConfigurationErrorsException' to type 'System.Net.Sockets.SocketException'.
at TheUpdateAgent.theUpdateAgent.theAgent_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 TheUpdateAgent.theUpdateAgent.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)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
TheAgent
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Bully%20Dog%20Technologies/The%20Update%20Agent/TheAgent.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (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 computer
rather than be handled by this dialog box.


how do i fix this or can it be fixed this happens when i start the computer i hace closed it, i have accepted it, it goes away until i start the computer again help!

wish I new more
Is this an application that you have written? Or is this some 3rd party application that is running when the machine starts up and you get this problem each time you restart it?

Looking at the stack trace, it looks as if it is caused by the EXEcutable:

----------------------------------------
TheAgent
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Bully%20Dog%20Technologies/The%20Update%20Agent/TheAgent.exe
----------------------------------------

Which may have came from...

http://www.bullydog.com/pages/page/download_update_agent

Which looks like an error in their application if they have written it...

Which is an invalid cast exceptio (error)...

System.InvalidCastException: Unable to cast object of type 'System.Configuration.ConfigurationErrorsException' to type 'System.Net.Sockets.SocketException'.

If so just I'd log a support call on their web site not the MSDN one.

Andez


Andez
Andez
Thank you for Andez's kindly help.

Hi Wish I new more,

Based on your description, it might be hard to troubleshootthis issuesince there would be many causes. As Andez mentioned, it might be caused by some application when yourun your PC.

However, tonarrow downthe possible cause of corrupted .NET Framework,we can tryVerification tool to verify .NET Frameworks on your machine.
You also can try the followingpoint to deal with the case:
-Reboot the machine into Safe Mode. Doyou still have the problem? This can isolate some third party application/driver's interference.

If you don'twantto see Just-In-Time Debugging dialog box when you start your PC, you can just simply turn offthis feature.
Please see:How to: Enable/Disable Just-In-Time Debugging

Hope this helps. If you have any concern, please feel free to let me know.

Best regards,
Yichun Chen
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
YiChun Chen

You can use google to search for other answers

Custom Search

More Threads

• Issue with Aspnet_regiis.exe -lk On Windows Vista
• This drated "signing" and "Security" business of .Net - How to Override, or otherwise declare "Safe" for Inner Company Workings...
• System.Runtime.InteropServices.COMException: This command is not available
• error 2908/
• Can't install dotNet 3.5 Sp1 on WinXp Sp2
• System.EnterpriseServices.dll' because of system error: The system cannot find the file specified.
• VS 2008 Express, .NET 3.0, 3.5, and 3.5 SP1 all fail to install
• GAC and virtual machines
• .Net Application fails with no message
• Can't install .net framework 1.1