Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2005

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
naveed - 19 Oct 2005 21:47 GMT
I have the simple Hello World web service running in debug mode on my
development machine
(XP Pro SP2). I'm using VS2005. I'm able to access it from my machine. When I
try to access it from another machine (also XP pro SP2), using the URL:
"http://nav:24035/WebServ/Service.asmx?op=HelloWorld", I get a "Cannot find
server or DNS Error" error.

There is no firewall on either machine. Windows firewalls are disabled. I'm
able to access this URL just
fine: "http://nav". I get the same exact errors with
http://nav:24035/webserv/service.asmx

Without the port, I get this error:

   Server Error in '/' Application.
   
--------------------------------------------------------------------------------

   The resource cannot be found.
   Description: HTTP 404. The resource you are looking for (or one of its
   dependencies) could have been removed, had its name changed, or is
   temporarily unavailable. Please review the following URL and make sure
that
   it is spelled correctly.

   Requested URL: /webserv/service.asmx

I also tried a simple web site and I have the same problem. Why does VS2005
use a port other than 80?

Please help.
Bruce Barker - 19 Oct 2005 22:19 GMT
you have to open the port number on the windows firewall software on your
machine. look under control panel->services->windows firewall

the port number is not 80, because you configured vs to run the standadlone
test webserver which requests a free port from the portmapper (this means
the port number is not stable.  i use iis so not sure if you can configure a
fixed port number for the test webserver).

-- bruce (sqlwork.com)

>I have the simple Hello World web service running in debug mode on my
> development machine
[quoted text clipped - 31 lines]
>
> Please help.
Juan T. Llibre - 19 Oct 2005 22:56 GMT
Hello, Naveed.

To specify the Web server for an already-created Web site,
open your local website with VS.NET and, in the Solution Explorer,
right-click the name of the Web site for which you want
to specify a Web server, and then click Property Pages.

In the Property Pages dialog box, click the Start Options tab.
Under Server, click Use custom server.

In the Base URL box, type the URL that Visual Web Developer
should start when running the current Web site. You can use localhost.

From that point on, the VS.NET IDE will not use the internal web server,
but will use IIS to open your pages, i.e., if you are working on default.aspx,
it will be opened as : http://localhost/default.aspx

This assumes that you have IIS 5.1 installed on Win XP Pro.
If you don't have it installed, install it before you do this.

Also, now you will only need to open port 80 on the firewall,
instead of having to open all the ports above 1024, since the
internal web server ( which you won't use any more ) runs
on a random port above 1024.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
>I have the simple Hello World web service running in debug mode on my
> development machine
[quoted text clipped - 27 lines]
>
> Please help.
Naveed Ahmed - 19 Oct 2005 23:38 GMT
Thanks, Juan, that fixed the problem.

Naveed

> Hello, Naveed.
>
[quoted text clipped - 61 lines]
>>
>> Please help.
Scott Allen - 20 Oct 2005 13:50 GMT
>Also, now you will only need to open port 80 on the firewall,
>instead of having to open all the ports above 1024, since the
>internal web server ( which you won't use any more ) runs
>on a random port above 1024.

I believe the WebDev server drops any connections from a remote host,
so even opening the firewall doesn't help.

--
Scott
http://www.OdeToCode.com/blogs/scott/

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.