473,487 Members | 2,616 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to Avoid Dynamic Port in VS 2005.

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

Mar 14 '07 #1
4 3413

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

"BSM" <se************@angleritech.comwrote in message
news:11**********************@y66g2000hsf.googlegr oups.com...
>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

Mar 14 '07 #2
On Mar 14, 7:05 am, "BSM" <senthilmuru...@angleritech.comwrote:
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,

Mar 14 '07 #3
On 14 Mar., 07:05, "BSM" <senthilmuru...@angleritech.comwrote:
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.
Take a look at
http://weblogs.asp.net/scottgu/archi...-2005-sp1.aspx

Mar 14 '07 #4
BSM
Hi,

Thanks to ALL.

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

Regards
Senthil

On Mar 14, 1:57 pm, "Henrik Stidsen" <henrikstid...@gmail.comwrote:
On 14 Mar., 07:05, "BSM" <senthilmuru...@angleritech.comwrote:
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.

Take a look athttp://weblogs.asp.net/scottgu/archive/2006/12/19/tip-trick-how-to-ru...

Mar 15 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1547
by: dgk | last post by:
Not a dotnet question yet, although the site will be dotnet. Anyway, I have a cable modem and dynamic (although pretty static) IP address. How can I use a domain name if the real ip can change? I...
7
3367
by: serge | last post by:
How can I run a single SP by asking multiple sales question either by using the logical operator AND for all the questions; or using the logical operator OR for all the questions. So it's always...
1
10873
by: henrycortezwu | last post by:
Hi All, I'm trying to connect to a virtual port (COM19, OUTGOING, "Bluetooth Serial Port") using VS2005 System.IO.Ports. When I ran the ff code below here's what happens. 1) VS2005 Compiles w/o...
0
2052
by: Pascal Costanza | last post by:
Dynamic Languages Day @ Vrije Universiteit Brussel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Monday, February 13, 2006, VUB Campus Etterbeek The VUB (Programming Technology Lab,...
3
1485
by: | last post by:
I'm trying to create a project on a virtual server that runs on port 8000, rather than port 80. I tried creating the project at http://localhost:8000/MyFolder but it keeps telling me that the file...
10
3350
by: TS | last post by:
i just noticed the website i created in VS 2005 is running on a different port than the default. I see that it is running on the local web server, and also that the website i created isn't in IIS....
3
2779
by: tranzpupy | last post by:
Hi, Everybody, My ASP site will only display with a port number in the url. How do I make IIS display it without the port number?? I've created a web site in VS 2005 called webapp1 with one...
4
5430
by: cmdolcet69 | last post by:
This code below write a serial command to the com port then read the results and disaplays it into the label1.text property when button1_click event is triggered. I think what is going on is that...
0
890
by: uupi_duu | last post by:
Hello I have installed Visual Sudio Team System 2005 and I'm develping ASP.NET 2.0 application. There is one problem that I can't understand: when I launch my ASP.NET WebApplication in Studio's...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7137
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7181
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7349
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5442
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4874
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
267
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.