Consuming a WEB service, Visual Studio, VB.NET

I am consuming  a WEB service in a console app.    I need to consume the same service from an ASP WEB page.   In the console app, there's a reference.vb file in the service folder, along with configuration.svcinfo, configuration91.svcinfo, Reference.svcmap, tds.disco and tds.wsdl.      However, after adding the service to the WEB project, the reference.vb is not present.  Additionally the service folder is added under a folder called "App_WebReferences" while in the console app it's added under "Service References".   I also tried adding it as a WEB Service using the "Advanced" button on the a service reference dialog.  

I can't get this to work.

When I add as a WEB Service using the "Advanced" button on the a service reference dialog, all seems OK in Visual Studio.  VS shows me the methods within the service.    But at run time I get a timeout when I try to instantiate an instance of the service.    

When I add as a Service Reference, I can't even reference the service definition because the reference.vb is not present.
LVL 1
HLRosenbergerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Najam UddinCommented:
Is this asmx service or wcf or other language service?
HLRosenbergerAuthor Commented:
asmx web service
Najam UddinCommented:
Please try Right click add Service reference -> Click Advance -> In bottom there is button Add Web Reference

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CompTIA Security+

Learn the essential functions of CompTIA Security+, which establishes the core knowledge required of any cybersecurity role and leads professionals into intermediate-level cybersecurity jobs.

HLRosenbergerAuthor Commented:
I did that:

When I add as a WEB Service using the "Advanced" button on the a service reference dialog, all seems OK in Visual Studio.  VS shows me the methods within the service.    But at run time I get a timeout when I try to instantiate an instance of the service.
Naitik GamitSoftware DeveloperCommented:
If you get timeout when consuming web service you can increase time as example:

  localhost.Service ws = new localhost.Service();
  ws.Timeout = 100;
  ws.HelloWorld();
käµfm³d 👽Commented:
Is the client application a website project or a web application project?
HLRosenbergerAuthor Commented:
got it working.  thanks.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.