In my junior year, I went to work as an intern at the company. The company has Java and. NET software development, I mainly do. NET development, and the company is mainly engaged in C/s development, and uses a third-party control Dev Express. This thing has never been used before. The company has given us a piece of software that we have prepared before, so that we can practice it. This software was developed based on framework2.0 using vs2005. the dev version is 8.2, and the database is mssql2005. Now we need to use vs2010 for development, now we will record the problems we encountered during the conversion from vs2005 to vs2010 for ourselves and our friends in need. Please wait a long time for me to write a blog for the first time, you are welcome to provide comments and suggestions.
I. vs2010 is not compatible with dev8.2
Open the project with vs2010, and vs2010 will prompt to automatically convert vs2005 to version 2010. This will be done directly, and then the problem arises, because when dev8.2 is released, vs2010 has not been released (as mentioned by students), so dev8.2 cannot be used in vs2010. Therefore, we have a new version of 13.2.6. Two errors will be reported here: 1) signature problem: solution: Right-click Project → properties → signature → remove √ before "sign for clickonce list. 2) Because dev13.2.6 only applies to. NET Framework 4 and the original project is framework2.0, right-click the project, choose Properties> Application> target framework.
2. When opening the form target, an error is returned:"The CAS policy explicitly used by this method has been deprecated by. NET Framework. To enable the CAS policy for compatibility reasons, use the netfx40_legacysecuritypolicy configuration switch.."
Note: This method comes from the network, but it is available for test.
Go to the IDE under the installation directory of vs2010. My path is c: \ Program Files \ Microsoft Visual Studio 10.0 \ common7 \ IDE.
Find the file editing file: devenv.exe. config, open it, find <runtime>, and add the following code:
<Runtime> // press Enter here to add the following line of code.
<Netfx40_legacysecuritypolicy enabled = "true"/> // added code. during use, copy the code of the modified content.
3: The third-party control cannot display the solution in the vs Toolbox (maybe a problem occurs during Dev installation)
This problem varies from person to person. We have a total of five students who encounter different situations. There are no problems at all. After Dev is installed, the control will appear in the toolbox, and I am the one with bad luck...
1. Right-click the blank space in the vs toolbox or select the devexpress option in the menu bar, and then select repair toolbox for repair. (If not, please refer to the next step)
2. Install the patch package of vs2010 (this is the solution of the other two students, which can be displayed later. If I still cannot be shown, for example, I have to make a big move)
3. Uninstall vs2010 and reinstall it.
Of course, if the above method still cannot solve the problem, then I am also confused -_-!
To sum up, I encountered problems in configuring the development environment, hoping to help those who needed it. In addition, I hope you will not give me any further information about O (∩ _ ∩) O.
Development Environment vs2005, third-party control dev8.2 software developed on vs2010 run Problems