Home > Net >  Win10 VS2010 compiler generated WinForm executable program cannot perform on Windows 7
Win10 VS2010 compiler generated WinForm executable program cannot perform on Windows 7

Time:10-06

Win10 VS2010 compiler generated WinForm executable programs on Windows 7 cannot perform
Development environment: Win10 64 enterprise edition VS2010
Goal: c # Winform procedure, target framework for.net Framework4 Client Profile
Problem: compile, packaging, installation, on Win10 can run normally, in Windows 7 64 - bit started to perform on the error, error message is as follows:
Problem event name: CLR20r3
Signature 01 question: XXX. Exe
Question signature 02:2.1.0.3
Question signature 03:5 d5a689d
Question signature 04: System. Windows. Forms
Question signature 05:4.0.0.0
Problem signature of 06:4 ba1e14e
Question signature 07:61 b
Question signature 08:17
Question sign 09: System. InvalidOperationException
OS version: 6.1.7601.2.1.0.256.1
The locale ID: 2052
Other information 1:1073
Other information: 10737 a5608e795d1072a521ae7f52d44
Other information 3:4 cac
Other information 4:4 cac319bea202ac7144b3153e9091808

View your Windows log system, the error log is as follows:
The first part:
Error application name: XXX. Exe, version: 2.1.0.3, timestamp: 0 x5d5a689d
Error module name: KERNELBASE. DLL version: 6.1.7601.17514, timestamp: 0 x4ce7c78c
Exception code: 0 xe0434352
Error offset: 0 x000000000000a49d
Error process ID: 0 x18b8
Error application startup time: 0 x01d557cbccf6e7b0
Error application path: E: \ \ Program Files \ \ \ XXX XXX XXX. Exe
Error module path: C: \ Windows \ system32 \ KERNELBASE DLL
Report ID: 0 d29c15f - e9 - ab27 c3bf - 11-7 ce9d3dcfdfb
The second part:
Application: XXXX. Exe
Framework version: v4.0.30319
Note: untreated anomaly, process terminates,
Abnormal information: System. InvalidOperationException
Stack:
In the System. Windows. Forms. Application. SetCompatibleTextRenderingDefault (Boolean)
In ImagingWorkstation. The Program. The Main ()

Now the problem is, you can see the locations of the in SetCompatibleTextRenderingDefault, but this method calls are automatically generated when creating project
The static void Main ()
{
Application. EnableVisualStyles ();
Application. SetCompatibleTextRenderingDefault (false);
,,,,,,,
}
Call also started to call in the Main, there is no order, but to the interpretation of the anomaly is said there is no call before the creation of the first form will generate System. InvalidOperationException is unusual, so more confused,,,

CodePudding user response:

Feeling is your.net environment out of the question, do you want to repair your Windows 7. NET environment to try?

CodePudding user response:

reference 1st floor HyoJung response:
feeling is you. The.net environment out of the question, do you want to repair your Windows 7. NET environment to try?

I think this is unlikely, I look for a complete installed Windows 7 vs2010 tried, also is the same problem, should be ruled out. The.net environment problems

CodePudding user response:

The.net Framework4 Client Profile change this to.net Framework4 try

CodePudding user response:

The.net Framework4 Client Profile this framework basically do not have a few PCS of the
Don't know why I choose this development

CodePudding user response:

Properties of the generated environment is not very right upstairs said are reasonable

CodePudding user response:

Try to install on Windows 7 computer VS2010

CodePudding user response:

Windows 7 with a high version of the.net framework test

CodePudding user response:

reference HyoJung reply: 3/f
.net Framework4 Client Profile change this to. Net Framework4 try

This is the basic problem,
I've met

CodePudding user response:

I'm sorry, a few days ago busy doing other things,
I tried to.net framework4.0 client profile was replaced. Net framework4.0, recompile, problems still exist,,,
  •  Tags:  
  • C#
  • Related