Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Designer loading error
 

Designer loading error

Hi,

I am working on a project in visual c++ 8 beta 2 using a windows forms application. At a certain point visual just shut down and after reloading the project I can't load any of the forms I have created anymore... The following error appears for all of the forms:

One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. Clicking on each error will take you to the line of code that caused it. 

The file 'c:\Develop\KicTools\Src\KicTools\KicEditorTool\FormMain.h' does not support code parsing or generation because it is not contained within a project that supports code. 

Hide 

at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomDocDataAdapter.get_Provider()
at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomDocDataAdapter.get_CompileUnit()
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload) 

Does anyone have a clue as to how to fix this problem? I have created about 30 forms already and restarting is just not an option...

Thanks in advance,
Fredric
MigrationUser 1  Monday, June 06, 2005 8:26 AM

I have the same problem with VS 2008. I create a new C++-project (MFC-DLL with/clr), then add a new Windows Form class and the error described above happens.

Another project created with VS 2005 and converted to VS 2008hasthe same error in the forms designer.

Jens Köhler  Friday, December 07, 2007 1:31 PM

I have the same problem, using VS 2008 and C-Sharp. I have not been able to get this to work either. Has anyone figured out how to correct this yet?

CEI-Steve  Monday, October 20, 2008 5:33 PM

I don't know if this can help you, but in C++, I found a solution to avoid/repair this problem.

I close the solution. I go to the solution's file folder and delete the solution's .NCB and .SUO files. After, I reload the solution in visual studio 2008. In the solution file explorer, I right click on the targeted form source and select the "View code"(not"View Designer"). When the source file is opened, then after I right click over thesource text and select View in designer. All it's fine that way!

Hope this helps,

Mario

Mario Hebert  Thursday, October 30, 2008 12:24 PM
I never thought such tricks work. But surprisingly helped with MyUserControl under VS2008 C#.
Kore Sar  Thursday, November 13, 2008 4:56 PM
This solution doesn't work on my computer. Does anybody have different solution ? Please... i tried many things... none of them was good..
Mool1981  Tuesday, April 07, 2009 4:05 PM
I have just closed the vs, and restarted it, and the problem is sovled.

Isn't it a bug of vs designer? ...
AlexanderYao  Sunday, April 26, 2009 2:31 AM
Thanks alot, It's works
Ilanoy  Sunday, July 19, 2009 9:59 AM

You can use google to search for other answers

Custom Search

More Threads

• IDesignerSerializationService.Deserialize now adds Components to IDesignerHost.Container
• Need more resource for digital camera
• serching listview
• Disappearing Controls
• Help with Making ListView Columns Sortable in VC++ 2005
• new to XML ..Write XML How ?? [:(]
• usercontrol !
• Inexplicable design-time exception
• Couldn't change the label's text!
• Designer and Runtime only code (Preprocessor directives)