Question

Q: Microsoft .Net Framework error "Unhandled exception has occured in your application" each time I login Windows with WiFi card enabled

Hello everyone,

After last week's Windows Updates (probably starting on 23-Aug-2010), I always get the following error, when I log on to my laptop (Lenovo ThinkPad X201 with Windows 7 Professional 32 bit) and the WiFi card is enabled.

If I choose Quit, then the program "ALG.exe" is ended. If I disable de WiFi card, logoff and logon again, then the error doesn't show up. I tried also disabling some of the programs automatically loaded at start-up but it did not help.

I also tried enabling the JIT debugger, as instructed by Microsoft at the end of the details section, in order to get some more info, but with no success, because I can't save the file "machine.config" after changing it.

Did anybody else encounter the same behaviour?

Following is the transcript of the error:

"Microsoft .Net Framework

Unhandled exception has occured in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.

Conversion from string "<DOCTYPE HTML PUBLIC

Details:

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

************** Exception Text **************
System.InvalidCastException: Conversion from string "<!DOCTYPE HTML PUBLIC "-//W3C//D" to type 'Double' is not valid. ---> System.FormatException: Input string was not in a correct format.
   at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
   at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
   --- End of inner exception stack trace ---
   at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
   at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value)
   at CPAX20.utilities.Dec(String strCode)
   at CPAX20.Form1.tmrLink_Tick(Object sender, EventArgs e)
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.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.4952 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
CPAX2
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Common%20Files/alg.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    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.4927 (NetFXspW7.050727-4900)
    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.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Management
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Core
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.4926 built by: NetFXw7
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.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."

Thank you in advance for your help,

Daniel Gordon

*** Email address is removed for privacy ***

Answer

A:

Hey Daniel,

Have a look at this file ALG.exe in Task Manager. Seems that this is a virus from Sornsoft having a description of CPAX20. This file is generally located in C:/Program files/Common Files.

Here's what you need to do to fix the issue.

Step 1:          

a.    Open Task Manager.

b.    Go to Processes Tab.

c.    Locate ALG.exe.

d.    Right-Click on ALG.exe and select "End Process".

e.    Go to C:/Program files/Common Files.

f.     Delete the file ALG.exe from the above location.  

The error message shouldn't appear henceforth.

Step 2:

For additional protection, run a complete virus scan. Update your virus database definition before doing the scan.

If you do not have antivirus/antispyware software on your machine, you may download Microsoft Security Essentials.

Here’s the download link: http://www.microsoft.com/security_essentials/market.aspx

More information on this issue can be found here:

Unhandled exception has occurred in your application

Microsoft .NET Framework Unhandled exception has occurred in your application


Regards,

Shinmila H - Microsoft Support

Visit our Microsoft Answers Feedback Forum and let us know what you think.

Did this solve your problem?

Sorry this didn't help.

52 people were helped by this reply

Answer

A:

Hi Shinmila,

Thank you for your helpful answer. Indeed it was a virus.

I just want to draw your attention to an interesting fact, which, I hope, you will pass it further to the relevant people.

In step 2 you suggest to use an antivirus program and you talk about the Microsoft Security Essentials (MSE). I have 3 computers and each one relies only on MSE and Windows 7 Firewall. The interesting thing is that no MSE, nor the firewall did recognize the alg.exe virus, which I suppose got into my computer from the internet. But yesterday, after receiving your email, I opened windows explorer in order to check and delete the file from c:\program files\common directory and this is when MSE recognized the virus even before I touched it. It was enough only to go to c:\program files\common dir and the warning appeared immediately.

Thanks again,

Daniel Gordon

Did this solve your problem?

Sorry this didn't help.

17 people were helped by this reply



 
Question Info

Views: 121,028 Last updated: May 21, 2018 Applies to: