Re: Cannot connect to Web service or ASP.NET website from another mach

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Naveed,

VS 2005 ships with a built in web server called cassini. For security
reasons, this web server only handles requests from the local machine.
So you can only use it for debugging locally. If your application is
not deployed in IIS and you try to run the application from VS2005,
then this local web server takes over automatically. You can use
Cassini for debuging you app, but once you've finished, you will need
to upgrade it it to run under IIS.

You can add a web reference to you new webservice from another
application on the same machine. If you want to do this, you will
probably want to turn off the dynamic ports feature that uses a random
port number each time you run the app. To do this, select the property
grid for your project and you'll see a "use dynamic ports" property. If
you set this to false, you can hard-code a port to launch your app
under so that you can connect to it from another local application.

Hope that helps

Peter

.



Relevant Pages

  • Re: How to Make Web Application Project Use IIS
    ... I do NOT want to use the built-in Cassini Web server and instead ... want to use IIS6 on my local machine. ... How to change from file to IIS: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: VB.NET
    ... Am I correct in assuming that this is because XP Home does not have a Personal Web Server? ... you cannot develop Web applications because Microsoft IIS are not avilable for Windows XP Home edition. ... Cassini Sample Web Server ... local machine only. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: who used Cassini Web Server?
    ... I uninstalled IIS and I rebooted my computer. ... look for web server instances running. ... That will run Cassini on port 1234. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Do you use HOSTS file ?
    ... > * If your local machine does run a web server, ... They display very nicely and much more quickly with the ads missing. ...
    (comp.os.linux.security)
  • Re: Is this possible?
    ... convert it for vfp accordingly. ... It works if I am running the web app on my local machine with local ... It fails if I run off the web server with the DBF tables that are ...
    (microsoft.public.fox.programmer.exchange)