The base class system.windows.forms.form could not be loaded

System.InvalidOperationException: 'Site' must not be null in order to access a required service.
   at WinFormsSurface.Designers.ComponentDesigner.GetRequiredService[T]()
   at WinFormsSurface.Designers.ControlDesigner.SetUnhandledException(Control owner, Exception exception)
   at WinFormsSurface.Designers.ControlDesigner.DesignerWindowTarget.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Only Visible to You and DevExpress Support

Visible to All Users

Modify support ticket and change its visibility

Urgent Duplicate

We have closed this ticket because another page addresses its subject:

Answers approved by DevExpress Support

Disclaimer: The information provided on DevExpress.com and its affiliated web properties is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information.

Recently viewed tickets

You have yet to view any tickets.

Your search criteria do not match any tickets.

A server error occurred while processing your request. Please try again at a later time.


Ajay Mirani

  • #1

Hi,

I have serious issues setting up new PPC Form applications within the IDE ->
the Form Designer constantly returns the error: Form1---The base class
'System.Windows.Forms.Form' could not be loaded. Ensure the assembly has
been referenced or built if it is part of the project.

Thanks

Advertisements

Geoff Schwab [MSFT]

  • #2

Hi Ajay,

What settings are you using in the application wizard when you create the
project? This would typical of a DLL project

Try adding the assembly by right-clicking on the project in the solution
explorer and selecting "Add reference" (or selecting Project->Add Reference
from the main menu of Visual Studio). You should get an Add Reference
dialog. Select the .NET tab, then System.Windows.Forms in the list and
double-click. This will cause it to appear in the Selected Components
window. Press the OK button and the assembly is added to your project.

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.

Chris

  • #3

I have the exact same problem.

I've tried manually adding the reference with no results. I've uninstalled
/ reinstalled Studio 2003 multiple times with the same results. Each time,
when I select the .Net tab for references, I have to browse for them b/c
they are not automatically listed.

Advertisements

Guest

  • #4

Even me to have serious issues, in adding up new forms and opening up new forms in a project which was written for Compact Framework (1.0.5000).

Have tried all combinations of DLLs, reference adding. Nothing worked out.
Is there any solutions?

Raja

----- Ajay Mirani wrote: -----

Hi,

I have serious issues setting up new PPC Form applications within the IDE ->
the Form Designer constantly returns the error: Form1---The base class
'System.Windows.Forms.Form' could not be loaded. Ensure the assembly has
been referenced or built if it is part of the project.

Thanks


Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question