WebJobs ServiceBusTrigger parameter function not found RRS feed

  • Question

  • Hello,

    public class Program {     public static void Main()     {         var host = new JobHost();         host.RunAndBlock();     }     public static void ProcessMessage([ServiceBusTrigger("Topic""Subscription")] BrokeredMessage message)     {         //TO DO(message);     } }

    I am running code Local m/c.       

    In above code I am trying to trigger Topic's subscription on entry.

    but when I run Code It gave me error "No Functions Found. Try making job classes and methods public".

    I tried same method  in Function.cs file, but doesn't work.  

    But when I changed ServiceBusTrigger to QueueTrigger It worked.

    I have set below config properly.

    <add name="AzureWebJobsDashboard" connectionString="{My Connection string}"/>

    <add name="AzureWebJobsStorage" connectionString="{Connection_String}"/>    

    <add name="AzureWebJobsServiceBus" connectionString="{Connection_String}"/> 

    Where am I getting wrong?

    Please help me..


    • Moved by Asha99 Wednesday, November 4, 2015 12:08 PM
    Monday, November 2, 2015 3:12 PM

All replies

  • Can you move the question to Azure WebApps section plase?
    Monday, November 2, 2015 8:30 PM
  • I don't find any option to change section. 
    So, I separately posted same question


    Tuesday, November 3, 2015 5:49 AM
  • Hi ,

    We will move your thread to Azure Web apps for better Support.

    Thanks for understanding,


    Wednesday, November 4, 2015 12:07 PM
  • You now have to call config.UseServiceBus() in your startup code. The ServiceBus bindings are now extensions (like the rest of the external binding extensions in azure-webjobs-sdk-extensions and must now be registered explicitly.

    This change is also discussed in this blog post.

    This has been confusing users, so we've made a change to improve things before we RTM. The error message you see will mention that you need to call config.UseServiceBus().

    Mathew Charles [MSFT]

    Thursday, November 5, 2015 12:57 AM