Problem with Visual Studio 2010

I used Visual Studio for the codes of my C # project for a while, everything seems to be fine until today, I modified the code from C # File Browser and use it in my project as a component. After that, I can’t change the window shape icon (just as I did with other ways to win), when I look at the icon file, Visual Studio stops working. Moreover, while I am debugging with a window form that has a file browser, I try to test the function by viewing the file after I view the VS file, also stops working. Moreover and moreover, VS stops working on its own without any action on my part. Does anyone know where to look for a cause or how to solve it.

I solved the problem with the icon using

this.Icon = new System.Drawing.Icon("icon.ico"); 

and set the image properties:

 Build Action: Content Copy to output Directory: Always 

After I installed Service Pack 1 (SP1) for VS 2010, the icon problem can be resolved, I can view the icon file in the properties, but the other debugging failure is still the same, and I have

 exited with code -2147483645 (0x80000003). 

which are apparently the cause of the browser file library

+6
source share
1 answer

I had a lot of glitches recently.

I was able to restore my website to work again by deleting the solution parameter files.

.suo files under your profile (OS dependent) (My documents \ Visual Studio 2010 \ Projects \ solutionName for xp if you do not have .sln somewhere else.) (NOTE: you right-click on the solution on the start page and open "Contains folder.")

solutionName.sln.docstates.suo is one of them. This fixed the problem that I ran into, but then caused other problems. as well as solutionName.suo

Understand this will lose ALL the settings you made for this decision.

However, this may clarify the situation.

I believe that as soon as you get a crash, you can get garbage in these files. In some cases, you may also need to delete the .sln file itself.

As always, keep a copy of these files just in case ...

+1
source

Source: https://habr.com/ru/post/897323/


All Articles