M
Mike
I have a aspx page that is accessing a WSDL web service creating in VB6.
When I run the page i'm getting the following error:
Object reference not set to an instance of an object
here is my code snippet thats failing
public function GetService as as WebReference1.WebServiceName
dim configreader as new Config.File
dim service as new WebReference.WebServiceName
servername = configreader.getvalue("Server", "WebServiceWSDLAddress")
end function
Function Remove() As object
dim service as WebReference.WebServiceName = GetService()
service.url = servername ' this is the line that is giving me the error
message
service.removeItems()
end function
any help is appreciated
When I run the page i'm getting the following error:
Object reference not set to an instance of an object
here is my code snippet thats failing
public function GetService as as WebReference1.WebServiceName
dim configreader as new Config.File
dim service as new WebReference.WebServiceName
servername = configreader.getvalue("Server", "WebServiceWSDLAddress")
end function
Function Remove() As object
dim service as WebReference.WebServiceName = GetService()
service.url = servername ' this is the line that is giving me the error
message
service.removeItems()
end function
any help is appreciated