ASP.NET webservice - Unable to Reference URL with Localhost

Hi Experts,

     I have written a test webservice TestWS  using VS2010  ( Just to add two  integers  -  AddInt)

      My whole issue is - I am not able to Reference  the WebService  URL  as
         But I have to reference as http://localhost:59329/TestWS/Service.asmx   . And then I am able to get the expected results in another .NET windows application

     ( Infact , even this  works only after I  run the Debug of the Webservice ( But even after I close the browser and  stop debugging , it still works )

     Can you help to fix this ?

Sam OZAsked:
Who is Participating?
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.

Dave BaldwinFixer of ProblemsCommented:
First, if it worked you wouldn't need the ':' after 'localhost': http://localhost/TestWS/Service.asmx  Second, if it is actually running on port 59329, there is no reason to think it should work without the port number.  'http://localhost/' without a port number goes to port 80, the standard HTTP port.
Sam OZAuthor Commented:
Sorry , it is a typo - it is actually http://localhost:59329/TestWS/Service.asmx  ...... Infact my primary issue is not about the port ...   I should be able to  get the result from WebService  in my second application  at all times..  ( Right now it fetches result only when I open the Webservice code in VS and run it ...... It works even after I close the  debugger  but only till I close the VS Editor for Webservice
Dave BaldwinFixer of ProblemsCommented:
Ok, you need to click on "Request Attention" to get others to look at your question.
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Amandeep Singh BhullarCommented:

It seems like you are running your service from the Visual Studio, not from IIS.
In order to keep your service running after closing VS editor, you need to host a service on IIS

Below are the good links which will help you to host the service on IIS

I am assuming that you are having IIS 7 installed on your PC

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
käµfm³d 👽Commented:
It's still not clear what your issue actually is. Are you merely concerned as to why the service still runs after you stop debugging?
Rose BabuSenior Team ManagerCommented:

Have you hosted your webservice in IIS and tested ?

provide us some more details about the issue you are facing.
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
Web Services

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.