Click here to Skip to main content
15,910,358 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have created my first windows app in C# but I am having the following issues in the following scenarios.

1. Log in for the first time and execute windows app for the first time, I get the following errors:
-*-*-*-*-*-*-*Event 1026, .Net Runtime-*-*-*-*-*-*-*-*-*-*
Application: Win_UPI_IE9_GE_Settings.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
Stack:
at WindowsFormsApplication1.Form1..ctor()
at WindowsFormsApplication1.Program.Main()

-*-*-*-*-*-*-*Event 1000, Application Error-*-*-*-*-*-*-*-*-*-*
CSS
Faulting application name: Win_UPI_IE9_GE_Settings.exe, version: 1.0.0.0, time stamp: 0x512e4418
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x002104c2
Faulting process id: 0x760
Faulting application start time: 0x01ce1511b029ee41
Faulting application path: C:\script\Win_UPI_IE9_GE_Settings.exe
Faulting module path: unknown
Report Id: ef287c61-8104-11e2-88d9-1803733d940c


2. While logged in with the user from step 1 and execute the windows app, all is fine.

Thanks for your help,
Posted
Comments
namerg 27-Feb-13 12:53pm    
By the way, if I debug. I do not see any errors
namerg 27-Feb-13 13:21pm    
On the output I see the following: The thread 'vshost.NotifyLoad' (0x1c10) has exited with code 0 (0x0).
The thread '<no name="">' (0x34b0) has exited with code 0 (0x0).
The thread 'vshost.LoadReference' (0x28a8) has exited with code 0 (0x0).
'Win_UPI_IE9_GE_Settings.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\roserog\Documents\Visual Studio 2010\Projects\Win_UPI_IE9_GE_Settings\Win_UPI_IE9_GE_Settings\bin\Debug\Win_UPI_IE9_GE_Settings.exe', Symbols loaded.
'Win_UPI_IE9_GE_Settings.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread '<Thread Ended>' (0x2154) has exited with code 0 (0x0).

1 solution

Damn, this was a hard one. it was a null value.
Thinking about Sergey Alexandrovich Kryukov that I have to put more effort. I am happy now.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900