?
Solved

Visual Studio 2010, TcpListener.Start, get The requested address is not valid in its context

Posted on 2010-11-16
2
Medium Priority
?
1,224 Views
Last Modified: 2012-05-10
This works on Visual Studio 2008 but not after I converted the project to 2010:

        Try
            tcpListener = New TcpListener(Dns.GetHostEntry(SysName).AddressList(0), SvrPortNum)
            tcpListener.Start()
        Catch ex As Exception
           ' ex.Message = "The requested address is not valid in its context"
        End Try

The  statement
          tcpListener = New TcpListener(SvrPortNum)
works. I could use it as a workaround, but dont want to.

Is there something new with VS 2010, or a bug or something? I would really like to be able to specify the address to listen on if possible.

Thanks
0
Comment
Question by:MikeBroderick
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 

Author Comment

by:MikeBroderick
ID: 34146676
Also, the machine is Windows 7, 64 bit.
0
 

Accepted Solution

by:
MikeBroderick earned 0 total points
ID: 34148883
Oops. It works fine. It was something I was doing. Sorry.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month11 days, 15 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question