命令行中的 Sharepoint 2010 stsadm createsite 命令给出错误“无法访问 Web 应用程序 url http://xxxx
我试图从 sharepoint2010 中的命令行运行 createsite stsadm 命令,但收到错误“无法访问 Web 应用程序 url http://...”。我搜索过网络和大多数博客/网站,都提到了 Visual Studio 代码中的此类错误。他们要求将 VS 中的目标更改为 64 位。但在这里我不是从 Visual Studio 运行,我只是尝试在命令行中运行 createsite stsadm 命令。
任何帮助将不胜感激..
谢谢
I was trying to run the createsite stsadm command from command line in sharepoint2010 and I am getting error that is "The web application url http:// cannot be reached....". I have searched the web and most of the blogs/sites referring to this same kind of error from the visual studio code. They have asked to change the target in VS to 64 bit. But here i am not running from the visual studio and i am only trying to run the createsite stsadm command in the commandline.
Any help will be appreciated..
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您运行的是 SharePoint 2010,则应考虑迁移到 PowerShell。为此,PowerShell 命令为:
Get-SPWebTemplate
$template = Get-SPWebTemplate "STS#0"
New-SPSite -Url "" -OwnerAlias "" -Template $template
If you're running SharePoint 2010, you should consider moving to PowerShell. The PowerShell command for this would be:
Get-SPWebTemplate
$template = Get-SPWebTemplate "STS#0"
New-SPSite -Url "" -OwnerAlias "" -Template $template