eMarketer75
asked on
Sharepoint 2010 with Form Base Authentication
I am having a hard time setting up a sharepoint 2010 site with FBA. I follow the instruction from the following site, as well as a few others and I keep getting a Server Error in '/' Application. I get the error after I sign in with the FBA user.
http://donalconlon.wordpress.com/2010/02/23/configuring-forms-base-authentication-for-sharepoint-2010-using-iis7/
http://donalconlon.wordpress.com/2010/02/23/configuring-forms-base-authentication-for-sharepoint-2010-using-iis7/
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I am also seeing the follow error in the event logs.
ASKER
Log Name: Application
Source: Microsoft-SharePoint Products-SharePoint Foundation
Date: 6/26/2012 2:19:19 PM
Event ID: 8306
Task Category: Claims Authentication
Level: Error
Keywords:
User: EMARKETER\sharepoint
Computer: nycsp01.eMarketer.local
Description:
An exception occurred when trying to issue security token: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFa ults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs..
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-SharePoint Products-SharePoint Foundation" Guid="{6FB7E0CD-52E7-47DD- 997A-24156 3931FC2}" />
<EventID>8306</EventID>
<Version>14</Version>
<Level>2</Level>
<Task>47</Task>
<Opcode>0</Opcode>
<Keywords>0x40000000000000 00</Keywor ds>
<TimeCreated SystemTime="2012-06-26T18: 19:19.3687 28500Z" />
<EventRecordID>906828</Eve ntRecordID >
<Correlation ActivityID="{FC6B464C-05F6 -4347-9BAA -8D3FE93E4 B87}" />
<Execution ProcessID="2380" ThreadID="9168" />
<Channel>Application</Chan nel>
<Computer>nycsp01.eMarkete r.local</C omputer>
<Security UserID="S-1-5-21-303196736 2-41935589 86-3456611 318-10683" />
</System>
<EventData>
<Data Name="string0">The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFa ults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.</Data>
</EventData>
</Event>
Source: Microsoft-SharePoint Products-SharePoint Foundation
Date: 6/26/2012 2:19:19 PM
Event ID: 8306
Task Category: Claims Authentication
Level: Error
Keywords:
User: EMARKETER\sharepoint
Computer: nycsp01.eMarketer.local
Description:
An exception occurred when trying to issue security token: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFa
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-SharePoint
<EventID>8306</EventID>
<Version>14</Version>
<Level>2</Level>
<Task>47</Task>
<Opcode>0</Opcode>
<Keywords>0x40000000000000
<TimeCreated SystemTime="2012-06-26T18:
<EventRecordID>906828</Eve
<Correlation ActivityID="{FC6B464C-05F6
<Execution ProcessID="2380" ThreadID="9168" />
<Channel>Application</Chan
<Computer>nycsp01.eMarkete
<Security UserID="S-1-5-21-303196736
</System>
<EventData>
<Data Name="string0">The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFa
</EventData>
</Event>
ASKER
Log Name: Application
Source: ASP.NET 2.0.50727.0
Date: 6/26/2012 2:21:52 PM
Event ID: 1309
Task Category: Web Event
Level: Warning
Keywords: Classic
User: N/A
Computer: nycsp01.eMarketer.local
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 6/26/2012 2:21:52 PM
Event time (UTC): 6/26/2012 6:21:52 PM
Event ID: b56e15469e584f029be095b5f5 2a5d8f
Event sequence: 4
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1651372889/ROOT- 2-12985208 5049974565
Trust level: WSS_Minimal
Application Virtual Path: /
Application Path: C:\inetpub\wwwroot\wss\Vir tualDirect ories\2120 7\
Machine name: NYCSP01
Process information:
Process ID: 2380
Process name: w3wp.exe
Account name: EMARKETER\sharepoint
Exception information:
Exception type: FaultException
Exception message: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFa ults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.
Request information:
Request URL: http://fba.emarketer.com/_forms/default.aspx?ReturnUrl=An unhandled exception has occurred.f_layoutsAn unhandled exception has occurred.fAuthenticate.asp x6/26/2012 2:21:52 PMfSource6/26/2012 2:21:52 PMd%252F&Source=%2F
Request path: /_forms/default.aspx
User host address: 127.0.0.1
User:
Is authenticated: False
Authentication Type:
Thread account name: EMARKETER\sharepoint
Thread information:
Thread ID: 17
Thread account name: EMARKETER\sharepoint
Is impersonating: False
Stack trace: at Microsoft.IdentityModel.Pr otocols.WS Trust.WSTr ustChannel .ReadRespo nse(Messag e response)
at Microsoft.IdentityModel.Pr otocols.WS Trust.WSTr ustChannel .Issue(Req uestSecuri tyToken rst, RequestSecurityTokenRespon se& rstr)
at Microsoft.IdentityModel.Pr otocols.WS Trust.WSTr ustChannel .Issue(Req uestSecuri tyToken rst)
at Microsoft.SharePoint.SPSec urityConte xt.Securit yTokenForC ontext(Uri context, Boolean bearerToken, SecurityToken onBehalfOf, SecurityToken actAs, SecurityToken delegateTo)
at Microsoft.SharePoint.SPSec urityConte xt.Securit yTokenForF ormsAuthen tication(U ri context, String membershipProviderName, String roleProviderName, String username, String password, Boolean isPersistent)
at Microsoft.SharePoint.Ident ityModel.P ages.Forms SignInPage .GetSecuri tyToken(Lo gin formsSignInControl)
at Microsoft.SharePoint.Ident ityModel.P ages.Forms SignInPage .Authentic ateEventHa ndler(Obje ct sender, AuthenticateEventArgs formAuthenticateEvent)
at System.Web.UI.WebControls. Login.Atte mptLogin()
at System.Web.UI.WebControls. Login.OnBu bbleEvent( Object source, EventArgs e)
at System.Web.UI.Control.Rais eBubbleEve nt(Object source, EventArgs args)
at System.Web.UI.Page.RaisePo stBackEven t(IPostBac kEventHand ler sourceControl, String eventArgument)
at System.Web.UI.Page.Process RequestMai n(Boolean includeStagesBeforeAsyncPo int, Boolean includeStagesAfterAsyncPoi nt)
Custom event details:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="ASP.NET 2.0.50727.0" />
<EventID Qualifiers="32768">1309</E ventID>
<Level>3</Level>
<Task>3</Task>
<Keywords>0x80000000000000 </Keywords >
<TimeCreated SystemTime="2012-06-26T18: 21:52.0000 00000Z" />
<EventRecordID>906830</Eve ntRecordID >
<Channel>Application</Chan nel>
<Computer>nycsp01.eMarkete r.local</C omputer>
<Security />
</System>
<EventData>
<Data>3005</Data>
<Data>An unhandled exception has occurred.</Data>
<Data>6/26/2012 2:21:52 PM</Data>
<Data>6/26/2012 6:21:52 PM</Data>
<Data>b56e15469e584f029be0 95b5f52a5d 8f</Data>
<Data>4</Data>
<Data>1</Data>
<Data>0</Data>
<Data>/LM/W3SVC/1651372889 /ROOT-2-12 9852085049 974565</Da ta>
<Data>WSS_Minimal</Data>
<Data>/</Data>
<Data>C:\inetpub\wwwroot\w ss\Virtual Directorie s\21207\</ Data>
<Data>NYCSP01</Data>
<Data>
</Data>
<Data>2380</Data>
<Data>w3wp.exe</Data>
<Data>EMARKETER\sharepoint </Data>
<Data>FaultException</Data >
<Data>The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFa ults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.</Data>
<Data>http://fba.emarketer.com/_forms/default.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252F&Source=%2F</Data>
<Data>/_forms/default.aspx </Data>
<Data>127.0.0.1</Data>
<Data>
</Data>
<Data>False</Data>
<Data>
</Data>
<Data>EMARKETER\sharepoint </Data>
<Data>17</Data>
<Data>EMARKETER\sharepoint </Data>
<Data>False</Data>
<Data> at Microsoft.IdentityModel.Pr otocols.WS Trust.WSTr ustChannel .ReadRespo nse(Messag e response)
at Microsoft.IdentityModel.Pr otocols.WS Trust.WSTr ustChannel .Issue(Req uestSecuri tyToken rst, RequestSecurityTokenRespon se& rstr)
at Microsoft.IdentityModel.Pr otocols.WS Trust.WSTr ustChannel .Issue(Req uestSecuri tyToken rst)
at Microsoft.SharePoint.SPSec urityConte xt.Securit yTokenForC ontext(Uri context, Boolean bearerToken, SecurityToken onBehalfOf, SecurityToken actAs, SecurityToken delegateTo)
at Microsoft.SharePoint.SPSec urityConte xt.Securit yTokenForF ormsAuthen tication(U ri context, String membershipProviderName, String roleProviderName, String username, String password, Boolean isPersistent)
at Microsoft.SharePoint.Ident ityModel.P ages.Forms SignInPage .GetSecuri tyToken(Lo gin formsSignInControl)
at Microsoft.SharePoint.Ident ityModel.P ages.Forms SignInPage .Authentic ateEventHa ndler(Obje ct sender, AuthenticateEventArgs formAuthenticateEvent)
at System.Web.UI.WebControls. Login.Atte mptLogin()
at System.Web.UI.WebControls. Login.OnBu bbleEvent( Object source, EventArgs e)
at System.Web.UI.Control.Rais eBubbleEve nt(Object source, EventArgs args)
at System.Web.UI.Page.RaisePo stBackEven t(IPostBac kEventHand ler sourceControl, String eventArgument)
at System.Web.UI.Page.Process RequestMai n(Boolean includeStagesBeforeAsyncPo int, Boolean includeStagesAfterAsyncPoi nt)
</Data>
</EventData>
</Event>
Source: ASP.NET 2.0.50727.0
Date: 6/26/2012 2:21:52 PM
Event ID: 1309
Task Category: Web Event
Level: Warning
Keywords: Classic
User: N/A
Computer: nycsp01.eMarketer.local
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 6/26/2012 2:21:52 PM
Event time (UTC): 6/26/2012 6:21:52 PM
Event ID: b56e15469e584f029be095b5f5
Event sequence: 4
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1651372889/ROOT-
Trust level: WSS_Minimal
Application Virtual Path: /
Application Path: C:\inetpub\wwwroot\wss\Vir
Machine name: NYCSP01
Process information:
Process ID: 2380
Process name: w3wp.exe
Account name: EMARKETER\sharepoint
Exception information:
Exception type: FaultException
Exception message: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFa
Request information:
Request URL: http://fba.emarketer.com/_forms/default.aspx?ReturnUrl=An unhandled exception has occurred.f_layoutsAn unhandled exception has occurred.fAuthenticate.asp
Request path: /_forms/default.aspx
User host address: 127.0.0.1
User:
Is authenticated: False
Authentication Type:
Thread account name: EMARKETER\sharepoint
Thread information:
Thread ID: 17
Thread account name: EMARKETER\sharepoint
Is impersonating: False
Stack trace: at Microsoft.IdentityModel.Pr
at Microsoft.IdentityModel.Pr
at Microsoft.IdentityModel.Pr
at Microsoft.SharePoint.SPSec
at Microsoft.SharePoint.SPSec
at Microsoft.SharePoint.Ident
at Microsoft.SharePoint.Ident
at System.Web.UI.WebControls.
at System.Web.UI.WebControls.
at System.Web.UI.Control.Rais
at System.Web.UI.Page.RaisePo
at System.Web.UI.Page.Process
Custom event details:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="ASP.NET 2.0.50727.0" />
<EventID Qualifiers="32768">1309</E
<Level>3</Level>
<Task>3</Task>
<Keywords>0x80000000000000
<TimeCreated SystemTime="2012-06-26T18:
<EventRecordID>906830</Eve
<Channel>Application</Chan
<Computer>nycsp01.eMarkete
<Security />
</System>
<EventData>
<Data>3005</Data>
<Data>An unhandled exception has occurred.</Data>
<Data>6/26/2012 2:21:52 PM</Data>
<Data>6/26/2012 6:21:52 PM</Data>
<Data>b56e15469e584f029be0
<Data>4</Data>
<Data>1</Data>
<Data>0</Data>
<Data>/LM/W3SVC/1651372889
<Data>WSS_Minimal</Data>
<Data>/</Data>
<Data>C:\inetpub\wwwroot\w
<Data>NYCSP01</Data>
<Data>
</Data>
<Data>2380</Data>
<Data>w3wp.exe</Data>
<Data>EMARKETER\sharepoint
<Data>FaultException</Data
<Data>The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFa
<Data>http://fba.emarketer.com/_forms/default.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252F&Source=%2F</Data>
<Data>/_forms/default.aspx
<Data>127.0.0.1</Data>
<Data>
</Data>
<Data>False</Data>
<Data>
</Data>
<Data>EMARKETER\sharepoint
<Data>17</Data>
<Data>EMARKETER\sharepoint
<Data>False</Data>
<Data> at Microsoft.IdentityModel.Pr
at Microsoft.IdentityModel.Pr
at Microsoft.IdentityModel.Pr
at Microsoft.SharePoint.SPSec
at Microsoft.SharePoint.SPSec
at Microsoft.SharePoint.Ident
at Microsoft.SharePoint.Ident
at System.Web.UI.WebControls.
at System.Web.UI.WebControls.
at System.Web.UI.Control.Rais
at System.Web.UI.Page.RaisePo
at System.Web.UI.Page.Process
</Data>
</EventData>
</Event>
ASKER
Log Name: Application
Source: Microsoft-SharePoint Products-SharePoint Foundation
Date: 6/26/2012 2:19:19 PM
Event ID: 6143
Task Category: General
Level: Critical
Keywords:
User: EMARKETER\sharepoint
Computer: nycsp01.eMarketer.local
Description:
Cannot get Role Manager with name SQLRoleManager. The role manager for this process was not properly configured. You must configure the role manager in the .config file for every SharePoint process.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-SharePoint Products-SharePoint Foundation" Guid="{6FB7E0CD-52E7-47DD- 997A-24156 3931FC2}" />
<EventID>6143</EventID>
<Version>14</Version>
<Level>1</Level>
<Task>7</Task>
<Opcode>0</Opcode>
<Keywords>0x40000000000000 00</Keywor ds>
<TimeCreated SystemTime="2012-06-26T18: 19:19.3531 03100Z" />
<EventRecordID>906827</Eve ntRecordID >
<Correlation />
<Execution ProcessID="5604" ThreadID="7172" />
<Channel>Application</Chan nel>
<Computer>nycsp01.eMarkete r.local</C omputer>
<Security UserID="S-1-5-21-303196736 2-41935589 86-3456611 318-10683" />
</System>
<EventData>
<Data Name="string0">Cannot get Role Manager with name SQLRoleManager. The role manager for this process was not properly configured. You must configure the role manager in the .config file for every SharePoint process.</Data>
</EventData>
</Event>
Source: Microsoft-SharePoint Products-SharePoint Foundation
Date: 6/26/2012 2:19:19 PM
Event ID: 6143
Task Category: General
Level: Critical
Keywords:
User: EMARKETER\sharepoint
Computer: nycsp01.eMarketer.local
Description:
Cannot get Role Manager with name SQLRoleManager. The role manager for this process was not properly configured. You must configure the role manager in the .config file for every SharePoint process.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-SharePoint
<EventID>6143</EventID>
<Version>14</Version>
<Level>1</Level>
<Task>7</Task>
<Opcode>0</Opcode>
<Keywords>0x40000000000000
<TimeCreated SystemTime="2012-06-26T18:
<EventRecordID>906827</Eve
<Correlation />
<Execution ProcessID="5604" ThreadID="7172" />
<Channel>Application</Chan
<Computer>nycsp01.eMarkete
<Security UserID="S-1-5-21-303196736
</System>
<EventData>
<Data Name="string0">Cannot get Role Manager with name SQLRoleManager. The role manager for this process was not properly configured. You must configure the role manager in the .config file for every SharePoint process.</Data>
</EventData>
</Event>
Hi,
if you have used exactly the configuration steps from the above link, then your role manager should be named "FBARoleProvider".
Have you created the FBA entries in all three web applications:
- Central Admin
- Secure Store Service
- Your final web app
Perhaps you might attach the three web.config files from the above mentioned three web applications (please mask all sensitive informations like passwords etc).
Thanks and HTH
Rainer
if you have used exactly the configuration steps from the above link, then your role manager should be named "FBARoleProvider".
Have you created the FBA entries in all three web applications:
- Central Admin
- Secure Store Service
- Your final web app
Perhaps you might attach the three web.config files from the above mentioned three web applications (please mask all sensitive informations like passwords etc).
Thanks and HTH
Rainer
ASKER
I used a different Role Provider name, but they are all the same.
Its working now, after i did a iisreset. Every time I try to set this up I have problems. Is there an easier way to setup FBA?
Its working now, after i did a iisreset. Every time I try to set this up I have problems. Is there an easier way to setup FBA?
ASKER
--------------------------
The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFa
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ServiceModel.FaultE
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[FaultException: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFa
Microsoft.IdentityModel.Pr
Microsoft.IdentityModel.Pr
Microsoft.IdentityModel.Pr
Microsoft.SharePoint.SPSec
Microsoft.SharePoint.SPSec
Microsoft.SharePoint.Ident
Microsoft.SharePoint.Ident
System.Web.UI.WebControls.
System.Web.UI.WebControls.
System.Web.UI.Control.Rais
System.Web.UI.Page.RaisePo
System.Web.UI.Page.Process