ClickOnce Deployment error at ApplicationDeployment.CurrentDeployment.ActivationUri.Query - c#

Good day,
I try to install a c# application (Demo.Printer.application) but keep hitting this error.
When I debug, I found that it stop at :
Prompt("true, reach this step");
Prompt("ApplicationDeployment is " + ApplicationDeployment.CurrentDeployment);
Prompt("ApplicationDeployment.CurrentDeployment.ActivationUri is " + ApplicationDeployment.CurrentDeployment.ActivationUri);
string queryString = ApplicationDeployment.CurrentDeployment.ActivationUri.Query;
Prompt(queryString);
I can Prompt until the 3rd, but can not reach the Prompt(queryString); then hit error.
However, my third prompt is just show me "ApplicationDeployment.CurrentDeployment.ActivationUri is", it is print null, any Ideas?
Then straight prompt me my file has stopped working. Windows can check online for a solution to the problem...and so on.
My .net framework is 4.0. I tried to change to 2.0 but still hitting the same problem.
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: Demo.printer.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: 5475746c
Problem Signature 04: Demo.Printer
Problem Signature 05: 1.0.0.0
Problem Signature 06: 5475746c
Problem Signature 07: f1
Problem Signature 08: 5b
Problem Signature 09: System.NullReferenceException
OS Version: 6.1.7601.2.1.0.768.3
Locale ID: 17417
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
Kindly advise.

Related

How to find what is the requirement of my windows app to run on other windows

Firstly, I'm new to Visual Studio C#. Recently, I've developed a qr generator & reader using windows form. Is there any way I can find what is the requirement of my windows app to be installed to other computer?
It works fine on my computer (windows 10) and one of my other friend (windows 8) but it doesn't work on my other friend (fresh windows 10) so I figured that there must be something he doesn't install so I tried re-installing .net framework 4.0-4.5 to no avail. Sorry, I've tried googling but couldn't find an answer. Thanks in advance.
EDIT : Sorry, forgot to mention the 'error'. On the windows 10 that doesn't work, there isn't actually any eror, once I double click, the cursor change to loading and after about 3 second it turn back to normal but my program doesn't appear, I checked the task manager but my program isn't listed.
EDIT 2 : I just tried on windows 7, and I got this error "program has stopped working"
Problem signature: Problem Event Name: CLR20r3 Problem Signature
01: QR Code.exe Problem Signature 02: 1.0.0.0 Problem
Signature 03: 5a080a6c Problem Signature 04: QR Code Problem
Signature 05: 1.0.0.0 Problem Signature 06: 5a080a6c Problem
Signature 07: 5 Problem Signature 08: 25 Problem Signature
09: System.IO.FileNotFoundException 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

Windows Server 2012 R2 - System.IO.FileNotFoundException

I have an application developed in C# which runs fine on my Windows 7 x64 PC but when I try to run the same application on my Windows Server 2012 R2 VPS, I get an error that "(TheApplicationName" Has stopped working)
When I click on the view problem details, I get the following information
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: application.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: 582aa3a2
Problem Signature 04: Application
Problem Signature 05: 1.0.0.0
Problem Signature 06: 582aa3a2
Problem Signature 07: 1
Problem Signature 08: 77
Problem Signature 09: System.IO.FileNotFoundException
OS Version: 6.3.9600.2.0.0.272.7
Locale ID: 1033
Additional Information 1: 5861
Additional Information 2: 5861822e1919d7c014bbb064c64908b2
Additional Information 3: 6ee2
Additional Information 4: 6ee2432e64e99bdcea5e4be767a3b1a2
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
Could anyone kindly advise what the problem is here
Many thanks
It seems that your application references a binary (.dll) not found on target machine. Please go through all (non-System) referenced binaries in your project and make sure they reside within the same folder as your application.

Matter with IIS Express in Win 8.1

i just created a local website last year , and i was using it on windows 7 IIS(express) and it worked correctly for a long time , after switching to windows 8.1 some parts of the website are not working , i donno why!!!!!!!!!
the site is about file browsing , i mean i created this website to access my files localy. and i realized that it is runnig well on visual studio in debugging mode.
here is the error detail :
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: iisexpress.exe
Problem Signature 02: 8.5.9748.0
Problem Signature 03: 537e7316
Problem Signature 04: App_Web_uw0bxii3
Problem Signature 05: 0.0.0.0
Problem Signature 06: 54f14cb0
Problem Signature 07: 4c
Problem Signature 08: 37b
Problem Signature 09: System.AccessViolationException
OS Version: 6.3.9600.2.0.0.256.4
Locale ID: 1033
Additional Information 1: 8980
Additional Information 2: 8980820270b58dad3b2b2a91edcf775a
Additional Information 3: e2b3
Additional Information 4: e2b3fb42ddbed36d301480f5b1ff1013
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
any body has any idea???????
Hi guys after days i found the problem, there was a dll that causes this error, and because of win 8 security it couldnt be used . so i just replaced that dll with another one from .net library and its solved.

How do I add a tool to my project?

I have made my own tool/Loading bar in my Solution called CustomPbar.
I have a Form application with this tool in the designer.
When I copy the program to another location it gives me an error,
Problem Event Name: CLR20r3
Problem Signature 01: raidzer0.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: 519888ba
Problem Signature 04: RaidZer0
Problem Signature 05: 1.0.0.0
Problem Signature 06: 519888ba
Problem Signature 07: 1
Problem Signature 08: 6
Problem Signature 09: System.IO.FileNotFoundException
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 3081
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
I believe this is because the custom ProgressBar/Pbar is not attached to the form?
How do I resolve this issue?
It is clearly shown in your error:
Problem Signature 09: System.IO.FileNotFoundException
Which means it is not able to find the dll for your tool. What you need to do is:
Either create the same folder structure in your target machine, where the tool exist in your original machine, or move the tool to a common folder and reference it from there.
investigate this link
Windows Error Reporting and CLR integration
and these SO threads
c#, problem running compiled app on other systems
C# windows appication Event: CLR20r3 on application start

WPF application not working in windows server 2003/2008

My wpf application is not working in windows server 2003/2008. when i click on icon i get the following error
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: networksolution.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: 50bc6790
Problem Signature 04: System.Data.SqlServerCe
Problem Signature 05: 3.5.1.0
Problem Signature 06: 4b743b2d
Problem Signature 07: 49e
Problem Signature 08: 1d
Problem Signature 09: System.Windows.Markup.XamlParse
OS Version: 6.1.7600.2.0.0.272.7
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
and it is not showing any window
what to do now?
Does your app use Microsoft SQL CE? If so I would recommend that you check that the server has the SQL CE engine installed.
From the error message you have shown it seems that it may be missing.

Categories

Resources