Information générale
Titre:
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.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement