Click here to Skip to main content
11,575,925 members (57,990 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: 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
namerg413
Comments
namerg at 27-Feb-13 12:53pm
   
By the way, if I debug. I do not see any errors
namerg at 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
0 Sergey Alexandrovich Kryukov 330
1 F-ES Sitecore 145
2 OriginalGriff 125
3 Dave Kreskowiak 120
4 Abhinav S 98
0 OriginalGriff 705
1 Sergey Alexandrovich Kryukov 600
2 Abhinav S 438
3 F-ES Sitecore 410
4 Suvendu Shekhar Giri 365


Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 27 Feb 2013
Copyright © CodeProject, 1999-2015
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