Julito Avellaneda
Julito Avellaneda

Reputation: 2385

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.

Upvotes: 5

Views: 3390

Answers (1)

Julito Avellaneda
Julito Avellaneda

Reputation: 2385

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.

Upvotes: 13

Related Questions