0

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

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

例外:System.InvalidOperationException:方法失败,出现意外错误代码 50。在 System.Security.AccessControl.NativeObjectSecurity.CreateInternal(ResourceType resourceType,布尔 isContainer,字符串名称,SafeHandle 句柄,AccessControlSections includeSections,布尔 createByName,ExceptionFromErrorCode exceptionFromErrorCode,对象 exceptionContext) Microsoft.Web.Deployment.SetAclProvider.Add(DeploymentObject source, Boolean whatIf) 的 Microsoft.Web.Deployment.SetAclProvider.Add(DeploymentObject source, Boolean whatIf) 的 Microsoft.Web.Deployment.FileSystemSecurityEx..ctor(Boolean isContainer, String name, AccessControlSections includeSections, Boolean isDirectory) (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) 在 Microsoft.Web.Deployment.DeploymentObject.SyncTo(String provider, String path, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions) 在 Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentWellKnownProvider provider, String path, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions) 在 Microsoft.Web.PlatformInstaller.MSDeployProxy.Install(InstallerContext context, RemoteCredentials remoteCredentials)Microsoft.Web.PlatformInstaller.MSDeployProxy.Install(InstallerContext context, RemoteCredentials remoteCredentials) 上的 DeploymentBaseOptions baseOptions、DeploymentSyncOptions syncOptions)Microsoft.Web.PlatformInstaller.MSDeployProxy.Install(InstallerContext context, RemoteCredentials remoteCredentials) 上的 DeploymentBaseOptions baseOptions、DeploymentSyncOptions syncOptions)

有任何想法吗?

4

2 回答 2

0

决定不使用 WebMatrix。根据我对 Justin Beckwith 的评论,在假设错误归结为以下原因后,我坚持使用 VS2012:

  1. 我的文档文件夹托管在某处的文件共享上
  2. 或者与VS2012冲突。
于 2013-08-02T10:05:36.807 回答
0

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

于 2014-10-27T19:47:27.620 回答