Forum  Core :: SDK (Vi...  Dual Mode (2 in...  Null reference in client
Previous   Previous
 
Next   Next
New Post  2/27/2008 2:41 AM
   taryon
7 posts
No Ranking


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.

 
New Post  3/4/2008 11:04 PM
   itzik.spitzen
1664 posts
1st Level Poster




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

 
New Post  4/16/2008 11:54 AM
   BillInPa
6 posts
No Ranking


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);
 
New Post  4/22/2008 12:32 AM
   gailsteiger
449 posts
2nd Level Poster


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
 
New Post  4/28/2008 6:33 AM
   gailsteiger
449 posts
2nd Level Poster


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
 
Previous   Previous
 
Next   Next
  Forum  Core :: SDK (Vi...  Dual Mode (2 in...  Null reference in client
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS