gpt4 book ai didi

asp.net-mvc - Orchard CMS "Microsoft Azure Media Storage"模块无法连接到新的存储帐户

转载 作者:行者123 更新时间:2023-12-03 02:33:12 25 4
gpt4 key购买 nike

我想将我的 Orchard CMS v.1.10.1.0 应用程序连接到 Azure Blob 存储帐户。多年来我一直遵循相同的流程,following this documentation 。这个过程对我来说已经停止了。我的应用程序不会连接到新的 Azure 存储帐户 - 无论是 StorageV1、StorageV2 还是 Blob 存储。

我可以连接到我过去在 Orchard 中使用过的存储帐户 - 我只是无法连接到新的存储帐户。

An unhandled exception has occurred and the request was terminated. Please refresh the page. If the error persists, go back

The remote server returned an error: (400) Bad Request.

Microsoft.WindowsAzure.Storage.StorageException: The remote server returned an error: (400) Bad Request. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request. at System.Net.HttpWebRequest.GetResponse() at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext) --- End of inner exception stack trace --- at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext) at Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer.Exists(Boolean primaryOnly, BlobRequestOptions requestOptions, OperationContext operationContext) at Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer.CreateIfNotExists(BlobContainerPublicAccessType accessType, BlobRequestOptions requestOptions, OperationContext operationContext) at Orchard.Azure.Services.FileSystems.AzureFileSystem.EnsureInitialized() at Orchard.Azure.Services.FileSystems.AzureFileSystem.ListFolders(String path) at Orchard.MediaLibrary.Services.MediaLibraryService.GetMediaFolders(String relativePath) at Orchard.MediaLibrary.Controllers.AdminController.Index(String folderPath, Boolean dialog) at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() Request Information RequestID:edaa1946-501e-0035-0d03-9c41ef000000 RequestDate:Tue, 06 Oct 2020 17:10:00 GMT StatusMessage:The TLS version of the connection is not permitted on this storage account.

最佳答案

我通过将此行放在调用存储帐户之前解决了该问题。

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

关于asp.net-mvc - Orchard CMS "Microsoft Azure Media Storage"模块无法连接到新的存储帐户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64231479/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com