Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic Web Service
Message
From
12/12/2003 10:48:02
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Dynamic Web Service
Miscellaneous
Thread ID:
00858600
Message ID:
00858600
Views:
51
I am creating web services on the fly and I am having trouble creating an instance of the object. It comes up with the error when executing this line:-

Dim t As Type = assembly.GetType("RMBC.Webservice.DynamicProxy." + objTypeName)

after executing this statement t is still nothing. Can you tell me what I
am doing wrong. There are no errors when it is
compiled.


The message that I receive is:


System.ArgumentNullException: Value cannot be null.
Parameter name: type
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at RMBC_JobScheduler.DynamicProxyClass.CreateInstance(String objTypeName)
in c:\inetpub\wwwroot\RMBC_JobScheduler\DynamicProxyClass.vb:line 236
at RMBC_JobScheduler.DynamicProxyClass.Invokecall() in
c:\inetpub\wwwroot\RMBC_JobScheduler\DynamicProxyClass.vb:line 79
at RMBC_JobScheduler.JobScheduler.ExecuteProgram() in
c:\inetpub\wwwroot\RMBC_JobScheduler\JobScheduler.asmx.vb:line 220
at RMBC_JobScheduler.JobScheduler.RunJob() in
c:\inetpub\wwwroot\RMBC_JobScheduler\JobScheduler.asmx.vb:line 177

when it is executing this statement:

Return Activator.CreateInstance(t)

I appreciate your help. Thank you.
Next
Reply
Map
View

Click here to load this message in the networking platform