Groups | Blog | Home
all groups > asp.net > march 2007 >

asp.net : How to Avoid Dynamic Port in VS 2005.



BSM
3/13/2007 11:05:33 PM
I have created one Web Service in VS 2005 Team Edition. In the Website
Creation Template, I chose "HTTP".

When I run the application, the URL was like this

http://localhost:1245/WebServ1/Service.asmx

When I try to include this WebService in another app, I was in the
situation to include the Port number. Then only it works. Othewise it
doesn't sense the web service.

Anybody please help me.

Senthil
Shahzad Godil
3/14/2007 12:00:00 AM

There are two way to solve this issue.

1. In properties of your website, uncheck "Auto Assign port" and check
"Specific port" and give any port like 1235. And then from your other
project, you can refer your webservice using fixed port.

2. Or use IIS instead of visual studio own development server. IIS always
run on port 80 means no port in url.

Thanks
Shahzad Godil

[quoted text, click to view]

Alexey Smirnov
3/14/2007 1:44:31 AM
[quoted text, click to view]

In the project properties, choose the Web Tab and hard-code a Specific
Port to launch the web under.

Hope this helps,
Henrik Stidsen
3/14/2007 1:57:18 AM
[quoted text, click to view]

Take a look at
http://weblogs.asp.net/scottgu/archive/2006/12/19/tip-trick-how-to-run-a-root-site-with-the-local-web-server-using-vs-2005-sp1.aspx
BSM
3/14/2007 11:28:51 PM
Hi,

Thanks to ALL.

As you said, I changed the settings and its working fine.

Regards
Senthil

[quoted text, click to view]

AddThis Social Bookmark Button