Windows Application has stopped working in client Machine [duplicate] - c#

This question already has answers here:
Deciphering the .NET clr20r3 exception parameters P1..P10
(2 answers)
Closed 6 years ago.
I developed an applicatin using Visual Studio 2013 and made a Setup Exe file for my application and installed on client machines where they have both Windows7 gives exception.
But when i install and run this application (exe) file in development machine its installed and run correctly. Only on Client's machine its installed correctly but not running, giving the error when double clicking on the exe file.
I have installed Freamwork 4.0 full & Freamwork 4.5 and run Application with Admin rights.
Description:
Problem signature: Problem Event Name: CLR20r3
Problem Signature 01: hard disk protector.exe
Problem Signature 02: 1.0.5967.31113
Problem Signature 03: 57288fba
Problem Signature 04: System.Management
Problem Signature 05: 4.0.30319.17929
Problem Signature 06: 4ffa5bd3
Problem Signature 07: da
Problem Signature 08: 3f
Problem Signature 09: System.Management.Management
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our
privacy statement offline: C:\Windows\system32\en-US\erofflps.txt
How can i resolve it....

You are probably missing a dependant DLL somewhere.
Compare your "working" directory on your development machine to the "not working" directory on your client machine. Any DLL's missing?

Related

Winforms Error 'InvalidOperationException' while starting the app

I have a C# VS2012 windows application made on Windows 7. When I sent the exe files to client, they are getting this error when running the exe. Getting the following error:
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: AB.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: 5954cd46
Problem Signature 04: System.Core
Problem Signature 05: 4.6.1087.0
Problem Signature 06: 583e5c3a
Problem Signature 07: 73e
Problem Signature 08: 65
Problem Signature 09: System.InvalidOperationException
OS Version: 6.3.9600.2.0.0.272.7
Locale ID: 1033
Additional Information 1: 2f1f
Additional Information 2: 2f1f756aa68c8e23d7adf9827d731b5b
Additional Information 3: 80cb
Additional Information 4: 80cb6630dd7c18e04a18b500b9c39bb0
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=280262
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
What does this mean?

What makes a program require elevated privileges?

What makes a program require elevated privileges? Is there a way to find out? I have a simple program that all it does is catch user session changes (lock, unlock, remote login, etc) and writes them to a remote sql database on the same network. If it isn't run under a user account that is an admin, it crashes.
I know I can add a manifest file to make the program run in admin mode but I don't want uac invoked everytime a user logs in.
Is there another way?
Windows pops up a message saying SystemTrayApp has stopped working. The Problem details are as follows:
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: systemtrayapp.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: 5579eff9
Problem Signature 04: System.Data
Problem Signature 05: 4.0.30319.17929
Problem Signature 06: 4ffa5c76
Problem Signature 07: 1ec1
Problem Signature 08: 10b
Problem Signature 09: System.Data.SqlClient.Sql
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Crashing deployed app on XamlParse

I have created a ClickOnce Application Deployment Manifest from my WPF application but when I try to install it, this crashes and I get the following error log:
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: phynix.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: 54b90fb3
Problem Signature 04: mscorlib
Problem Signature 05: 4.0.30319.17929
Problem Signature 06: 4ffa561c
Problem Signature 07: 43c4
Problem Signature 08: 105
Problem Signature 09: System.Windows.Markup.XamlParse
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1031
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
Someone knows what is the problem??
The XamlParse exception means the XAML can't be read or the code generated from it can't be executed correctly.
Usually this is:
An image file that isn't included as resource in the project, or in a location that isn't available on the deployment machine;
Missing referenced assemblies and/or their dependencies.
Try hooking up an UnhandledException event in WPF, and add the event hookup in your app.xaml in order to avoid the above exception.
Reference: How can I get useful WPF .NET error information from a user's machine?

WPF - Program crashes

WPF application I wrote runs fine on my PC but on my friend's (same as mine Win 7 x64) it crashes. I tried to compile it either to x86 or x64 but problem still persists. I also sent him test app with simple button and message to see if it's lack of .net framework problem but it runs with no problems. My app uses MSSQL and on WPF part binding and various templates which were not included in test case. What is wrong with it?
I include error report(sorry for possibly bad translation it was in different language):
Problem signature:
Problem event name: CLR20r3
Problem signature: 01: surfmanagertake2.exe
Problem signature: 02: 1.0.0.0
Problem signature: 03: 53b3b026
Problem signature: 04: PresentationFramework
Problem signature: 05: 4.0.30319.18408
Problem signature: 06: 52312f13
Problem signature: 07: 7fe8
Problem signature: 08: ee
Problem signature: 09: System.Windows.Markup.XamlParse
Operating system version: 6.1.7601.2.1.0.768.3
Regional settings ID: 1045
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
I've seen similar problems before, where the app works perfectly fine on some machines and crashes\slow on others which appear to be the same physical\OS spec.
I tracked down the issue to differing versions of core assemblies used by WPF - PresentationCore.dll, PresentationFramework.dll etc.
The easiest way to see all the managed references (.Net assemblies) a process is using a tool like Process Explorer or ProcDump (both from sysinternals).
These should allow you to take a full dump which can then be openned in Visual Studio and show a list of the loaded assemblies and their versions. If the version numbers of the core WPF assemblies are different then I suggest one of the machines has a Hotfix the other doesn't.
http://blogs.msdn.com/b/debugger/archive/2009/12/30/what-is-a-dump-and-how-do-i-create-one.aspx

WPF : Error on Initialize component (Test Machine)

I created a software which has a Administrator and user login which on successful login takes it to their respective XAML pages. This works fine from code and installer on the machine where i created the software.
Now on deploying this on a test machine the app crashes in the Initialize component of the Admin page (Identiifed with debug mesages). The error report gives me this
Problem Event Name: CLR20r3
Problem Signature 01: gage selector.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: 52cd1461
Problem Signature 04: mscorlib
Problem Signature 05: 4.0.0.0
Problem Signature 06: 4e181ae3
Problem Signature 07: 3fd1
Problem Signature 08: 105
Problem Signature 09: System.Windows.Markup.XamlParse
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
I am not able to figure out what is happening especially so since Operator xaml page loads fine in the test machine as well. Please guide on how to proceed in this case.
AS Patrick Hoffman pointed out this is a minor issue when some paths are inaccessible on XAML page. In my case i had not updated the dynamic path for the logo on Admin page while i had done for other pages. Changing it to dynamic path fixed the issue.

Categories