HttpContext.Current wird in MVC 4-Projekt nicht aufgelöst

Ich möchte ImageResizer (von ImageResizing dot net) verwenden. Ich habe ImageResizer für MVC über NuGet installiert. Aber wenn ich gehe, um den folgenden Code aus dem Beispiel zu verwenden:

//Loop through each uploaded file
foreach (string fileKey in HttpContext.Current.Request.Files.Keys)
{
    HttpPostedFile file = HttpContext.Current.Request.Files[fileKey];
    if (file.ContentLength <= 0) continue; //Skip unused file controls.

    //The resizing settings can specify any of 30 commands.. See http://imageresizing.net for details.
    //Destination paths can have variables like <guid> and <ext>, or 
    //even a santizied version of the original filename, like <filename:A-Za-z0-9>
    ImageResizer.ImageJob i = new ImageResizer.ImageJob(file, "~/uploads/<guid>.<ext>", new ImageResizer.ResizeSettings(
                            "width=2000;height=2000;format=jpg;mode=max"));
    i.CreateParentDirectory = true; //Auto-create the uploads directory.
    i.Build();
}

Die "HttpContext.Current.Request.Files.Keys" in der foreach wird nicht aufgelöst? Ich habe meine Verwendung korrekt und Visual Studio bietet keine "Auflösen" -Optionen.

Antworten auf die Frage(3)

Ihre Antwort auf die Frage