"unhandled exception occurred in your application"

iknowjohnny

New member
Power User
VIP
Local time
2:25 PM
Messages
237
I have a canon camera which has wifi. It has a configuration utility that helps you setup the connection to a wifi access point which i do have. However, whgen i try and run this app called "wifi connection setup" I get the error i mentioned. It also says "object reference not set to an instance of an object". I have reinstalled it, tried downloading it rather then using the disc version, tried repairing net framework, (which i suspected from a post in a google search) virus scans, etc. Sill does this. Any ideas on how to determine what is happening?
 

My Computer

OS
windows 7 professional
Try booting to Safe Mode with Networking (in case you want to get on internet while testing. Safe Mode will also work). See if the utility works there

http://www.sevenforums.com/tutorials/69585-safe-mode.html

If it does work in Safe Mode, try a Clean Start to see if something is interfering

http://www.sevenforums.com/tutorial...ation-conflicts-performing-clean-startup.html

You can also see if it works in another User Account

http://www.sevenforums.com/tutorials/181024-user-account-create.html

Or the built in hidden Admin account (disable this account again after testing)

http://www.sevenforums.com/tutorials/507-built-administrator-account-enable-disable.html

If this is a one time setup thing, then if any of these methods work, you will be set up, even if you don't definitively determine the cause ;)

Those errors are indeed often associated with .NET, but it is not 100% so.

A Guy
 

My Computer

Computer type
PC/Desktop
OS
Windows 10 Home x64
CPU
INTEL Core i5-750 Quad-Core 3.37GHz
Motherboard
ASUS P7P55D
Memory
HyperX Fury Black Series 8GB (2 x 4GB) 1866Mhz
Graphics Card(s)
EVGA GeForce GTX 750 Superclocked 1GB 128-Bit GDDR5
Monitor(s) Displays
LG 32MA68HY 32" IPS
Screen Resolution
1920 x 1080
Hard Drives
Samsung 840 Evo 120GB, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
PSU
ANTEC TruePower New TP-550, 80 PLUS, 550W
Case
ANTEC Three Hundred Illusion
Cooling
COOLER MASTER Hyper 212 Plus, 4 x 120mm 1 x 140mm Noctua's
Internet Speed
85 + Mbps
Antivirus
Avast
Browser
Vivaldi
Thanks. I tried safe mode and still get that error. I take it this means .NET framework is NOT to blame? And what exactly does it tell me of importance? I realize a lot of things are not loaded in safe mode so those are all no longer suspect, tho i don't know what is or isn't loaded or what to look for now.
 

My Computer

OS
windows 7 professional
I do not believe .NET loads in safe mode? Since the issue is the same in Safe Mode, it's almost sure no 3rd party app is the issue. But Windows still loads the minimum services and drivers. Did you try a different user, or the admin account? It would tell you if it was something about your user. A Guy
 

My Computer

Computer type
PC/Desktop
OS
Windows 10 Home x64
CPU
INTEL Core i5-750 Quad-Core 3.37GHz
Motherboard
ASUS P7P55D
Memory
HyperX Fury Black Series 8GB (2 x 4GB) 1866Mhz
Graphics Card(s)
EVGA GeForce GTX 750 Superclocked 1GB 128-Bit GDDR5
Monitor(s) Displays
LG 32MA68HY 32" IPS
Screen Resolution
1920 x 1080
Hard Drives
Samsung 840 Evo 120GB, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
PSU
ANTEC TruePower New TP-550, 80 PLUS, 550W
Case
ANTEC Three Hundred Illusion
Cooling
COOLER MASTER Hyper 212 Plus, 4 x 120mm 1 x 140mm Noctua's
Internet Speed
85 + Mbps
Antivirus
Avast
Browser
Vivaldi
I tried but nothing from my account was there including the app i'm having issues with. Plus i have a app that scrambles text so my passwords and user names cannot be hack, and when i turned it off it wouldn't go off so i couldn't even type to get to the app in one of my email accounts. Everything i tried to do got stopped in it's tracks by some issue due to being logged in as that admin account. So i just gave up on that.
 

My Computer

OS
windows 7 professional
Ahhh, a shame as that would tell us if it was just that one user. Can you post a screenshot of the exact error, and it's detail tab?

http://www.sevenforums.com/tutorials/9733-screenshots-files-upload-post-seven-forums.html

Also see the instructions for checking the event viewer for a more detailed error message marked as Answer here:

Net framework error unhandled exception has occurred in your - Microsoft Community

You might find if this is a known issue with this application on the Canon Camera forum as well

Camera - Canon Community

A Guy
 

My Computer

Computer type
PC/Desktop
OS
Windows 10 Home x64
CPU
INTEL Core i5-750 Quad-Core 3.37GHz
Motherboard
ASUS P7P55D
Memory
HyperX Fury Black Series 8GB (2 x 4GB) 1866Mhz
Graphics Card(s)
EVGA GeForce GTX 750 Superclocked 1GB 128-Bit GDDR5
Monitor(s) Displays
LG 32MA68HY 32" IPS
Screen Resolution
1920 x 1080
Hard Drives
Samsung 840 Evo 120GB, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
PSU
ANTEC TruePower New TP-550, 80 PLUS, 550W
Case
ANTEC Three Hundred Illusion
Cooling
COOLER MASTER Hyper 212 Plus, 4 x 120mm 1 x 140mm Noctua's
Internet Speed
85 + Mbps
Antivirus
Avast
Browser
Vivaldi
I saw that post and tried the event viewer a while back with to no avail, tho i can't remember what exactly happned. I've tried so many things i don't recall a lot of what happened but i did try that. Heres the text from the error...

