Home » SQL Server

IP Switching - "Web test requests were not bound to either the correct IP address for IP switching"


I have setup IP Switching and the load appears to be balancing across my webservers. However, when i stop the loadtest, teh following error appers in the errors grid in VS.

"nnnnnn Web test requests were not bound to either the correct IP address for IP switching, or the correct port number for network emulation, or both".

I have enabled the agent tracing and viewed the log but all looks correct. No errors are reported in the log and the URLs are be bound to the IP's in the range i have specified.

Has anybody seen this error before?




3 Answers Found


Answer 1

Hello Richard,

I have not ever seem such an issue before and now that there is no specific error  in log, I think this may not be easy to directly point out the cause.

You may verify whether all agents have been applied VS2008 SP1, do remember that you have to re-apply SP1 if you install controller or agents on machine which has already applied SP1.

If these all not help, you may take the following steps:

a)     Try to run devenv /ResetSettings (in command prompt) to eliminate the related potential settings problem.

b)     Try disabling Add-ins (e.g. “Tools” | “Add-in Manager”) or run “devenv.exe /SafeMode”.This can eliminate the possibility that third party Add-ins or packages are causing problems. (For more detailed VS command line switches information, see: http://msdn2.microsoft.com/en-us/library/xee0c8y7.aspx )

c)     Try creating a new project. Sometimes corrupted project settings can cause problems. These are project specific.

d)     Try to reboot the operating system to safe mode. This can help to isolate whether any other applications are interfering with Visual Studio. Note that some features (like IIS) are not available under safe mode. Please check whether this can be applied or not. In addition to safe mode, we can also try “clean boot”: How to configure Windows XP to start in a "clean boot" state http://support.microsoft.com/kb/310353 .

e)      Try to create a new user account. This can help isolate user profile corruption related causes.


Answer 2

Hi Edwer,

I think i've got to the bottom of it. The problem only occurs if both of the following are true.

1. Use a datasource (CSV) for the Request URL and......

2. You stop  the test  before it has completed.

The following error  is displayed "nnnnnn web  test requests  were not bound  to either the correct  IP address  for IP switching, or the correct port  number for network  emulation, or both".

I have replicated the problem on two different (VS2010, Controller, Agent) setups so it isn't a project/config/corruption issue.



Answer 3


Well, based on your descriptions, this seems to be an issue. Could you please submit this issue on Connect for improving the quality and impacting the direction of Microsoft products.

Thanks for your understanding.




We have a Windows service which opens a socket and listens for instructions from another process.  It's been running on a client's server for quite a while, until today when they (for some reason unknown to us) decided to change the IP address of the server.

Now, when our service starts up, it's failing with ther exception message "the requested address is not valid in its context".

The code that's failing is as follows:


// Data buffer for incoming data.


int listenPort = OBMQ.Default.ListenPort;


byte[] bytes = newByte[1024];


// Establish the local endpoint for the socket.


IPHostEntry ipHostInfo = Dns.GetHostEntry(Dns.GetHostName());


IPAddress ipAddress = ipHostInfo.AddressList[0];



//IPEndPoint localEndPoint = new IPEndPoint(ipAddress, 11000);


IPEndPoint localEndPoint = newIPEndPoint(ipAddress, listenPort);


// Create a TCP/IP socket.


Socket listener = newSocket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);


// Bind the socket to the local endpoint and listen for incoming connections.









The code hasn't changed, only the IP address of the server - what could be causing the problem?


Thanks in advance,



I got an error on the windows eventlog which says:

The SQLBrowser service was unable to process a client request.

And then:


The SQLBrowser processing of requests against a particular IP address has encounted a critical error. Processing of requests on this address has been halted.


Did anyone have face this? has been it solved? The only solution I've found so far is restart the service, but is not the root solution for this.

Any help will be appreciated.



I have jsp web page that loads many resources.  Some resources user certain directories are not available to certain users i.e http://<webaddress>/fg/resources/pic/pic.css  403 You dont have permissions.  This is functioning as correct.  How can I pass this test script with this 403 error?

My jsp page calls many css and js files which depending on the logged in users privileges will not have access to some of these resources as expected.




When my program try to bind to the local UDP socket while its absent, I got an error: the requested address is not valid in its context. Can anyone tell me what's wrong with my code below?


        void Re_Bind_to_Socket_A()
            while (true)
                    // Make new UDP Client object
                    IPEndPoint ipLocalEndPointA = new IPEndPoint(IPAddress.Parse(localIPA), localPortNum);
                    UDPClientA = new UdpClient(ipLocalEndPointA);
                    // Otherwise successful                  

                catch (Exception e)
                    // Not sucecesful, close & reopen
                    UDPClientA = null;




To be compliant with our company internal security requirements I am trying to change IP address configuration for “Office server Web Services” site configured with “All Unassigned”. Site IP configuration keeps resetting back to “All Unassigned”  if I change it to particular IP address.


Hi Friends

I have a web application hosted in a server and that connects to the SQL Server running on same machine.

Can I have client IP address (IP address of the computer from which the application is browsed) from SQL Server? The host_name() function does't work for me as application and SQL server are on the same machine.





Hi All,

Does anyone know if its possible to set up web synchronization with SQL Server 2008 and IIS7 to use just an IP address if we have an SSL bound to the IP address rather than a fully qualified doman name?




My client is concerned whether the SharePoint web analytics service stores the IP addresses of visitors to the SharePoint website.

Does it?



I create a web service with a web method. I need to detect the requester's ip address.

Request.ServerVariables["REMOTE_ADDR"] that works in web form does not seem to work in web service.

How can I detect the requester's ip address and in which of the web service should the codes be placed?

 after running:

