How to Avoid Dynamic Port in VS 2005.

B

BSM

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
 
S

Shahzad Godil

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
 
A

Alexey Smirnov

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

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

Hope this helps,
 
B

BSM

Hi,

Thanks to ALL.

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

Regards
Senthil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top