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: