Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft.WindowsAzure.Storage Version Mismatch #821

Closed
isaacrlevin opened this issue May 24, 2018 · 7 comments
Closed

Microsoft.WindowsAzure.Storage Version Mismatch #821

isaacrlevin opened this issue May 24, 2018 · 7 comments

Comments

@isaacrlevin
Copy link

isaacrlevin commented May 24, 2018

I am building a v2 Azure Function locally and am seeing an odd issue when I debug the function. I am getting the following error when trying to do Azure Storage related tasks

Exception while executing function: Function1. AzureMediaServicesDemo.Shared: Could not load file or assembly 'Microsoft.WindowsAzure.Storage, Version=9.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Could not find or load a specific file.

If I look at dependencies, WindowsAzure.Storage is version 9.1.1 referenced by Microsoft.NET Sdk.Functions

image

However if I look at my loaded symbols, it looks like version 8.06.0.0 is being loaded

image

No idea why the newest beta of the CLI tools loads such an old version by default. Any ideas?

@mattchenderson
Copy link

@ahmelsayed @fabiocav any ideas here on the CLI assembly loading?

@isaacrlevin
Copy link
Author

FYI if I hard reference the older DLL the function works

@fabiocav
Copy link
Member

Yes. This is expected for now, until we finalize the work to decouple storage extensions from the WebJobs SDK (which is almost complete). In the meantime, Storage SDK assemblies are one of the few you're still expected to match the runtime version (which is 8.6.0).

This restriction (like many of the other assembly version restrictions we had with other extensions) is a temporary issue and will be addressed in upcoming preview releases.

@drphilgarner
Copy link

Also have this issue, even when adding nuget reference of 8.7.0 directly to my function. Also tried hard .dll reference to the project, same thing.

@isaacrlevin
Copy link
Author

@drphilgarner are you using v2 of functions? Here is a repo of it working

https://github.com/isaac2004/AzureMediaServicesDemo

@jeffhollan
Copy link
Contributor

Closing as by design for now - should be resolved when this issue is completed in the coming release

Azure/azure-webjobs-sdk#1683

@fabiocav
Copy link
Member

The SDK update is complete, we're in the progress of adopting those changes into the runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants