473,406 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

WCF, net.Tcp, baseAddress

Hello,

I have an odd problem with a windows service host - both as a console app
and a windows service (installed and uninstalled using installutil)

For some reason if I only use the baseAddress I'll get an
AddressAlreadyInUseException on the service.Open command.

If I specify a different address in the EndPoint or if I remove the
app.config endpoint/baseAddress and do it through code it works fine.

If I do a netstat there are no ports in a listening state until the Open
command is executed.

Is there a known issue with the baseAddress trying to assign a port twice on
the Open command?

This wasn't an issue until I uninstalled the windows service and ran the app
as a console app again (and for that matter a windows service). The service
was removed using installutil /u and I did restart my machine. Is there some
lingering settings somewhere that may not be uninstalled?

thanks,
--
Duffman

can't get enough of that wonderful Duff
May 31 '07 #1
3 5083
hi,

if it is dedicated to WCF post it to www.netfx3.com forum you will get
better feedback

regards
serge

"Duffman" wrote:
Hello,

I have an odd problem with a windows service host - both as a console app
and a windows service (installed and uninstalled using installutil)

For some reason if I only use the baseAddress I'll get an
AddressAlreadyInUseException on the service.Open command.

If I specify a different address in the EndPoint or if I remove the
app.config endpoint/baseAddress and do it through code it works fine.

If I do a netstat there are no ports in a listening state until the Open
command is executed.

Is there a known issue with the baseAddress trying to assign a port twice on
the Open command?

This wasn't an issue until I uninstalled the windows service and ran the app
as a console app again (and for that matter a windows service). The service
was removed using installutil /u and I did restart my machine. Is there some
lingering settings somewhere that may not be uninstalled?

thanks,
--
Duffman

can't get enough of that wonderful Duff
May 31 '07 #2
yes it is. thank you, I'll post it there.
--
Duffman

can't get enough of that wonderful Duff
"calderara" wrote:
hi,

if it is dedicated to WCF post it to www.netfx3.com forum you will get
better feedback

regards
serge

"Duffman" wrote:
Hello,

I have an odd problem with a windows service host - both as a console app
and a windows service (installed and uninstalled using installutil)

For some reason if I only use the baseAddress I'll get an
AddressAlreadyInUseException on the service.Open command.

If I specify a different address in the EndPoint or if I remove the
app.config endpoint/baseAddress and do it through code it works fine.

If I do a netstat there are no ports in a listening state until the Open
command is executed.

Is there a known issue with the baseAddress trying to assign a port twice on
the Open command?

This wasn't an issue until I uninstalled the windows service and ran the app
as a console app again (and for that matter a windows service). The service
was removed using installutil /u and I did restart my machine. Is there some
lingering settings somewhere that may not be uninstalled?

thanks,
--
Duffman

can't get enough of that wonderful Duff
May 31 '07 #3
Hi Duffman,

So the address binding problem also occur when you launch the WCF program
code as a normal console application(do not host it as windows service)?
If you're using the configuration file to specify the baseAddress and
endpoint address ,woudl you provide the configuration snippet on how to
specify the base and endpoint address?

Generally, if you have supply a base address in service configuration and
other endpoint's Address will derive from the base address , you should put
only relative address for the endpoint. e.g.

baseAddress="http://localhost/myservice"

endpoint Address = "endpoint1"(rather than
http://localhost/myservice/endpoint1)
endpoint Address = "endpoint2"(rather than
http://localhost/myservice/endpoint2)

is this also what you do currently?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 1 '07 #4

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

Similar topics

8
by: srikanth | last post by:
i have written one C -programm, which outputs signals for specific input. what my question is, i want to produce outputs for some range of user inputs. so for this i want to call my programm for...
4
by: Matt Burland | last post by:
I am trying to read the memory being used by a process but I can't quite figure out how to do it (or if it's even possible). I can get a reference to the process using Process.GetProcessesByName...
9
by: Invalidlastname | last post by:
Hi, We developed some assemblies which use EnterpriseServices queued components. In order to use EnterpriseServices, these assemblies need to be installed into GAC. I used the pre-build and...
7
by: Skybuck Flying | last post by:
Hello, The objective of this contest is to set and clear a bit at an arbitrary memory address as fast as possible. Implement one or multiple prototypes to take part in the contest: // 8 bit...
4
by: Jon Davis | last post by:
Newbie to WCF here. I am getting the error "unable to open its IChannelListener", but the service is running as an admin, and on a different port from anything else. If it matters, I'm trying to...
9
by: Jon Davis | last post by:
The following code runs fine. I let it go several thousand times and then killed it. private void button1_Click(object sender, EventArgs e) { int i = 0; string opOutput = "n/a"; while (true)...
1
by: Blip | last post by:
public class IP_ADAPTER_INFO //: IEnumerable<object<-maybe { public IntPtr Next; public uint ComboIndex; public string AdapterName; ...etc... public IP_ADAPTER_INFO(IntPtr baseAddress) {...
9
by: Hakan Fatih YILDIRIM | last post by:
Hi all, Ý am working aboot WCF. and i have some problems. I created 2 interfaces containing attribute at the top of them.and i want to create two classes implementing these interfaces.One class...
4
by: =?Utf-8?B?U2VyZ2Vp?= | last post by:
Dear staff Can I get your assistance with \3GB (LARGEADDRESSAWARE) switch in mixed mode process built by VS 2008, please? I have a mixed mode application: C# GUI calling native C++ DLL through...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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
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
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,...
0
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...

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.