Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Microsoft Visual studio has encountered a problem and needs to close
 

Microsoft Visual studio has encountered a problem and needs to close

Hi,

I am developing a smart device application using .net cf 3.5 with visual studio 2008. I am

facing a problem while I open and close a winforms designer. When I open a existing winform it

opens well and i am able to work on the form. Once i try to close that form it restarts the

visual studio 2008. Below is the error message.

Microsoft Visual studio has encountered a problem and needs to close

debug mode: An unhandled win32 exception occurred in devenv.exe[7348]

Please let me know if anyone faces this problem.

thanks,

gkn

GKN10  Thursday, October 16, 2008 8:16 PM

I forget to mention one thing. I am using a base form. That base form has some panel controls, label controls and button controls. When ever I open the form designer that has inherited the baseform, gives the problem. i.e. I am able to open the form while closingvisual studio crashes. But for the ordinary form like Form that didn't inherited my base form works well. It didn't crashes the visual studio.

Also three days before I changed the platform verification toTrueon Microsoft.Common.Target configuration.I don't know whether this will cause the problem??

Please reply if anyonce knows anything about this issue. I am struggling fora long time tosolve this.

thanks,

gkn

GKN10  Friday, October 17, 2008 2:43 AM

Hi

Just try one thing..

close all of your .Net IDE's and and reset your devenv...

It from visual studio command prompt which you can access it...

Start->Program files->Microsoft Visual Studio 2005-> Tools->Visual studio Command prompt..

approximately you will find it here..

Just open it and type this command..... Devenv /ResetSkipPkgs

This will reset your IDE...

Then open your application rebild all solution then open the form..

Hope this will work you out..'

Sreenath G V  Friday, October 17, 2008 9:30 AM

Hi Sreenath,

Thanks for your Response. ResetSkipPkgs that doesn't worked out. Still the Visual studio IDE crashing.

-gkn

GKN10  Friday, October 17, 2008 2:29 PM

Hi

I didnt get U..??

Sreenath G V  Friday, October 17, 2008 2:35 PM

Your suggestion not worked out. I tried resetting the devenv using Resetskippkgs. but it didn't helped out. I mean still I am facing the same above issue.

thanks,

gkn

GKN10  Friday, October 17, 2008 3:16 PM

Hi

you can try this out....In your .Net IDE go to Tools->Options and reset all your settings of IDE.

Try this out once..

Sreenath G V  Monday, October 20, 2008 3:46 AM

Hi GKN,

The cause of the problem maybe various, so I recommend you to try the following general steps to troubleshooting IDE issues.

1. Please apply the latest service pack of Visual Studio.

2. Try to create a new project, and see whether the problem still exists. Sometimes corrupted project settings can cause problems. These are project specific.

3. Try to reboot the operating system to safe mode and see whether the problem still happens. This can help to isolate other applications are interfering Visual Studio.

4. Try to create a new account and test the project in the new account. This can isolate user profile corruption related issues.

5. Try to disable Add-ns(e.g. “Tools�| “Add-in Manager� and run “devenv.exe /safemode� This can eliminate the possibility that third party Add-ins are causing problems.

Best Regards,

Bruce Zhou

Bruce.Zhou  Tuesday, October 21, 2008 12:46 PM

Bruce zhou,

Thanks for the response. I found the issue which causes the problem. The inherited class not displaying the contents of the base classon my design time. it gives an "visual inheritance problem" so as per the experts advice I added the Desktopcompatible=true to my designtime attribute file after that Visual inheritance problem has gone away. This design time attribute causes the problem right now, but i don't know how it works initally and then after one or two months it's not working???? its wierd... Also I don't know, i made any mistake or its an other issue.

How I solved it, I created a new .net project solution and added all the existing class into it, without creating the designtime attributes. so now I am able to work on my project, some what my problem has solved, even though I am not able to view the base class controls on my derived class still the "visual inheritance problem" is there.

thanks,
gkn

GKN10  Thursday, October 23, 2008 9:12 PM

Hi GKN,

Did you have code for P/Invoke in the base control? If so, this may be the cause. Please check out this thread. I also found that you problem tends to be a .NET Compact Framework problem, so you can also post there to seek for more expert explanation.

Best Regards,

Bruce Zhou

Bruce.Zhou  Friday, October 24, 2008 5:48 AM
Hi,,

I am also geting error some like a above mentioned problems can you please anyone helpout me regarding below mnention error..


when i am going to from html view to designview in vs 2005 my IDE get restarded with some error when i am trying to debug that error it is giving me some violation access error with some hexadecimal number

this project is in vss in all there are 10 systems where i am using same project in 6-7 system geting same error and in 3 working fine what will i do ...

Thanks
Sameer
Sameer Khan3  Wednesday, November 05, 2008 10:24 AM

I have the same error. and my project is a classical Web Application project. It seems that this problem occurs when I have many session of ASP.NET development server launched for testing. Every time youmake a view inBrowser theIDE launches a version of ASP.NET development server wihta specified port.You should besure of closing them before returningto your IDE.

Maybe this could help for your problem.

marc bichara  Friday, November 07, 2008 10:47 AM

I add this information because now the problem don't arise anymore.
In fact my problem happened when working on a Web USer control that had a

<link href="xxx.css" rel="stylesheet" type="text/css" /> at the end of it's page

(.ascx files having a link at the begining of the page suffers from the fact the design vue does not show in some cases.

when taking this instruction out of the page, and taking care of closing unclosed ASP.NET DEVELOPMENENT SERVER instances as above stated solved the problem for me. Why and which of these two did cause or solve the problem I don't know it's a bizarre bug of VS 2008....

marc bichara  Saturday, November 08, 2008 12:44 PM

You can use google to search for other answers

Custom Search

More Threads

• Inherited Toolstrips cannot be Designed
• Moving and copying windows form in visual studio 2005
• My Own TabControl (Designer Questions)
• Bind values to a ListView
• save Object's Property at design time
• How do I programmatically create a usercontrol and add to the designsurface
• winform toolstrip button image size not change
• Code generation for property <xxxx> failed
• Unable to cast object of type X to type X after project rebuild
• Panel with design-time support