我有Azure WebJobs的ASP.NET MVC應用程序。我已經設置了將WebJobs自動發佈到Azure Cloud。但是,當通過VS發佈WebJobs那裏顯示模式對話框。我認爲TeamCity也是如此,但它會產生錯誤並且發佈失敗。顯示模態對話框的TeamCity
我如何禁用它併發布WebJobs?
[Step 1/1]
[15:19:13][Step 1/1] Unhandled Exception: System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
[15:19:13][Step 1/1] at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.RunAsyncTask[T](Task`1 task)
[15:19:13][Step 1/1] at Microsoft.Web.WebJobs.Publish.Tasks.CreateScheduledWebJob.<>c__DisplayClass1f.<GetAuthorizationHeader>b__1e()
[15:19:13][Step 1/1] at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
[15:19:13][Step 1/1] at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
[15:19:13][Step 1/1] at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
[15:19:13][Step 1/1] at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
[15:19:13][Step 1/1] at System.Threading.ThreadHelper.ThreadStart()
[15:19:16][Step 1/1] Process exited with code 255
[15:19:16][Step 1/1] Step Publish to Azure (with WebJobs) (Command Line) failed
你能繞過這個限制嗎? – Regis