ViBi
ViBi

Reputation: 627

How to run webjobs in azure emulator

I have a console based application as WebJob. Now internally i am trying to map a CloudDrive using the storageconnectionstring UseDevelopmentStorage=true

It is throwing exception ERROR_AZURE_DRIVE_DEV_PATH_NOT_SET. I searched for this error and found that WebJobs do not run locally in Azure emulator. Is this information still valid? Is there any plan to provide emulator (storage) support for webjobs in near future say in a week or so?

thanks

Upvotes: 1

Views: 1157

Answers (3)

Jiří Herník
Jiří Herník

Reputation: 2477

There are new few lines of code in current version, which I believe solves this issue

    static void Main()
    {
        var config = new JobHostConfiguration();

        if (config.IsDevelopment)
        {
            config.UseDevelopmentSettings();
        }

        var host = new JobHost();
        // The following code ensures that the WebJob will be running continuously
        host.RunAndBlock();
    }

Upvotes: 0

Nigel Belham
Nigel Belham

Reputation: 493

Boo hoo Microsoft... This seems rather stupid given that you want us to start adopting the use of Azure Web Jobs!

enter image description here

Upvotes: 1

Victor Hurdugaci
Victor Hurdugaci

Reputation: 28425

The information is still valid - we don't support the Azure emulator.

We have that work item on our backlog but I cannot give you any ETA.

Upvotes: 1

Related Questions