Click here to Skip to main content
12,291,223 members (62,558 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# C#4.0
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-*-*-*-*-*-*-*-*-*-*
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 27-Feb-13 6:49am
namerg417
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 '' (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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160518.1 | Last Updated 27 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100