我正在使用Image Resizer AzureReader 2
这曾经完美地工作,我认为我没有升级任何其他具有超出指定可接受限制的依赖项的项目。 (所有版本都符合所需版本)
前缀设置似乎导致错误。 当我有前缀=“〜/”时,我得到以下错误。
但是当我没有包含前缀设置(所以它默认为“〜/ azure”)或者我将它设置为prefix =“〜/ images”时,一切都很完美,但显然我必须有一个前缀我不想要。
基本上https://example.com/images/myimage.jpeg 使用prefix =“〜/”会抛出以下错误
但是https://example.com/azure/images/myimage.jpeg 使用prefix =“〜/ azure”可以很好地工作
其中images是blob的名称,myimage.jpeg是图像的名称。
来源错误:
在执行当前Web请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常的起源和位置的信息。
堆栈追踪:
[WebException:远程服务器返回错误:(404)Not Found。] Microsoft.WindowsAzure.Storage.Shared.Protocol.HttpResponseParsers.ProcessExpectedStatusCodeNoException(HttpStatusCode expectedStatusCode,HttpStatusCode actualStatusCode,T retVal, StorageCommandBase
1 cmd, Exception ex) in c:\Program Files (x86)\Jenkins\workspace\release_dotnet_master\Lib\Common\Shared\Protocol\HttpResponseParsers.Common.cs:50 Microsoft.WindowsAzure.Storage.Blob.<>c__DisplayClass13.<GetBlobReferenceImpl>b__12(RESTCommand
1 cmd,HttpWebResponse resp,Exception ex,OperationContext ctx)in c:\ Program Files (86)\詹金斯\工作空间\ release_dotnet_master \ LIB \ ClassLibraryCommon \斑点\ CloudBlobClient.cs:793 Microsoft.WindowsAzure.Storage.Core.Executor.Executor.EndGetResponse(IAsyncResult的 getResponseResult)在c:\ Program Files中 (86)\詹金斯\工作空间\ release_dotnet_master \ LIB \ ClassLibraryCommon \核心\执行人\ Executor.cs:299[StorageException:远程服务器返回错误:(404)不是 发现]
Microsoft.WindowsAzure.Storage.Core.Executor.Executor.EndExecuteAsync(IAsyncResult的 结果)在c:\ Program Files中 (86)\詹金斯\工作空间\ release_dotnet_master \ LIB \ ClassLibraryCommon \核心\执行人\ Executor.cs:50 Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient.EndGetBlobReferenceFromServer(IAsyncResult的 c:\ Program Files中的asyncResult) (86)\詹金斯\工作空间\ release_dotnet_master \ LIB \ ClassLibraryCommon \斑点\ CloudBlobClient.cs:635 Microsoft.WindowsAzure.Storage.Core.Util&LT;&GT; c__DisplayClass1`1.b__0(IAsyncResult的 ar)在c:\ Program Files中 (86)\詹金斯\工作空间\ release_dotnet_master \ LIB \ ClassLibraryCommon \核心\的Util \ AsyncExtensions.cs:66 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务 任务)+99
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务)+58
ImageResizer.Plugins.AzureReader2.d__14.MoveNext()+ 209[FileNotFoundException:找不到Azure blob文件]
ImageResizer.Plugins.AzureReader2.d__14.MoveNext()+409
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务 任务)+99
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务)+58 ImageResizer.Util.AsyncUtils.RunSync(Func1 func) +159
1 vppFunc,IVirtualPathUtility virtualPathUtility)+36
ImageResizer.Storage.Blob.Open() in C:\projects\resizer\Plugins\ImageResizer.Storage\Blob.cs:41
ImageResizer.Plugins.VirtualFileShim.Open() +11
System.Web.WebPages.BuildManagerWrapper.IsNonUpdateablePrecompiledApp(VirtualPathProvider vpp, IVirtualPathUtility virtualPathUtility) +86
System.Web.WebPages.BuildManagerWrapper.IsNonUpdatablePrecompiledApp() +36 System.Web.WebPages.BuildManagerWrapper..ctor(Func
System.Web.WebPages.BuildManagerWrapper..ctor()+ 0102 System.Web.WebPages.VirtualPathFactoryManager。&lt; .cctor&gt; b__3()+24
System.Lazy1.CreateValue() +411 System.Lazy
1.LazyInitValue()+152 System.Lazy1.get_Value() +75
1 executeStartPage,EventHandler applicationStart) +94 System.Web.WebPages.WebPageHttpModule.StartApplication(HttpApplication 申请)+54
System.Web.WebPages.VirtualPathFactoryManager.get_Instance() +27
System.Web.WebPages.ApplicationStartPage.ExecuteStartPage(HttpApplication application) +96
System.Web.WebPages.WebPageHttpModule.StartApplication(HttpApplication application, Action
System.Web.WebPages.WebPageHttpModule.Init(HttpApplication的 申请)+200
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr的 appContext,HttpContext上下文,MethodInfo []处理程序)+534
System.Web.HttpApplication.InitSpecial(HttpApplicationState状态, MethodInfo [] handlers,IntPtr appContext,HttpContext context)+172
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr的 appContext,HttpContext context)+339
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr的 appContext)+296[HttpException(0x80004005):找不到Azure blob文件]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context)+9923092 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)+90 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr,HttpContext context)+261
<plugins>
<add name="MvcRoutingShim" />
<add name="AzureReader2"
connectionString=""
endpoint="https://images.blob.core.windows.net/"
prefix="~/"
/>
</plugins>