Method not found using Microsoft.WindowsAzure.Storage (2.0.3.0)

I just updated Microsoft.WindowsAzure.Storage from nuget and I am getting strange errors in Visual Studio 2010.

When calling a method IncrementCountProperty

from within AddEntry

a method , the following error appears:

Method not found: 'Void Microsoft.WindowsAzure.Storage.Table.EntityProperty..ctor(Int64)'.

      

(stack)

System.MissingMethodException: Method not found: 'Void Microsoft.WindowsAzure.Storage.Table.EntityProperty..ctor(Int64)'.
   at App.MyClass.IncrementCountProperty(Int32 companyId, String feedKey, Int64 incrementCount)
   at App.MyClass.AddEntry(Int32 companyId, String feedKey, FeedEntry entry) in C:\xxx\MyFile.cs:line 464

      

I realize that I am doing something wrong in IncrementCountProperty

, but the weird part is that Visual Studio does not recognize breakpoints in the method IncrementCountProperty

. If I put a breakpoint on the calling line in AddEntry, the breakpoints work fine. If I then hit F11 to log in, I get the exception directly. Both are declared in the same class

I've tried the following:

  • Removing all pdb files
  • Removing DLL projects in bin / debug
  • Ran Clear Solution
  • Restarting Visual Stuido
  • Refurbished computer
  • Throwing an exception in the IncrementCountProperty method to make sure my code is actually called. And the exception is thrown. But there is no debugger.

I have also verified that the correct version of the WindowsAzure store is being used, both by version number and using the ILDASM tool.

Can anyone help me fix this problem?

+3


source to share


1 answer


He works!

After upgrading to WindowsAzure.Storage 2.0.4.1

it, it works. I tried using help 2.0.4.0

right after I wrote the question. The 26th Microsoft released version 1 which references Microsoft.Data.OData 5.2.0

(instead of 5.0.2

).



My gut tells me it was the problem.

+2


source







All Articles