I have created a very simple publisher
and subscriber
solution using this tutorial. I want to host the subscriber into azure as continuously executing webjob
which consumes all the event sent out to particular topic.
Subscriber is a simple dotnet core application which runs fine on local development machine.
I have wrapped all the content of 'Debug' ( or 'Release') folder into zip file which contains a batfile
name taskRunner.bat
as an entrypoint for webjob to begin execution. Below are content of the taskRunner.bat
dotnet SBClient.dll
SBClient.dll
is an assembly which contains logic to fetch messages out of topic.
When I run this batchfile on my machine things are are fine. But the moment I deploy this as a webjob in my azure webjobs I get to see below errors and status of WebJob remains PendingRestart
[01/11/2018 03:51:51 > f07a91: INFO] D:\local\Temp\jobs\continuous\coretask\kigmen2q.zmj>dotnet SBClient.dll
[01/11/2018 03:51:51 > f07a91: ERR ] Error:
[01/11/2018 03:51:51 > f07a91: ERR ] An assembly specified in the application dependencies manifest (SBClient.deps.json) was not found:
[01/11/2018 03:51:51 > f07a91: ERR ] package: 'Microsoft.Azure.Amqp', version: '2.1.2'
[01/11/2018 03:51:51 > f07a91: ERR ] path: 'lib/netstandard1.3/Microsoft.Azure.Amqp.dll'
[01/11/2018 03:51:51 > f07a91: ERR ]
[01/11/2018 03:51:51 > f07a91: SYS ERR ] Job failed due to exit code -2147450740
[01/11/2018 03:51:51 > f07a91: SYS INFO] Process went down, waiting for 60 seconds
[01/11/2018 03:51:51 > f07a91: SYS INFO] Status changed to PendingRestart
Looking at the message I can tell that its looking for a file named 'Microsoft.Azure.Amqp' but don't know how its working on my machine.
Dose that mean I don't have latest version of dotnet core on Azure? Is there any setting that I need to configure to make it work?