Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: You are prompted for credentials when you click a user name on an ASP.NET 2.0-based SharePoint application if FBA is used


Symptoms

Consider the following scenario:
  • You use forms-based authentication (FBA) in a Microsoft ASP.NET 2.0-based Microsoft SharePoint application.
  • You log on to the SharePoint site, and then you click a user name on a page.

    For example, you click a user name under the Modified By field in a document library.

In this scenario, you are prompted unexpectedly for credentials.�

If you enter your credentials, you are repeatedly prompted to enter them again. Additionally, a blank page appears after you enter your credentials three times.

Note Internet Information Services (IIS) generates a 401 HTTP status code for this issue.

↑ Back to the top


Cause

This issue occurs because the FBA module of ASP.NET 2.0 uses the ReturnUrl query string parameter for authentication. However, the SharePoint site also uses the ReturnUrl query string parameter.

↑ Back to the top


Resolution

To resolve this issue, apply the following hotfix. After you apply the hotfix, configure the following settings in the Web.config file of the SharePoint application:
<appSettings> <add key="aspnet:FormsAuthReturnUrlVar" value="FormsAuthReturnUrl"/> </appSettings>

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Service Pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft website:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

To apply this hotfix, you must have the Microsoft .NET Framework 3.5.1 installed on one of the following operating systems:
  • Windows Server 2008 Service Pack 2 (SP2)
  • Windows Vista Service Pack 2 (SP2)
  • Windows 7
  • Windows 7 Service Pack 1 (SP1)
  • Windows Server 2008 R2
  • Windows Server 2008 R2 Service Pack 1 (SP1)

Restart requirement

You do not have to restart the computer after you apply this hotfix.

File information

The version of this has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

For all supported x86-based versions of Windows 7
File nameFile versionFile sizeDateTimePlatform
Aspnet_wp.exe2.0.50727.567130,54414-May-201100:32x86
Webengine.dll2.0.50727.5671436,04814-May-201100:32x86
System.web.dll2.0.50727.56715,251,07214-May-201100:32x86
For all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
File nameFile versionFile sizeDateTimePlatform
Aspnet_wp.exe2.0.50727.567142,32014-May-201100:28x64
Webengine.dll2.0.50727.5671745,29614-May-201100:28x64
System.web.dll2.0.50727.56715,259,26414-May-201100:28x64
Aspnet_wp.exe2.0.50727.567130,54414-May-201100:32x86
Webengine.dll2.0.50727.5671436,04814-May-201100:32x86
System.web.dll2.0.50727.56715,251,07214-May-201100:32x86
For all supported IA-64based versions of Windows Server 2008 R2
File nameFile versionFile sizeDateTimePlatform
Aspnet_wp.exe2.0.50727.567182,25614-May-201100:23IA-64
Webengine.dll2.0.50727.56711,231,18414-May-201100:23IA-64
System.web.dll2.0.50727.56714,780,03214-May-201100:23IA-64
Aspnet_wp.exe2.0.50727.567130,54414-May-201100:32x86
Webengine.dll2.0.50727.5671436,04814-May-201100:32x86
System.web.dll2.0.50727.56715,251,07214-May-201100:32x86
For all supported x86-based versions of Windows Server 2008 and of Windows Vista
File nameFile versionFile sizeDateTimePlatform
Aspnet_wp.exe2.0.50727.567030,54413-May-201110:54x86
Webengine.dll2.0.50727.5670436,04813-May-201110:55x86
System.web.dll2.0.50727.56705,251,07213-May-201110:55x86
For all supported x64-based versions of Windows Server 2008 and of Windows Vista
File nameFile versionFile sizeDateTimePlatform
Aspnet_wp.exe2.0.50727.567042,32013-May-201110:52x64
Webengine.dll2.0.50727.5670745,29613-May-201110:53x64
System.web.dll2.0.50727.56705,259,26413-May-201110:53x64
Aspnet_wp.exe2.0.50727.567030,54413-May-201110:54x86
Webengine.dll2.0.50727.5670436,04813-May-201110:55x86
System.web.dll2.0.50727.56705,251,07213-May-201110:55x86
For all supported IA-64based versions of Windows Server 2008
File nameFile versionFile sizeDateTimePlatform
Aspnet_wp.exe2.0.50727.567082,25613-May-201111:20IA-64
Webengine.dll2.0.50727.56701,231,18413-May-201111:20IA-64
System.web.dll2.0.50727.56704,780,03213-May-201111:20IA-64
Aspnet_wp.exe2.0.50727.567030,54413-May-201110:54x86
Webengine.dll2.0.50727.5670436,04813-May-201110:55x86
System.web.dll2.0.50727.56705,251,07213-May-201110:55x86


↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More information

For more information about forms authentication in ASP.NET 2.0, visit the following MSDN website:

For more information about the HTTP status codes in IIS 7.0, click the following article number to view the article in the Microsoft Knowledge Base:
943891 The HTTP status codes in IIS 7.0

↑ Back to the top


Keywords: KB2531385, kbautohotfix, kbsurveynew, kbexpertiseadvanced, kbfix, kbhotfixserver, kbqfe

↑ Back to the top

Article Info
Article ID : 2531385
Revision : 4
Created on : 11/4/2011
Published on : 11/4/2011
Exists online : False
Views : 126