Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure WebJob - No functions found. Try making job classes public and methods public static

I'm using an Azure WebJob, but now I get the following error message:

No functions found. Try making job classes public and methods public static.

My code is so simple:

static void Main()
{
    var host = new JobHost(); 
    host.RunAndBlock();
}
public static async Task BlobTrigger(
    [BlobTrigger("test/{name}")] Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob input,
    TextWriter log)
{
    //code
}

Also, I create a zip file from my debug folder and upload it, and the job is configure to run continuously.

like image 411
Julito Avellaneda Avatar asked Oct 28 '14 14:10

Julito Avellaneda


1 Answers

so sorry, the error is so simple, I added the access public to the class and it's fine (I'm using the final version of web jobs here), but I have some jobs with the webjobs prerelease and the public it's not necessary.

Thanks to all, regards.

like image 75
Julito Avellaneda Avatar answered Sep 22 '22 05:09

Julito Avellaneda