Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Issue: Create a version of Microsoft.AspNet.WebPages.Administration that's compatible with NuGet 2.0 [435]

$
0
0
1. In Visual Studio, create a new Razor v2 Web Site
2. Open the NuGet Package manager and update NuGet.Core to version 2.0.
3. F5

Result: At runtime, you'll receive an unhandled exception with the message "Method 'get_IsBindingRedirectSupported' in type 'System.Web.Webpages.Administration, version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation."
A user who does this cannot recover because the latest version of Microsoft.AspNet.WebPages.Administration is only compatible with Nuget.Core version 1.6.

Expected: There should be a Nuget 2.X-compatible version of this package, if for no other reason than to help users recover their sites when they do this.

Comments: For some info on workarounds, please check out this similar bug on Microsoft Connect: http://connect.microsoft.com/VisualStudio/feedback/details/752526/method-get-isbindingredirectsupported-in-type-system-web-webpages-administration-packagemanager-webprojectsystem-from-assembly-system-web-webpages-administration-version-2-0-0-0-culture-neutral# One easy workaround is to simply remove the System.Web.WebPages.Administration package, as it is no longer needed in ASP.NET Web Pages. The feature was always very limited and has since been superseded by more full-featured implementations in both Web Matrix, and of course, the built-in NuGet package manager in Visual Studio.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>