Home > Net >  C # win10 run normally, Windows 7 error
C # win10 run normally, Windows 7 error

Time:09-25

Written in c # a local on the right side of the interface of the program, compiled under win10 success, and in win10 and doing environment can run normally, but under the Windows 7 is an error, unable to load the DLL, and then I in the Windows 7 environment has a VS2015, then can run successfully, solution, what is this principle? Library is less VS run?
Note: win10 is 64, doing is 32-bit, Windows 7 is 64,

CodePudding user response:

The target frame change

CodePudding user response:

What should be the lack of runtime?
Right-click on the project - & gt; Attributes - & gt; Publish - & gt; System is necessary, see if there are any required runtime?

CodePudding user response:

The.net framework, you develop programs target framework is higher than that in Windows 7. The.net framework version

CodePudding user response:

The DLL used to.net 4.0 or higher
And the Windows 7 only by default. Net3.5

CodePudding user response:

reference 4 floor stherix response:
DLL used. In.net 4.0 or higher
And the Windows 7 only by default. Net3.5


Praise a

CodePudding user response:

The landlord to solve the problem, I also encountered similar problems, I don't write application, Windows 7 in Windows 10 doesn't work

CodePudding user response:

refer to 6th floor qq_38606415 response:
the landlord to solve the problem, I also encountered similar problems, I am a program written by a Windows 7, in Windows 10 cannot use


You are to funny, high version for backward compatibility

CodePudding user response:

The problem of the.net framework Framwork, change

CodePudding user response:

There are two main possible reasons:
1. The problem of the generated exe version, vs. the default generated is the Debug version, this version can't run on no VS computer, correct operation: select the Release version, to regenerate the exe can,
2. The target framework, such as: the.net Framwork 4 and. Net Framwork 4 profile is different, the. Net Framwork 4 profile is. Net Framwork 4 a subset of the; That is to say the.net 4 profile is Framwork. Net Framwork 4 lite version, if the target framework chose. Net Framwork 4, then for only installed. Net Framwork 4 profile system is running,

CodePudding user response:

Framework to lower

CodePudding user response:

reference 4 floor stherix response:
DLL used. In.net 4.0 or higher
And the Windows 7 only by default. Net3.5

A ~

CodePudding user response:

11 references Xiblade response:
Quote: refer to 4th floor stherix response:

The DLL used to.net 4.0 or higher
And the Windows 7 only by default. Net3.5

Praise a ~

CodePudding user response:

I also met the same problem, a run on win10 project on Windows 7 well is can't find the DLL

CodePudding user response:

Bosses finally how to solve, my project is c # call c + + DLL encapsulation

CodePudding user response:


reference 13 floor cwang_running reply:
I also encountered the same problem, a run on win10 project on Windows 7 well is can't find the DLL

You can consider to change the target framework version or DLL to installation errors

CodePudding user response:

refer to 7th floor ycproc response:
Quote: refer to the sixth floor qq_38606415 response:

The landlord to solve the problem, I also encountered similar problems, I don't write application, Windows 7 in Windows 10 cannot use


Let you are funny, high version have backward compatibility for


This kind of situation really exist, not the.net, permissions, strict Win10 than Windows 7, several key folder cannot be changed by default file (new, modify, and delete), unless "as an administrator to run, or awarded" administrative rights ",

CodePudding user response:

young programmers reference 15 floor small don's reply:
Quote: refer to the 13th floor cwang_running response:

I also met the same problem, a run on win10 project on Windows 7 well is can't find the DLL

You can consider to change the target framework version or to installation errors of DLL


Change framework is feasible, but if something in the code to use. Netfreamwork 4.5, are bad to did, or Suggestions to make the installation package. Netfreamwork 4.5 installation for a dependency, installed on the bag to let the user directly don't need to download
  •  Tags:  
  • C#
  • Related