Unhandled exception has occurred 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.

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

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at WirelessCameraConnectionSetting.MainForm.v_btnSetting_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)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
WirelessCameraConnectionSetting
Assembly Version: 1.0.0.5
Win32 Version: 1.0.0.5
CodeBase: file:///C:/Users/Dale/AppData/Local/Temp/CanonOFI_TEMP/Data/WirelessCameraConnectionSetting.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
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.5485 (Win7SP1GDR.050727-5400)
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.5483 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
WirelessCameraConnectionSetting.resources
Assembly Version: 1.0.0.5
Win32 Version: 1.0.0.5
CodeBase: file:///C:/Users/Dale/AppData/Local/Temp/CanonOFI_TEMP/Data/en/WirelessCameraConnectionSetting.resources.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
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.5485 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Interop.WMLSS
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Dale/AppData/Local/Temp/CanonOFI_TEMP/Data/Interop.WMLSS.DLL
----------------------------------------
Interop.NetFwTypeLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Dale/AppData/Local/Temp/CanonOFI_TEMP/Data/Interop.NetFwTypeLib.DLL
----------------------------------------
CustomMarshalers
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_32/CustomMarshalers/2.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.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.


 

My Computer

OS
windows 7 professional
I'm going to see if anyone else has any ideas...

A Guy
 

My Computer

Computer type
PC/Desktop
OS
Windows 10 Home x64
CPU
INTEL Core i5-750 Quad-Core 3.37GHz
Motherboard
ASUS P7P55D
Memory
HyperX Fury Black Series 8GB (2 x 4GB) 1866Mhz
Graphics Card(s)
EVGA GeForce GTX 750 Superclocked 1GB 128-Bit GDDR5
Monitor(s) Displays
LG 32MA68HY 32" IPS
Screen Resolution
1920 x 1080
Hard Drives
Samsung 840 Evo 120GB, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
PSU
ANTEC TruePower New TP-550, 80 PLUS, 550W
Case
ANTEC Three Hundred Illusion
Cooling
COOLER MASTER Hyper 212 Plus, 4 x 120mm 1 x 140mm Noctua's
Internet Speed
85 + Mbps
Antivirus
Avast
Browser
Vivaldi
I tried but nothing from my account was there including the app i'm having issues with. Plus i have a app that scrambles text so my passwords and user names cannot be hack, and when i turned it off it wouldn't go off so i couldn't even type to get to the app in one of my email accounts. Everything i tried to do got stopped in it's tracks by some issue due to being logged in as that admin account. So i just gave up on that.

This sounds so suspect I would expect it to give chronic problems. Can you uninstall it to see if it is blocking connection?

Is the error reporting on the camera when you try to connect to router, or on the PC itself?

Can you try to connect the camera directly to the router as I did for my Dad's and then it should show up in Devices and Printers without enabling software?

Do you have a 3rd party firewall? What does the Canon Manual for your model say about this?
 
I tried but nothing from my account was there including the app i'm having issues with. Plus i have a app that scrambles text so my passwords and user names cannot be hack, and when i turned it off it wouldn't go off so i couldn't even type to get to the app in one of my email accounts. Everything i tried to do got stopped in it's tracks by some issue due to being logged in as that admin account. So i just gave up on that.

This sounds so suspect I would expect it to give chronic problems. Can you uninstall it to see if it is blocking connection? It's not at all problematic, it only happened when i logged in as Guy told me to with the hidden admin account.

Is the error reporting on the camera when you try to connect to router, or on the PC itself?
It has nothing to do with the camera. It's an app that gives the error and won't start and doesn't need the camera to use it, just the wifi device.

Can you try to connect the camera directly to the router as I did for my Dad's and then it should show up in Devices and Printers without enabling software? No, the router is not available to me in my current living situation. I share the bill with the person i sublet from

Do you have a 3rd party firewall? What does the Canon Manual for your model say about this? No firewall
...
 

My Computer

OS
windows 7 professional
So the access point is not a router? What is it?

The problem is likely a conflict with the app that you're using, which may be unnecessary because those camera's can connect directly. Have you tried that? Mine showed how in the Canon Manual.

Any app you're using to scramble text that won't allow you to function as hidden Admin is not something I'd want to have, and certainly is something I'd uninstall or disable to troubleshoot the problems you're having if you must use a connection app. I never use any connection app because Win7 and most routers or access points allow direct wifi connections from cameras and other devices.
 
Last edited:
Yes, i disabled it along with any other app. In fact i ended every process in task manager that could be ended at one point and it still did this. The USB access point device has it's driver installed because windows couldn't find one for it. So i used the one on the CD that came with it and even downloaded it in case the version was newer/different but it wasn't. I tried everything imaginable to connect and the PC can see the camera in the access point device's app but the camera never finds the PC.
 

My Computer

OS
windows 7 professional
1. Try connecting camera directly to access point as shown in Manual, not using any app or the PC.

2. With camera wireless switched on, try Add Device in Win7 Devices and Printers.
 
I tried that already. No go. It never finds it.
 

My Computer

OS
windows 7 professional
Back
Top