Azure webjobs“无效的容器名称”间歇性错误

时间:2014-02-25 14:05:53

标签: azure runtime-error azure-storage azure-storage-blobs azure-webjobs

我一直在写一个带有blob手表的webjob(比如http://www.hanselman.com/blog/IntroducingWindowsAzureWebJobs.aspx

我不时会在没有任何警告的情况下从行

收到“无效的容器名称”例外情况
host.RunAndBlock();

尽管没有更改App.config中的容器名称,并且每个其他访问blob存储的方法都有效。

这是任何关心它的人的堆栈跟踪:

The thread '<No Name>' (0x17bc) has exited with code 0 (0x0).
   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at BarcodeJob.Program.Main() in c:\Users\Nik\Documents\Visual Studio 2012\Projects\BarcodeJob\BarcodeJob\Program.cs:line 34
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

和错误消息

System.FormatException: Invalid container name: 
   at Microsoft.WindowsAzure.Jobs.BlobClient.ValidateContainerName(String containerName)
   at Microsoft.WindowsAzure.Jobs.CloudBlobPath..ctor(String blobInput)
   at Microsoft.WindowsAzure.Jobs.LogRow.ToPath()
   at Microsoft.WindowsAzure.Jobs.BlobLogListener.<GetRecentBlobWrites>d__0.MoveNext()
   at Microsoft.WindowsAzure.Jobs.BlobListener.Poll(Action`1 callback, CancellationToken cancel)
   at Microsoft.WindowsAzure.Jobs.Listener.PollBlobs(CancellationToken token)
   at Microsoft.WindowsAzure.Jobs.Listener.Poll(CancellationToken token)
   at Microsoft.WindowsAzure.Jobs.Worker.Poll(CancellationToken token)
   at Microsoft.WindowsAzure.Jobs.JobHost.RunAndBlock(CancellationToken token, Action pauseAction)
   at Microsoft.WindowsAzure.Jobs.JobHost.RunAndBlock(CancellationToken token)
   at Microsoft.WindowsAzure.Jobs.JobHost.RunAndBlock()
   at BarcodeJob.Program.Main() in c:\Users\Nik\Documents\Visual Studio 2012\Projects\BarcodeJob\BarcodeJob\Program.cs:line 30

1 个答案:

答案 0 :(得分:1)

这更像是一个错误报告,而不是一个实际的问题...所以这里没有一个具体的问题要回答,但我可以确认,callstack肯定是在猜它是WebJobs SDK中的一个错误。我们已经提交了一个错误,并期望在Alpha 2版本中修复它。发布是通过nuget完成的,因此Alpha 2将显示在:http://www.nuget.org/packages/Microsoft.WindowsAzure.Jobs.Host