A
A
Anton Baranov2016-02-03 11:27:36
C++ / C#
Anton Baranov, 2016-02-03 11:27:36

Why doesn't the C# WinForms application run on all computers?

Good afternoon, dear ones!
I wrote a C# WinForms application in Visual Studio 2015, compiled it, and tried to run it on several computers running Windows 7 to 8.1.
The application did not start on all computers. Although all of them have the latest .NET version 4.6 installed (Otherwise it would give an error related to this). On several, the application just hung in the task manager but did not show the forms. On others, everything started and worked perfectly.
Please tell me what could be the problem?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vladimir Martyanov, 2016-02-03
@vilgeforce

Anything can be a problem with the application and not only with it. For example, there may be a problem in the antivirus. Fortune telling on coffee grounds, in short.

V
Vitaly Pukhov, 2016-02-03
@Neuroware

usually the antivirus does this, in general you need to set up normal logging and not guess

A
Andrey Plax, 2016-02-03
@Hereigo

Likewise! There was such a problem with one project a couple of months ago. But my computer was running under Win 10, but on the server under Win 2008 it stopped. Moreover, I tried to recompile the project under .Net 3.0 and 3.5 and 4.0 and 4.5 - it did not start in any way. Although before that he had been working since 2013 on the same server! I didn’t find any answers on the Internet, but it looked very much like it had something to do with the Updates, because it used to work before. In short, I solved the problem like this:
- Created a new project in the Studio.
- Copy-pasted pieces of code from the old project.
- Compiled a new project - Earned!
I still don't understand what magic is. =)

D
Dmitry Kovalsky, 2016-02-03
@dmitryKovalskiy

For the sake of laughter, I’ll clarify - did you compile it into a debugger and send an exe file from this folder to your friends? or how? Tried to do Publish project? Or at least an assembly in the Release configuration?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question