General information
Title:
Dynamic Web Service
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only