0

当我尝试部署到新的 Azure 实例时看到此错误。任何想法?

“/”应用程序中的服务器错误。

远程服务器返回错误:(403) Forbidden。

说明:执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。

异常详细信息:System.Net.WebException:远程服务器返回错误:(403)禁止。

源错误:

在执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常起源和位置的信息。

堆栈跟踪:


[WebException:远程服务器返回错误:(403)禁止。]
   Sitecore.Azure.Helpers.HttpGateway.GetHttpResponse(字符串 uri,字符串 httpMethod,字符串 versionXMsVersion,字符串正文)+1052

[WebException:REST 请求失败:
 请求:https://management.core.windows.net/d22cd83d-8a4f-4b90-a477-5cb4a9d7d67b
 服务器响应 =ForbiddenError服务器未能验证请求。验证证书是否有效并且与此订阅相关联。]

[AccessForbiddenException:联系 Azure 服务时出现问题,请在门户上查看您的证书]
   Sitecore.Azure.Helpers.HttpGateway.GetHttpResponse(字符串 uri,字符串 httpMethod,字符串 versionXMsVersion,字符串正文)+1793
   Sitecore.Azure.Managers.Providers.AzureHost.AzureHostProvider.GetSubscriptionProperties(String subscriptionID) +250
   Sitecore.Azure.UI.Files.sitecore.shell.Applications.Azure.AzureControls.Dialogs.NewDeploymentForm.RegisterDatasources(DeploymentType deploymentType) +1510
   Sitecore.Azure.UI.Files.sitecore.shell.Applications.Azure.AzureControls.Dialogs.NewDeploymentForm.OnLoad(EventArgs e) +700

[TargetInvocationException:调用的目标已引发异常。]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +76
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] 参数, CultureInfo 文化) +193
   System.Reflection.MethodBase.Invoke(Object obj, Object[] 参数) +35
   Sitecore.Web.UI.Sheer.ClientPage.OnLoad(EventArgs e) +337
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Page.ProcessRequestMain(布尔 includeStagesBeforeAsyncPoint,布尔 includeStagesAfterAsyncPoint)+3178

版本信息:Microsoft .NET Framework 版本:4.0.30319;ASP.NET 版本:4.0.30319.17929
4

1 回答 1

0

发生这种情况是因为我的机器与上传到 Azure 的机器之间的证书不匹配。我不得不再次使用 Sitecore Azure 安装向导重新生成它们。

于 2014-05-21T21:28:19.437 回答