积极答复者
sharepoint fundation 2010 自定义身份验证发布后出现错误

问题
-
hi,大家好。请教了,我参照以下链接做了一样的身份验证试验,但是发布完成后登陆出现错误,请帮助。
http://msdn.microsoft.com/zh-CN/library/gg481769.aspx
错误信息如下:
“/”应用程序中的服务器错误。
The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (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.
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.ServiceModel.FaultException: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (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.
源错误:执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:[FaultException: The server was unable to process the request due to an internal error. For more information
about the error, either turn on IncludeExceptionDetailInFaults (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.] Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.ReadResponse(Message response) +1161205 Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst, Re
questSecurityTokenResponse& rstr) +73 Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst) +36 Microsoft.SharePoint.SPSecurityContext.SecurityTokenForContext(Uri context, Boolean bearerToken, Se
curityToken onBehalfOf, Secur
ityToken actAs, SecurityToken delegateTo) +26405825 Microsoft.SharePoint.SPSecurityContext.SecurityTokenForFormsAuthentication(Uri context, S
tring membershipProviderName, S
tring roleProviderName, String username, String password) +26406332 Microsoft.SharePoint.IdentityModel.Pages.FormsSignInPage.GetSecurityToken(
Login formsSignInControl) +188 Microsoft.SharePoint.IdentityModel.Pages.FormsSignInPage.AuthenticateEventHandler(Object sender, Au
thenticateEventArgs formAuthenticateEvent) +123 System.Web.UI.WebControls.Login.AttemptLogin() +152 System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +124 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, Strin
g eventArgument) +29 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boole
an includeStagesAfterAsyncPoint) +2981
版本信息: Microsoft .NET Framework 版本:2.0.50727.5456; ASP.NET 版本:2.0.50727.5456
- 已编辑 luanlz 2012年5月30日 6:10
答案
-
Hi luanlz,
如果代码上没有什么问题,有可能是你在配置的问题。这里有两个连接,一个都是配置文件的问题,最终导致相同的错误。你可以参考一下。
Thanks,
Jack
- 已标记为答案 luanlz 2012年6月12日 7:47
全部回复
-
Hi luanlz,
你去日志文件下面,看一下详细的错误。(C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS)不知道你有没有配置 配置数据库来储存用户凭据,你检查一下这一步,你有没有做。
你可以参考一些博文来做,可能会好一点。
http://www.cnblogs.com/ww3128/archive/2011/01/23/1942299.html
Thanks,
Jack
-
Hi luanlz,
你的错误日志可以贴出来吗? 这样会更加有利于别人去分析问题。你可以去把它的代码下载下来,与你的对比一下。这样可能会更好一点。
http://code.msdn.microsoft.com/odcsp14ta/Release/ProjectReleases.aspx?ReleaseId=5268
Thanks,
Jack
-
Hi luanlz,
如果代码上没有什么问题,有可能是你在配置的问题。这里有两个连接,一个都是配置文件的问题,最终导致相同的错误。你可以参考一下。
Thanks,
Jack
- 已标记为答案 luanlz 2012年6月12日 7:47