Article ID: 968549 - Last Review: March 3, 2009 - Revision: 1.0

Errors accessing Visual Studio Team System Web Access site with an underscore ("_") character in the name

Expand all | Collapse all
Source: Microsoft Support

RAPID PUBLISHING

RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.

Action

You configure a server to host Visual Studio Team System Web Access. The site name contains an underscore character ("_"). You try to access the site using a web browser.

Result



You may see different errors depending on how you access the Team System Web Access site. For example:

1. When you go to the Team System Web Access site, Internet Explorer displays an error saying “Internet Explorer cannot display this web page”. The error details might indicate a possible DNS or authentication issue.

FAILS: Team System Web Access on http://server_name:8090, Team Foundation Server on http://server_name:8080

2. Connecting to Team System Web Access using the IP address, but using the server name to connect from Team System Web Access to Team Foundation Server causes the following error message to be displayed on the Team System Web Access login form: "The request failed with HTTP status 405: Method Not Allowed."

FAILS: Team System Web Access on http://<IP Address>:8090, Team Foundation Server on http://server_name:8080

3. If IP addresses are used instead of the server names when connecting to both Team System Web Access and Team Foundation Server, everything works fine. In some cases, using a browser other than Internet Explorer might work fine using server names.

WORKS FINE: Team System Web Access on http://<IP Address>:8090, Team Foundation Server on http://<IP Address>:8080 

Analyzing the network traffic between the browser and Team System Web Access website shows that the browser is being redirected continuously between login.aspx and index.aspx until it gives up. The same behavior can also be observed by looking at the Team System Web Access log files, which look similar to:

... Creating TeamFoundation Server...
... TeamFoundation Server Successfully Created.
... Creating WorkItemStore...
... WorkItemStore Successfully created.
... Response is redirected to /index.aspx?pname=Project1.
... Session Started
... Response is redirected to /UI/Pages/Login.aspx?redirect=%2findex.aspx%3fpname%3dProject1.
... Session Started
... Creating TeamFoundation Server..

Cause



Underscore ("_") is not a valid character for URLs according to the RFCs (this is why you cannot register a domain name with an underscore).

When you use Internet Explorer against a web site that uses session cookies (such as Team System Web Access), a valid session cannot be established due to a security feature in Internet Explorer cookie handler if the server URL contains underscore characters.

Resolution



Ideally, don’t use underscore characters in your server names. This issue is not specific to Team System Web Access, and you might end up with similar issues with different web applications that depend on session states.

For a quick workaround, you can connect to Team System Web Access using the IP address. You may also want to change the default Team Foundation Server entry in the Team System Web Access web.config to use the IP address of your Team Foundation Server, or "localhost" if Team System Web Access and Team Foundation Server are on the same machine.

For a longer term solution you should consider:
  • Changing the name of your server to something that doesn't contain an underscore.
  • Creating a DNS alias for your server that resolves to the same IP address, and use that name to connect to Team System Web Access and Team Foundation Server.

More Information



For more information on renaming a Team Foundation Server, please see:

How to: Rename an Application-Tier Server
http://msdn.microsoft.com/en-us/library/ms252469.aspx (http://msdn.microsoft.com/en-us/library/ms252469.aspx)

How to: Rename a Data-Tier Server
http://msdn.microsoft.com/en-us/library/ms253106.aspx (http://msdn.microsoft.com/en-us/library/ms253106.aspx)

DISCLAIMER

MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE (THE “MATERIALS”) FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.

APPLIES TO
  • Microsoft Visual Studio 2005 Team Foundation Server
  • Microsoft Visual Studio 2005 Team Foundation Server Service Pack 1
  • Microsoft Visual Studio Team System 2008 Team Foundation Server
  • Microsoft Visual Studio Team System 2008 Team Foundation Server Service Pack 1
Keywords: 
kbnomt kbrapidpub KB968549