HighTechTalks DotNet Forums  

WebService with ASP .NET v2

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss WebService with ASP .NET v2 in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Alex Levi
 
Posts: n/a

Default WebService with ASP .NET v2 - 03-30-2006 , 04:50 AM






Hi,
I just upgraded Visual Studio 2003 with 2005.
I had a Web Service that worked perfectly in debug and with client version.

Now when I'm running it with debug (within VS2005) it's working good.
However with the debug I can see "ASP.NET Development Server" running.

When I'm trying to run my service from the client (Exe program), with the
"ASP.NET ... Server" running it's working.
But if I stop it, I'm getting an error "Unable to connect to the remote
server".

How can I run my client program (exe) that whould work with my service
without "ASP.NET Development Server" running?

Reply With Quote
  #2  
Old   
Josh Twist
 
Posts: n/a

Default Re: WebService with ASP .NET v2 - 03-30-2006 , 08:53 AM






You're running your new web service as a File based web project. That's
why it's running under cassini (also known as the "ASP.NET development
server"). This little web server starts up on demand on a random port.
That's why sometimes it's there, sometimes it's not.

Using cassini for development is basically a bad idea as it runs with
the permissions of the user (and since they're a developer that's
usually Administrator) and not the limited permissions that we
applications usually enjoy.

So the best thing to do is to go back to using good old IIS:

- Setup a virtual directory in IIS and point it to your web service's
folder, e.g. http://localhost/myservice/
- Go into your web projects settings by right clicking on the project
and choosing 'Property Pages'.
- Select the Start Options menu item.
- Select 'Use custom server' and enter the url of the virtual directory
you configured into the Base Url field (e.g.
http://localhost/myservice/).

Now, you can debug and VS2005 will attach to IIS and you can hit the
virtual directory at any time.

Josh
http://www.thejoyofcode.com/


Reply With Quote
  #3  
Old   
Alex Levi
 
Posts: n/a

Default Re: WebService with ASP .NET v2 - 06-20-2006 , 12:29 PM



Thanks!!!
It worked...


"Josh Twist" wrote:

Quote:
You're running your new web service as a File based web project. That's
why it's running under cassini (also known as the "ASP.NET development
server"). This little web server starts up on demand on a random port.
That's why sometimes it's there, sometimes it's not.

Using cassini for development is basically a bad idea as it runs with
the permissions of the user (and since they're a developer that's
usually Administrator) and not the limited permissions that we
applications usually enjoy.

So the best thing to do is to go back to using good old IIS:

- Setup a virtual directory in IIS and point it to your web service's
folder, e.g. http://localhost/myservice/
- Go into your web projects settings by right clicking on the project
and choosing 'Property Pages'.
- Select the Start Options menu item.
- Select 'Use custom server' and enter the url of the virtual directory
you configured into the Base Url field (e.g.
http://localhost/myservice/).

Now, you can debug and VS2005 will attach to IIS and you can hit the
virtual directory at any time.

Josh
http://www.thejoyofcode.com/



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.