Search
 Search
GET THE HOTEST NEWS ABOUT VISUAL WEBGUI.
CREATE LINE OF BUSINESS SILVERLIGHT APPLICATIONS IN NO TIME.
EVERY THING YOU NEED TO START DEVELOPING WITH VISUAL WEBGUI.
SEE VISUAL WEBGUI SHOW CASES FROM AROUND THE WORLD.
ALL THE RESOURCES YOU NEED TO START BUILDING VISUAL WEBGUI APPLICATIONS TODAY.
SHARE AND FIND VISUAL WEBGUI RESOURCES.
TALK WITH OTHER VISUAL WEBGUI DEVELOPERS.
 

 

SAP has chosen Visual WebGui for strategic web application, Mr. Saar of SAP explains why in an interview with with Jeremy Geelan at AJAX World.

Click on the video image to watch

SAP chosen VWG for strategic web application

SearchForum Home
  Core :: SDK (Visual WebGui)  Dual Mode (2 in 1 applications)  Null reference ...
 Null reference in client
 
 2/27/2008 11:41:10 AM
taryon
7 posts


Null reference in client

Hi!
I am getting a null reference into a TargetInvocationException.

The form type was not found in Gizmox.WebGUI.Forms but in the gAgenda.Forms1 (gAgenda is the project namespace).

any ideas?

thx in advance.

 3/5/2008 8:04:54 AM
itzik.spitzen
1405 posts
1st


Re: Null reference in client

Hi,

Did you change the start form name?

Check that the web config key which maps application entry points is correctly configured and is pointing the right

Form object:
    <Applications>
      <Application Code="MainForm" Type="Gizmox.WebGUI.Forms.Catalog.MainForm, Gizmox.WebGUI.Forms.Catalog"/>
    </Applications>

Type should contain the fully qualified name of the start form: "<full form name - including namespaces path>, <assembly name>" and in case it is strongly names you can add public token.

Regards,
Itzik Spitzen

 4/16/2008 8:54:03 PM
BillInPa
4 posts


Re: Null reference in client (getting similar error)

I followed the howto, in program.cs set the get as

 

wrapped the .Run in a try/catch, here is the exception

e.Message = "Exception has been thrown by the target of an invocation."

Using 6.0.1, vs 2008, .net 3.5

 

return typeof(Gizmox.WebGUI.Forms.Catalog.MainForm);
 4/22/2008 9:32:54 AM
gail.steiger
449 posts
2nd


Re: Null reference in client (getting similar error)
Hi,

Please send us your project so that we can investigate this in more depth.

Gail Steiger
 4/28/2008 3:33:43 PM
gail.steiger
449 posts
2nd


Re: Null reference in client (getting similar error)
Hi Bill,

Thanks for the code sample. We also got the "Exception has been thrown by the target of an invocation" when running with the CatalogSmartClient as the startup project. Then we checked the basic VWG project and found that we were getting an exception in some of the code that you added to the MainForm.cs file. Could you please try running the solution again making sure that the VWG project runs properly and let us know what happens.

Thanks,

Gail Steiger
  Core :: SDK (Visual WebGui)  Dual Mode (2 in 1 applications)  Null reference ...

Visual Studop Partners

Copyright © 2005-2008 Visual WebGui®   Terms Of Use  Privacy Statement
Visual WebGui is copyright 2005-2008 by Gizmox