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

Created Issue: HttpConfigurationExtensions ambiguous [652]

$
0
0
There is a "public static class HttpConfigurationExtensions" in namespace System.Web.Http in

System.Web.Http.dll (http://aspnetwebstack.codeplex.com/SourceControl/changeset/view/859ceac12949#src%2fSystem.Web.Http%2fHttpConfigurationExtensions.cs)

and in

System.Web.Http.OData.dll
(http://aspnetwebstack.codeplex.com/SourceControl/changeset/view/859ceac12949#src%2fSystem.Web.Http.OData%2fHttpConfigurationExtensions.cs)

The second one uses types from the first one (at least HttpConfiguration) so that you have to reference both dlls. But then you cannot use any method from the second class.

Example fragment:

Public Class MyQueryableAttribute
Inherits Web.Http.QueryableAttribute

Public Overrides Sub OnActionExecuted(actionExecutedContext As Web.Http.Filters.HttpActionExecutedContext)
Dim Request = actionExecutedContext.Request
Dim Configuration As System.Web.Http.HttpConfiguration = Request.GetConfiguration()
Dim Model = System.Web.Http.HttpConfigurationExtensions.GetEdmModel(Configuration)
'error BC30560: 'HttpConfigurationExtensions' is ambiguous in the namespace 'System.Web.Http'.
...


Viewing all articles
Browse latest Browse all 7215

Trending Articles



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