This is my original format of a azure storage queue trigger function, it use to work, however after I updated the Microsoft.Net.Functions NuGet package from 1.0.24 to 3.0.3, changed zip deployment to web deployment, and did a publish, this setup have stopped working.
[FunctionName("FunctionEmailQueueTrigger")]
public static async Task Run([QueueTrigger("%emailqueue%")]string myQueueItem, ILogger log)
{
//....Actions
}```
So, I thought it is the setup format changed from 1.0.24 to 3.0.3 so I changed to this format: This is my update storage Queue trigger setup which is also not fire
public static async Task Run([QueueTrigger("emailqueue", Connection = "DefaultEndpointsProtocol=https;AccountName=name;AccountKey=XXXXXXX;EndpointSuffix=core.windows.net")]string myQueueItem, ILogger log)
{
//....Actions
}```
When I check the function and click at it on azure, it throws me an error:
Error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
it deployed on azure with a standard plan so I assume there should not have cold start, I have chacked the queue name, its match.
Thank you for the help.