Dim output As String = String.Empty
        Dim ipaddresslist As System.Net.IPAddress() = System.Net.Dns.GetHostEntry("").AddressList
        For x As Integer = 0 To ipaddresslist.GetUpperBound(0)
            output += ipaddresslist(x).ToString + vbNewLine

im wondering why are there so many ip addresses, and in my database i want to store a field called IP but exactly which of these ip addresses should i be storing?


how to assign a static ip address and dns adress by VB2008?

I search in MSDN,use system.net.ipaddress??or something else?

I'm a beginner.

Thank you.


Hi, I've ran in to a challenge with the standard Request for Proposals (RfP) template. Due to the number of proposals we use, the huge number of documents per proposal and a need to keep historic results I have had to add folders into the "request documents" library for each RfP to reduce the number of documents shown in the list when creating an RfP and confusing users.

All works fine, however when I create a new RfP, I see additional files in the "request documents" list instead of just the folder names. It looks like it is also readin gthe contents of each foldr, but not all files are listed. Versioning is turned on for major and minor releases as default.

As I am unable to view the details of the standard new RfP page I am struggling to work out how to fix this.


Any ideas?






Is there an easy to way to switch user context for creating web tests to perform actions against a user site?

For example, I'd like to edit the profile for a given list of users but need to "login" with each user account prior

to performing each test.  

We are looking for some guidance on the best way to unit test a web service project. We're using TFS Build (2005) to implement continuous integration, and have been successfully doing this for over a year for our winforms application code. But the web paradigm of web services has us a bit confused.

What is the overall best approach for web services? Does it look something like this:

Create solution with web service project and unit testing project Build solution with TFS Build Deploy web services to an instance of IIS Run unit tests against web servicesIf this is the preferred approach, our main questions would be:

How do steps 3 and 4 work? Where can this IIS be running? Any special requirements? How do we point our unit tests at this instance of IIS? If we're only running our unit tests against the web services themselves, what about the underlying code? Does this only get tested indirectly, through the testing of the web services?Thanks for any advice or input you may have on this matter.

Mike Best


How can I bind data to a string body in web service requests,

my string body looks like the following:

{"scheduleItemParticipant_Mini":{"IndividualID":51975,"NameEn":"Lama2 Karmi","SchedulingItemParticipantGroupID":"-2147252651","ScheduleItemID":-9007199254672597,"IsRequiresPerparation":true,"ShowInReport":true,"ScheduleItemParticipantGroup":null}}

Each time I execute this request using web performance test I need to change the 2 parameters: "IndividualID" and "NameEn".

Is there a way that I can automate this?

What are request plug-in and test plug-in? What's the differences?


I am having trouble creating a Load test with the correct test mix/step load pattern to meet the goals of the load test.  What I'm trying seems to be possible based on the options that are available but it's not behaving as expected.  Very simply, I want my load test to do as follows:


1.  Login to AUT(Initialize test, once per VU)

2.  Perform the core test mix test operations for the some determined time period.

3.  Logout of AUT(Terminate test, once per VU)


With the combination of configurations I've tried, I've been successful in getting the first 2 steps to run.  Where I have trouble is getting the Logout test to actually run.  What this results in is all of the users that logged in are left logged into the system after the load test terminates. From the little bit that I've read the issue is likely that once the test time elapses that it just ramps down and stops executing any tests.  I assumed since the Logout test is designated as the terminate test that it would always run it after the main tests in the test mix have finished.  

Does anyone have suggestions on how I should structure my Load test to accomplish the above goals?




I'm using VS 2010 Ultimate.

I wrote a C# unit test against our WCF service.  When I run the test locally via the IDE, the test runs and passes.  However, when I run using a build definition (where I have the build drop to my local machine from our TFS server) the test fails with the following error:

Test method APP_Test.Service.Test.UserServicesTest.GetUsersFromService threw exception:
System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'NTLM'. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.

Any ideas on what the issue is?

Note: Web services architecture is new to me so if you need more information in order to help, please let me know and I can provide it.

Thanks, Zc26



I created 21 webtest. I ran a load test with 50 users for 30 mins.

I got the below exception:

"LoadTestRequestUrlsExceededException    1    The maximum number of unique Web test request URLs to report on has been exceeded; performance data for other requests will not be available".

I read on forum that one can overcome this by increasing the value of Run Settings Property, Maximum Request URL's Reported but increasing this number might affect the values of performance counter.

My questions are:

1) Is this an AUT error that it is generating large number of URL's or it is the tool limitation?

2) Is the Exception coming because a greater no. of scripts(21 webtest) were run for a lesser period(30 mins)?

3)Can the exception be handled if I increase the test run time from 30 mins to 1 hour with same no. of 50 users?

Thanks in advance.






I have written an application that connects to a proprietry device.

I first noticed if you ping a network card that is not up, ping will not work for several minutes. I thought I would get the IP address of the network card, then check to see if the network card is "up."

My software is written in c# using the .NET 2.0 framework, and an end customer must use XP SP2 or greater.

Network cards that are not "up" don't return an IP address in c#, as far as I can tell. I would like to get the IP addresses assigned to all local network cards. I have three network cards on my PC, one is active and the other two are shown in the status icon window with a red x over two pc's, the tool tip states "a network cable is unplugged." Of the two network cards, one is a standard network card and the other is a USB to Ethernet network card.

How do I get the IP addressess and subnets of these network cards when they are not connected? The users will not have admin privilages, if that affects the solution.

Thanks in advance.


<< Previous      Next >>

Microsoft   |   Windows   |   Visual Studio   |   Sharepoint   |   Azure