Webmatrix 2模板创建失败

时间:2012-10-12 08:56:51

标签: webmatrix webmatrix-2

我在使用最新版本的WebMatrix从模板创建网站时遇到问题。我已经卸载它并重试了几次重启我的计算机,但仍然无法创建模板。我试图创建ASP.NET,Node.js模板,导致相同的错误(“方法失败,意外错误代码50”)。谷歌搜索没有帮助。

日志文件中的详细信息为:

EXCEPTION:System.InvalidOperationException:方法失败,出现意外错误代码50。    at System.Security.AccessControl.NativeObjectSecurity.CreateInternal(ResourceType resourceType,Boolean isContainer,String name,SafeHandle handle,AccessControlSections includeSections,Boolean createByName,ExceptionFromErrorCode exceptionFromErrorCode,Object exceptionContext)    在Microsoft.Web.Deployment.FileSystemSecurityEx..ctor(Boolean isContainer,String name,AccessControlSections includeSections,Boolean isDirectory)    在Microsoft.Web.Deployment.SetAclProvider.Add(DeploymentObject source,Boolean whatIf)    在Microsoft.Web.Deployment.DeploymentObject.Add(DeploymentObject源,DeploymentSyncContext syncContext)    在Microsoft.Web.Deployment.DeploymentSyncContext.HandleAdd(DeploymentObject destObject,DeploymentObject sourceObject)    在Microsoft.Web.Deployment.DeploymentSyncContext.HandleUpdate(DeploymentObject destObject,DeploymentObject sourceObject)    在Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest,DeploymentObject source)    在Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest,DeploymentObject source)    在Microsoft.Web.Deployment.DeploymentSyncContext.ProcessSync(DeploymentObject destinationObject,DeploymentObject sourceObject)    在Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(DeploymentObject destObject,DeploymentSyncOptions syncOptions,PayloadTable payloadTable,ContentRootTable contentRootTable,Nullable`1 syncPassId)    在Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentProviderOptions providerOptions,DeploymentBaseOptions baseOptions,DeploymentSyncOptions syncOptions)    at Microsoft.Web.Deployment.DeploymentObject.SyncTo(String provider,String path,DeploymentBaseOptions baseOptions,DeploymentSyncOptions syncOptions)    在Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentWellKnownProvider提供程序,String路径,DeploymentBaseOptions baseOptions,DeploymentSyncOptions syncOptions)    在Microsoft.Web.PlatformInstaller.MSDeployProxy.Install(InstallerContext context,RemoteCredentials remoteCredentials)

有什么想法吗?

2 个答案:

答案 0 :(得分:0)

决定不使用WebMatrix。根据我对Justin Beckwith的评论,在假设错误发生后,我坚持使用VS2012:

  1. 我的文档文件夹托管在文件共享位置
  2. 或与VS2012发生冲突。

答案 1 :(得分:0)

在WebMatrix快速入门中,转到选项 - >站点并将您的默认站点位置更改为本地文件路径。