-
Notifications
You must be signed in to change notification settings - Fork 10.3k
ASP.NET 5 Console Application as Azure WebJob #338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Bundle the application using |
There is no direct executable, but when you use |
Thank you! I am able to deploy the web job, but it fails with this error message.
|
You have to bundle the application with the runtime (like I showed above). Otherwise it will not work |
Great, it works now. Thank you! |
Hi, var jobconfig = new JobHostConfiguration("key here");
var host = new JobHost(jobconfig);
host.RunAndBlock(); It fails in the first line with the following error:
Checking further I get this
The Stack Trace is:
After reading through some issues, I realized I should sign the output. I tried two options as below but none worked on the Console App: "compilationOptions": {
"keyFile": "TestWebJob.snk"
} Option 2: "compilationOptions": {
"strongName": true
} Anyone have a solution or workaround? |
Looks like you logged this here: Azure/azure-webjobs-sdk#566 |
yes I did so |
Hi,
what do I need to publish ASP.NET 5 Console Application as an Azure WebJob? AFAIK there is no executable I can use to run the application.
Thank you!
The text was updated successfully, but these errors were encountered: