getting exception after webjob sdk code fork for public class ServiceBusTriggerAttribute

-1

I get all webjod sdk code from here

I want to make class ServiceBusTriggerAttribute public and non sealed and created nuget package using Microsoft.Azure.WebJobs.ServiceBus.dll but when I use this nuget in my webjob project getting below exception.

An unhandled exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll

Additional information: Could not load file or assembly 'Microsoft.Azure.WebJobs.ServiceBus, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)

c#
.net
azure
azure-webjobs
azure-webjobssdk
asked on Stack Overflow Nov 2, 2015 by Neo • edited Nov 2, 2015 by Neo

1 Answer

2

This issue was recently discussed in the public repo here. I don't think trying to subclass the attribute is the way to go. I suggested some alternatives in the github issue. You're getting the above exception because all the WebJobs SDK assemblies are delay signed (in project settings). They need to be fully signed for use.

answered on Stack Overflow Nov 2, 2015 by mathewc

User contributions licensed under CC BY-SA 3.0