Question Compiler Error Message: BC30002: Type 'MyProject.WebService1' is not defined.

wael

New member
Joined
Aug 9, 2009
Messages
1
Programming Experience
Beginner
Hi all,

I am having problems invoking my web service on my project

I created the simplest WebService possible with the "HelloWorld" method
and tried to call it using the following code

Dim ss As MyProject.WebService1
ss = New MyProject.WebService1()
TextBox1.Text = ss.HelloWorld()

it gave me on the first line "Dim ss As MyProject.WebService1" that it WebService1 is not defined, given that text editor recognized the methods inside the web service.

I tried the exact same code on new project and it worked!!
but i need it to work on my old project... Have I done something to my project? how can i fix it?

Thanks,
Wael
 
Have a look in Object Browser, find the project node for hosting application, within it you should find the namespace for the webservice proxy, and in there the webservice proxy class name. For example in project node WindowsApplication1 you may find the namespace WindowsApplication1.ServiceReference1 that has a Service class.
 
Back
Top