我想基于Visual Studio扩展为Windows SharePoint Services 1.3(2009年3月CTP)部署/包Visual Studio项目,但得到以下错误!

  

在HTTP请求是未经授权的客户端认证方案   '谈判'。从服务器接收到的认证报头是   '协商,NTLM'

我能够访问 http://127.0.0.1:1378/SpService.svc通过浏览器; VSeWSS的服务是在SharePoint管理V3中心应用程序池的身份是网络服务运行。 SharePoint Services是安装使用默认设置。网络服务是本地管理员组的成员。

本机是Windows 2003的标准的Editon SP2和是域的一部分,并且我与域用户登录;我的用户是计算机的本地管理员组的成员,我安装SharePoint服务此登录这让我几乎所有的成员需要SharePoint安全组(场管理员,网站集管理员等)

我试图计算器和 http://social.msdn.microsoft。 COM /论坛/ 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()
有帮助吗?

解决方案 2

我从域去除的机器;卸载VSeWSS的,SharePoint和IIS。从域中删除本机后重新安装IIS。安装SharePoint和VSeWSS的后;事情开始做工精细!

其他提示

您也可以尝试使用计算机的实际主机名而不是环回地址(127.0.0.1)。如果您使用localhost或回送地址,你可能将无法使用Kerberos,这将导致某些类型的委派方案失败登录。

什么可能发生的情况是,您的浏览器可能会“回落”默默地使用NTLM和其他程序,如VS的部署行为并不这样 - 他们往往只使用Kerberos。因此,尝试使用主机名,而不是回送的。如果不工作,你可能有你的机器上使用Kerberos的问题。如果你感觉真的很难核心,你可以在Kerberos的阅读并且下载的Wireshark的副本,然后寻找“KRB5”类的错误信息,看看到底什么是失败的,但是这是一个相当大的时间投资。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top