How do I add a tool to my project? - c#

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

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.

C# .NET application built in Windows Server 2008 R2 64bit doesn't run in Windows 7 32bit

I have built an application in Visual Studio 2012 Express, on C# .NET 4.5 on Windows Server 2008R2 64 bit. When I compiled, I made sure in build properties, platform target is set to x86.
When I copy the files from Release folder to my Windows 7 32, it crashes.
Here is error my system is throwing:
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: fileupload.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: 53b63c5a
Problem Signature 04: FileUpload
Problem Signature 05: 1.0.0.0
Problem Signature 06: 53b63c5a
Problem Signature 07: c
Problem Signature 08: 6
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
It is a file-not-found exception, could be as simple as forgetting to copy a file or not specifying the full path name.
Don't guess at this, implement a handler for the AppDomain.CurrentDomain.UnhandledException event and log or display the value of e.ExceptionObject.ToString(). It tells you where your code bombed.
I managed to find a work around for this problem. Went into References in the Solution Explorer and for each of the items, I made sure I set "Copy Local" property to True. I ended up with a lot of DLL files in the Release folder, but it ran in Windows 7.

Can't get application to work on another computer after publishing

Hy, I am trying to publish my first application. In the debugging mode everything works fine, on my computer it also works without a problem, but on the other computer I can't get it to work. When I try to run it I get the message ""application" has stopped working" . When I click on view problem details I get this:
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: robnoknjigovodstvo.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: 51cac5f7
Problem Signature 04: System.Data
Problem Signature 05: 4.0.30319.17929
Problem Signature 06: 4ffa5def
Problem Signature 07: 1de2
Problem Signature 08: 5f
Problem Signature 09: System.InvalidOperationException
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1050
Additional Information 1: aa76
Additional Information 2: aa76315143599a541a5fa1df4fbde453
Additional Information 3: 0709
Additional Information 4: 0709e632ea855b8ded4d7d20096b20d8
On the computer I developed the application I have 32 bit windows, and on the other one is 64bit version and I tried to change platform target but it didn't help
Check this out: Debugging "Application.exe has stopped working" with .NET.
Check if you have permissions to write or read if you are accessing the file system.
Also, make sure the other system has the adequate .NET framework installed.
Change the target to Any CPU.
Also, a good idea would be to wrap your code in a try-catch block and write the error to disk (on a location for which you have write permissions).
maybe , you did not included all dll in your project

my installed app does not work

I'm having an Issue when I install My C# winform App in C:\ProgramFiles everytime I try to Run it, I get the usual "App has stopped working" error with the 3 options, Close, Debug, check for online solutions.
Now I'm Pretty sure that I got all my Dlls and Requirements in the InstDir. I'm Sure of this cuz If I copy/paste the InstDir to another location, say desktop for example, The App works !!
how to solve this ???
error looks like this
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: typingfreak.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: 5029e51b
Problem Signature 04: mscorlib
Problem Signature 05: 4.0.0.0
Problem Signature 06: 4ba1da6f
Problem Signature 07: 3dab
Problem Signature 08: 13c
Problem Signature 09: System.UnauthorizedAccess
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 12297
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Please, Any Help
Your application is raising System.UnauthorizedAccess. Given the description of what's happening when you copy and paste to another folder, my guess is that it's trying to write data into the local folder.
If you're installing into Program Files, this won't be allowed (unless you run it as administrator), since that isn't writable by your user.
Try to run it as an administrator - if it works - your app is probablly accessnig some area in the system that the user is not permitted to access - (usually a directory). check your file accessing methods
Based on the line of your error:
Problem Signature 09: System.UnauthorizedAccess
I'd speculate that you're either running from a directory that you do not have the proper permissions needed for the application or that you copied the application from a network location (or the web) and did not mark it as safe.
After verifying the Windows permissions for the directory, I'd recommend that you right-click the executable, select properties, and look for a button labeled "Unblock" on the dialog. Click it. You may or may not need to repeat for the DLLs.

Categories

Resources