【发布时间】:2011-01-16 02:38:17
【问题描述】:
我正在尝试基于 Visual Studio Extensions for Windows Sharepoint Services 1.3(2009 年 3 月 CTP)部署/打包 Visual Studio 项目,但出现以下错误!
HTTP 请求未经客户端身份验证方案授权 '谈判'。从服务器收到的身份验证标头是 '协商,NTLM'
我可以通过浏览器访问http://127.0.0.1:1378/SpService.svc; VseWss 服务在标识为网络服务的 Sharepoint Central Administration v3 应用程序池下运行。 Sharepoint Services 使用默认设置安装。网络服务是本地管理员组的成员。
这台机器是 Windows 2003 Standard Editon SP2 并且是域的一部分,我使用域用户登录;我的用户是机器的本地管理员组的成员,并且我使用此登录名安装了 Sharepoint 服务,这使我成为几乎所有必需的 Sharepoint 安全组(农场管理员;网站集管理员等)的成员
我已经尝试过 stackoverflow 和 http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment 论坛,并且几乎尝试了这两个不同帖子中建议的所有内容;但到目前为止都没有奏效!
VSeWSS1.3.log 有以下条目
2010/02/12 16:49:01 Error
Error: System.ServiceModel.Security.MessageSecurityException
System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate,NTLM'. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
--- End of inner exception stack trace ---
Server stack trace:
at System.ServiceModel.Channels.HttpChannelUtilities.ValidateAuthentication(HttpWebRequest request, HttpWebResponse response, WebException responseException, HttpChannelFactory factory)
at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory, WebException responseException)
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.SharePoint.Tools.SPServiceReference.ISPService.GetWeb(String url)
at Microsoft.SharePoint.Tools.SharePointSolutions.SolutionDeployer.ValidateProjectDeployURL()
at Microsoft.SharePoint.Tools.SharePointSolutions.SolutionDeployer.Deploy()
【问题讨论】:
-
之前访问127.0.0.1:1378/SpService.svc时浏览器一直提示输入登录名/密码;然后我禁用了 LSA 的环回检查 (support.microsoft.com/kb/896861),服务开始在浏览器中正常打开!
标签: visual-studio-2008 sharepoint vsewss