Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9113753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:02:14+00:00 2026-06-17T04:02:14+00:00

I downloaded a sample project for saving images to Azure Blob Storage via a

  • 0

I downloaded a sample project for saving images to Azure Blob Storage via a Web Api service here: http://blogs.msdn.com/b/yaohuang1/archive/2012/07/02/asp-net-web-api-and-azure-blob-storage.aspx.

However, I cannot get this one line in the controller to work:

Request.Content.ReadAsMultipartAsync<AzureBlobStorageMultipartProvider>(multipartStreamProvider)

The error is

The non-generic method
‘System.Net.Http.HttpContentMultipartExtensions.ReadAsMultipartAsync(System.Net.Http.HttpContent,
System.Net.Http.IMultipartStreamProvider, int)’ cannot be used with
type arguments

I have tried to compare my project to the sample project, to no avail – the references are the same, the AzureBlobStorageMultipartProvider class hasn’t changed in my project … I can’t figure out what the difference is. ReadAsMultiPartAsync is an extension method, but I obviously have those extensions in scope (they’re referenced in the error message). Can anyone help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T04:02:16+00:00Added an answer on June 17, 2026 at 4:02 am

    Well, even though the referenced System.Net.Http.Formatting.dll in both projects was version 4.0.0.0, when I browsed to the definition of the ReadAsMultiPartAsync method in my project the correct method didn’t show up in the metadata. So I removed my reference to the dll in my project, and then added the dll from the sample project’s bin, and that solved the problem. Seems really stupid, and I worry that it could break again, but that’s the best solution that I have.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with a very small sample project that can be downloaded from here
I'm looking at Haacks article here - http://haacked.com/archive/2009/07/31/single-project-areas.aspx When I download the sample I
I've downloaded a sample application sending email silverlight application here. via gmail. But I
I tried a sample project about Hibernate Many-to-Many relationship downloaded from http://www.vaannila.com/hibernate/hibernate-example/hibernate-mapping-many-to-many-using-annotations-1.html Then I
I have downloaded a sample extjs+mysql+spring web project ( link ) with a java
I just downloaded UnRAR.dll from http://www.rarlab.com/rar_add.htm package includes C# sample project when I run
I downloaded a red5 ant sample project. ( http://osflash.org/red5 ) the project contains several
I downloaded the three20 library: http://three20.info/ And I opened the TTCatalog sample project that
How to create an encrypted saml2.0 assertion in java? Downloaded sample project from http://www.capcourse.com/Library/OpenSAML/index.html
If I downloaded a sample project (not Git managed) on a website and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.