Add support prioritise controller routes

Hi Why in new version MVC, route not have prioritise? Before have prioritise. Example, I have 2 Controllers NewsController [Route("~/News", Order = 2)] [Route("~/News/Page/{page}", Order = 1)]...

Id #2318 | Release: None | Updated: Oct 14 at 11:56 AM by Grifin | Created: Oct 14 at 11:56 AM by Grifin

MultipartStreamProvider loses HttpContext after async work

I have implemented a custom subclass of MultipartStreamProvider in order to write uploaded file data to a custom stream. After writing to the stream, the HttpContext is sometimes null. The code bel...

Id #2317 | Release: None | Updated: Oct 4 at 2:41 AM by jr76 | Created: Oct 3 at 8:47 PM by jr76

ByteRangeStream Stream Position question

In the ByteRangeStream class, when the _lowerbounds variable is calculated, the current method ignores the position of the inputStream property. In my scenario, I need to output to the output of t...

Id #2316 | Release: None | Updated: Sep 23 at 7:46 AM by ftonz | Created: Sep 23 at 7:46 AM by ftonz

HttpContent.Read* methods return empty content when using parameter binding in Web API controller

Repro steps In a Web API application, add a complex type parameter to a controller method. In the controller method, read the content, e.g. with Request.Content.ReadAsStringAsync. Run the app, an...

Id #2315 | Release: None | Updated: Sep 12 at 8:35 PM by naamunds | Created: Sep 12 at 8:35 PM by naamunds

MediaTypeFormatter.WriteToStreamAsync can not set headers

I define a custom MediaTypeFormatter to handle downloading csv file. The csv object model like public class CsvModel: Collection<TRow> where TRow: class { // specific the download filename public...

Id #2314 | Release: None | Updated: Aug 18 at 3:34 AM by tobyee | Created: Aug 18 at 3:32 AM by tobyee

CookieHeaderValue can't parse cookie from expiration

The format generated by System.Web.HttpCookie when formated is non-standard, a mix between RFC1123 and RFC850 (At least as of .NET Framework 4.6.1) The exact format string used is "ddd, dd-MMM-yy...

Id #2313 | Release: None | Updated: Aug 12 at 3:10 AM by MerickOWA | Created: Aug 12 at 3:10 AM by MerickOWA

potential downside of setting UseTaskFriendlySynchronizationContext=true

ASP.Net applications originally created under .NET 4.0 and later ported to .NET 4.5 in Visual Studio will still run using the legacy ASP pipeline unless you remember to add one of these to your web...

Id #2312 | Release: None | Updated: Aug 8 at 5:25 PM by nickfloyd | Created: Aug 5 at 10:45 PM by mvp1108

Smart badge PIN prompt in Web application on a button click using C#.net

Hi Team, We have a requirement to implement smart card PIN prompt on a button click functionality in web application. Usually user logged into his system using smart badge, user will be prompte...

Id #2311 | Release: None | Updated: Jun 21 at 3:17 PM by VenkatRM | Created: Jun 21 at 3:17 PM by VenkatRM

fix failure issue when triggers have been setup for user/role tables

Hi, I reported the same issue with a pull request on github. https://github.com/ASP-NET-MVC/aspnetwebstack/pull/14 I have been using WebMatrix.Data and WebMatrix.WebData for mvc 4 security impl...

Id #2310 | Release: None | Updated: Jun 14 at 1:33 AM by zhangpengdpnn | Created: Jun 14 at 1:33 AM by zhangpengdpnn

MVC 5 HTTP Error 404.15 - Not Found

I'm using VS Net 2015 with .Net 4.6.1 MVC 5 and EF 6, and created a website with Individual User Accounts. Using IIS Express or Local IIS I got the error: HTTP Error 404.15 - Not Found The req...

Id #2309 | Release: None | Updated: Jun 13 at 2:44 PM by wilfredogr | Created: Jun 13 at 2:44 PM by wilfredogr

Memory leak in async Action Methods

I am using Visual Studio 2015 ASP.NET 5 Preview template project. No code changed. Just do File -> New -> ASP.NET 5 Web Application. Change Authentication to Individual User Accounts. Then when I r...

Id #2308 | Release: None | Updated: May 31 at 11:24 PM by pranavkm | Created: May 31 at 12:43 PM by oazabir

Using Attribute and Convention Based Routing Together

We can combine attribute routing with convention-based routing as mentioned here: Attribute Routing in ASP.NET MVC 5 And for using both we should use MapMvcAttributeRoutes method before conventio...

Id #2307 | Release: None | Updated: May 29 at 12:06 AM by NightOwl888 | Created: May 25 at 9:37 AM by oruchreis

SimpleMembershipProvider provides no way to determine if password reset token has expired

the workflow for password reset usually goes like this: 1) generate password reset ticket (WebSecurity.GeneratePasswordResetToken) and send user a password reset link containing that ticket 2) us...

Id #2306 | Release: None | Updated: May 10 at 11:01 PM by spongman | Created: May 10 at 11:00 PM by spongman

No route data in IHostBufferPolicySelector.UseBufferedInputStream

I’m trying to use IHostBufferPolicySelector to disable input buffering on a per-route basis, but have been unsuccessful so far. It looks like route data doesn’t make it into UseBufferedInputStrea...

Id #2305 | Release: None | Updated: Apr 28 at 7:51 PM by zarenner | Created: Apr 28 at 7:43 PM by zarenner

Update Web API client packages to target netstandard

The next version of asp.net is built on top of the netstandard concept. For nuget to successfully restore Web API client packages. users need to add an import to their project.json files. We want t...

Id #2304 | Release: None | Updated: Aug 17 at 1:12 PM by packhomov | Created: Apr 25 at 7:08 PM by jacalvar

Need Katana owin source code of vesion 2.0.0.0

Hi, Need Katana owin source code of vesion 2.0.0.0 as I need to extend some fucntionality. I have latest source code from katana owin site but unable to debug in webapi as most of the assemblie...

Id #2303 | Release: None | Updated: Apr 15 at 1:53 PM by AmitKarankar | Created: Apr 15 at 12:43 PM by AmitKarankar

Where the user principal object is set?

Hi I am going through the System.Web.Http Project and analysing the code for AuthorizeAttribute.cs wherein IPrincipal user = Thread.CurrentPrincipal is set. But I didnt understand where exactly...

Id #2302 | Release: None | Updated: Apr 12 at 10:48 AM by AmitKarankar | Created: Apr 12 at 10:08 AM by AmitKarankar

ArgumentException when validating OData query with duplicate properties

My data model has a property called "Name", which is used on several different entities. class Device { string Name; } class User { string Name; Device[] Devices; } When processing a req...

Id #2301 | Release: None | Updated: Apr 6 at 8:30 PM by JamesCourtney | Created: Apr 6 at 8:30 PM by JamesCourtney

Enable native unobtrusive jquery validation support

Jquery validation now supports native unobtrusive declarations using data-rule-, data-msg- can you support also that so we don't need the Microsoft.jQuery.Unobtrusive.Validation package? it cont...

Id #2300 | Release: None | Updated: Mar 21 at 12:21 PM by livioc | Created: Mar 21 at 12:21 PM by livioc

Let WebMatrix.Data.Database use Localdb to open mdf file

Database.Open("") have three action: use the connection string in the Web.config file which name "" to connect to database use SQL Server Express to access App_Data.mdf use SQL Server CE 4.0 to ...

Id #2299 | Release: None | Updated: Mar 10 at 2:00 PM by fo40225 | Created: Mar 10 at 2:00 PM by fo40225

Nuget package Microsoft.AspNet.WebHelpers 3.2.3 dependency

The NuGet package Microsoft.AspNet.WebHelpers 3.2.3 require Microsoft.AspNet.WebPages.Data 3.0.0.0. If install Microsoft.AspNet.WebHelpers 3.2.3 into a empty visual studio web project directly, i...

Id #2298 | Release: None | Updated: Mar 10 at 1:35 PM by fo40225 | Created: Mar 10 at 1:35 PM by fo40225

Issue with arrays in expression when using DotNetCompilerPlatform

I copied this issue from https://github.com/aspnet/Mvc/issues/2890 because it looks like no related issues been tracked by ASP.NET MVC 5 project. Hey, not 100% sure if this an MVC issue or Roslyn i...

Id #2297 | Release: None | Updated: May 30 at 3:30 PM by herrquark | Created: Mar 5 at 6:20 PM by doggy8088

unable to retrieve object from json when the object name is one object attribute

Hello, When you are calling a controller from json, which argument name is one property name of the object. You get an object with every properties at null. Here is a program which reproduces t...

Id #2296 | Release: None | Updated: Mar 2 at 6:05 PM by VGib | Created: Mar 2 at 6:05 PM by VGib

RenderAction should be independent of http method

When using @{ Html.RenderAction("ActionName", "ControllerName") } MVC should return the specified action independent of the current http method. See http://stackoverflow.com/questions/4227930/ren...

Id #2295 | Release: None | Updated: Feb 24 at 3:47 PM by dotnetchris | Created: Feb 24 at 3:47 PM by dotnetchris

WebApi deadlock when doing async chunked response

When running on IIS 7.5 on Server 2008 R2, I've been able to reproduce a deadlock when doing async writes on a chunked response. For instance: [HttpGet] public HttpResponseMessage Test() ...

Id #2294 | Release: None | Updated: Feb 24 at 1:27 PM by taschmidt | Created: Feb 23 at 8:11 PM by taschmidt

Internal types in NETFX_CORE (WebAPI)

Must class FormDataCollection (in System.Net.Http.Formatting) be "internal" for NETFX_CORE ? if NETFX_CORE internal ... there are few other members CreateResponse(HttpStatusCode) on HttpRequestM...

Id #2293 | Release: None | Updated: Feb 20 at 4:37 AM by MikeNET | Created: Feb 20 at 4:37 AM by MikeNET

WebApi ModelBinder can set Response, but it is not respected

When binding a parameter using a custom model binder, the model binder can set the Response property of the HttpActionContext. When the model binder does this, that Response is ignored and ASP.NET ...

Id #2292 | Release: None | Updated: Feb 28 at 4:15 AM by tmeinershagen | Created: Feb 19 at 6:08 AM by chrisblock

SelectExtensions Empty SelectListItem not Html5 Compliant

A frequent use case for a DropDownList (and related variants) is that the SelectListItems will have an empty item as the first in the list. The Html Helper renders this as follows: <option></optio...

Id #2291 | Release: None | Updated: Dec 19, 2015 at 10:26 AM by RogerMKE | Created: Dec 19, 2015 at 10:26 AM by RogerMKE

ArgumentNullException when model is not parsed and validation attribute at model level

If you have a WebApi 2 model as the parameter to an action method of an ApiController, and the model has a validation attribute at the class level, and the incoming request (JSON or XML) fails to p...

Id #2290 | Release: None | Updated: Dec 15, 2015 at 4:09 PM by ajj3085 | Created: Dec 15, 2015 at 4:08 PM by ajj3085

DefaultBodyModelValidator: Extract ModelValidationResult to ModelError mapping logic into a separate method

Hello everyone, as you know DefaultBodyModelValidator validates incoming put/post requests. The problem is that if you write your own validator then you don't have any control over ModelValidatio...

Id #2289 | Release: None | Updated: Dec 10, 2015 at 11:27 AM by usarskyy | Created: Dec 10, 2015 at 11:27 AM by usarskyy

BUILD FAILED

I tried to build the project on win10 with VS2013 and got errors: git clone https://git01.codeplex.com/aspnetwebstack.git build EnableSkipStrongNames build clean build Restoring NuGet pack...

Id #2288 | Release: None | Updated: Dec 10, 2015 at 3:16 PM by idy | Created: Dec 5, 2015 at 4:18 PM by idy

[FromUri] binding behaviour when querystring is empty

I have posted the following SO question but after further thinking I believe this is a bug and FromUri should not work this way. http://stackoverflow.com/questions/33753702/fromuri-binding-when-q...

Id #2287 | Release: None | Updated: Nov 17, 2015 at 10:16 AM by markoh | Created: Nov 17, 2015 at 10:16 AM by markoh

asp.net mvc4 binder issue

codes HomeController.cs, public class HomeController : Controller { // // GET: /Home/ public ActionResult Index(User User) { string strUserAction = User.Action; ...

Id #2286 | Release: None | Updated: Nov 17, 2015 at 7:04 AM by FrancisLee | Created: Nov 17, 2015 at 7:04 AM by FrancisLee

Make the BuildAttributeMappings protected or add some way to add/remove attributeMappings

We use AttributeRouting in Odata and have a hard time not being able to gate new features that require a new OData Model property ON/OFF unless we write the routes for them in a separate controlle...

Id #2285 | Release: None | Updated: Nov 12, 2015 at 10:59 PM by haocen | Created: Nov 12, 2015 at 6:36 PM by arunsudhir

Inconsistent async behaviour when returning IHttpActionResult

I'm experiencing inconsistent async behaviour when returning IHttpActionResults from a web api 2 controller. I have the following controller: [RoutePrefix("api")] public class TestController :...

Id #2284 | Release: None | Updated: Nov 6, 2015 at 8:33 AM by olif | Created: Nov 6, 2015 at 8:33 AM by olif

Unhandled exception is being logged when client cancels requests still happens

It appears this issue was clsoed for some reason. http://aspnetwebstack.codeplex.com/workitem/1797 It still happens on 5.2.3 and I posted details back in April of the error it gives. I get these...

Id #2283 | Release: None | Updated: Nov 24 at 1:18 PM by cspwizard | Created: Oct 14, 2015 at 2:38 PM by WayneBrantley

Metadata.ContainerType doesn't correspond to Metadata.Container.GetType()

I'm using viewmodel consisting of other models in my view. That means the model isn't flat. This is OK everywhere but in the validation. The model looks like this: // ViewModel public class Period...

Id #2282 | Release: None | Updated: Oct 6, 2015 at 3:42 PM by Andree643 | Created: Oct 6, 2015 at 3:42 PM by Andree643

GetExpressionText fails when inside @helper with a parameter

When using ExpressionHelper.GetExpressionText (either directly or using Html.[InputControl] such as Html.HiddenFor) from inside a @helper using a parameter, it is not able to generate a valid name ...

Id #2281 | Release: None | Updated: Mar 5 at 6:24 PM by doggy8088 | Created: Oct 1, 2015 at 11:42 AM by roblang

Infinite Loop in Model Binder

Hopefully this is the correct place to put this. The default model binder for url-encoded form data is entering an infinite loop in the following case: The binding type has nested collections T...

Id #2280 | Release: None | Updated: Sep 29, 2015 at 11:09 PM by wbittle | Created: Sep 29, 2015 at 11:09 PM by wbittle

WepApi - ModelState Error Duplication

Hi, It looks like there is a bug on ModelState validation when an error occurs on the request body. It returns a duplicated exception. Ex. Model public class ValueRequest { public int Value ...

Id #2279 | Release: None | Updated: Sep 24, 2015 at 3:56 PM by mcivino | Created: Sep 24, 2015 at 3:56 PM by mcivino

DefaultControllerSelector throws exception, unknown Cause

No idea if its a bug in the controller selector code or if its the code I have around it as the app is quite complex. I have asked this stack question: http://stackoverflow.com/questions/3261576...

Id #2278 | Release: None | Updated: Sep 17, 2015 at 1:24 PM by Wardy_01 | Created: Sep 17, 2015 at 1:24 PM by Wardy_01

CS0234 - The type or namespace name 'global_asax' does not exist in the namespace 'ASP'

I have a cshtml file containing HTML helpers in an App_Code directory and I'm getting the following error when building my web application using VS 2015: CS0234 The type or namespace name 'globa...

Id #2277 | Release: None | Updated: Sep 9, 2015 at 10:42 PM by corydeppen | Created: Sep 9, 2015 at 10:42 PM by corydeppen

WebImage.Resize fails on icon image

Given this code: var stream = typeof(Program).Assembly.GetManifestResourceStream(typeof(Program), "vs2012.ico"); var image = new WebImage(stream); var newContent = image.Resize(32, 32).GetBytes...

Id #2276 | Release: None | Updated: Aug 31, 2015 at 10:19 AM by MichaelHauer | Created: Aug 31, 2015 at 10:19 AM by MichaelHauer

[FacebookAuthorize()] Parameters mostly ignored

I'm trying to use the "ASP.NET Facebook Application" (.NET Framework 4.6) in VS 2015 on Windows 10. I'm testing it with the Edge Browser. I've found that if I allow the canvas app access to my ...

Id #2275 | Release: None | Updated: Aug 27, 2015 at 7:09 AM by cpettingill | Created: Aug 27, 2015 at 7:09 AM by cpettingill

nested foreach produces incorrect value injection

Hi, I have a table with a nested foreach. the injected deviceId stays the same for both nested foreach rows. This seems to be a bug in razor version 3.0.0.0 <table class="table table-bordered...

Id #2274 | Release: None | Updated: Aug 23, 2015 at 1:57 PM by uTILLIty | Created: Aug 23, 2015 at 1:53 PM by uTILLIty

HelperPage can't be used when HttpContext.Current is null.

Even though there seems to be this if-statement to check if Context is null, it will blow since accessing the Context property will throw an ArgumentNullException. The Context-property should che...

Id #2273 | Release: None | Updated: Aug 18, 2015 at 12:51 PM by napernik | Created: Aug 18, 2015 at 11:38 AM by burningice

QueryString change order and case of params

If a made a GET call to my application with this query string (the spaces are wanted or the bold will not function): localhost/mytest/listener?TIMECREATED=04.08.2015+12%3A22%3A27&statoattuale=OK&...

Id #2272 | Release: None | Updated: Aug 4, 2015 at 5:32 PM by AlessandroColla | Created: Aug 4, 2015 at 5:31 PM by AlessandroColla

LINQ error when mapping property in base and derived type.

Given a base and derived type. public class A { public int X { get; set; } } public class B : A { } If the property is defined twice in any way var builder = new ODataConventionModelBuilder(); ...

Id #2271 | Release: None | Updated: Jul 27, 2015 at 3:32 AM by awalsh128 | Created: Jul 27, 2015 at 3:32 AM by awalsh128

Add the container object to ModelMetadataProvider.GetMetadataForProperty()

The current ASP.NET MVC version makes developing runtime generated models and forms using the ASP.NET stack really complicated. One of the reasons of this problem is that the actual definition of...

Id #2270 | Release: None | Updated: Jul 25, 2015 at 8:18 AM by emisand | Created: Jul 25, 2015 at 12:40 AM by emisand

Support .NET Native for client libraries

Please make it possible to compile Windows 10 UWP projects in Release ('Compile with .NET Native toolchain' flag) that depends on Microsoft.AspNet.WebApi.Client nuget package. Currently, I'm gettin...

Id #2269 | Release: None | Updated: Jun 18, 2015 at 9:03 AM by altso | Created: Jun 18, 2015 at 9:03 AM by altso

Cookie parsing doesn't handle '=' in cookie values

Problem: when a cookie contains a value with an equal sign in it, the GetCookies() extension method will only return the part of the value up to the equal sign. Example: Cookie: myKey=ValueWith...

Id #2268 | Release: None | Updated: Jun 12, 2015 at 7:18 PM by kjetilkl | Created: Jun 12, 2015 at 3:04 PM by kjetilkl

include *.nuspec files to build nuget packages

I have made some changes in source code of http://aspnetwebstack.codeplex.com. Please add *.nuspec files in source code so it is possible to build nuget packages out of it.

Id #2267 | Release: None | Updated: Jun 11, 2015 at 5:06 PM by intdiffcomp | Created: Jun 11, 2015 at 5:06 PM by intdiffcomp

TryGetValue extension re-implemented in WebAPI as internal

Take the following code in a project that uses Microsoft.AspNet.WebApi.Core where request is HttpRequestMessage IOwinContext context; if (!request.Properties.TryGetValue<IOwinContext>(OwinC...

Id #2266 | Release: None | Updated: Jun 8, 2015 at 4:20 PM by lukepuplett | Created: Jun 8, 2015 at 4:19 PM by lukepuplett

Azure Web Role continuous recycles with MVC 5.2.3

I have a web role cloud project using MVC and Web API 5.2.3. It works great when I run locally on my development machine and in the Azure emulator using Azure SDK 2.2 tooling. When I deploy to a ...

Id #2265 | Release: None | Updated: Jun 7, 2015 at 4:58 PM by yishaigalatzer | Created: Jun 5, 2015 at 3:37 PM by mlang

HttpBatchHandler: Don't batch everyting on a server

Today: protected HttpBatchHandler(HttpServer httpServer) This means everything or nothing on one HttpServer will support batching. I have HttpServer where I don't want to support batching of so...

Id #2264 | Release: None | Updated: Jun 4, 2015 at 12:34 PM by austvik | Created: Jun 4, 2015 at 12:34 PM by austvik

NullReferenceException when calling GetDependencyScope from BatchHandler

This code gives NullReferenceException: public class BatchHandler : DefaultHttpBatchHandler { public override async Task<IList<HttpResponseMessage>> ExecuteRequestMessagesAsync( IEnumerable<Htt...

Id #2263 | Release: None | Updated: Jun 4, 2015 at 12:26 PM by austvik | Created: Jun 4, 2015 at 12:26 PM by austvik

There needs to be better support for filtering by Type in WebAPI 2.2

4.9 Addressing Derived Types Any resource path or path expression identifying a collection of entities or complex type instances can be appended with a path segment containing the qualified name...

Id #2262 | Release: None | Updated: Jun 3, 2015 at 8:28 PM by cxc256 | Created: Jun 3, 2015 at 8:27 PM by cxc256

AuthorizeAttribute should check users and roles before returning false

We would like to allow access to a page of our webapp to either a role or a group of users. For example, members of the group Admins should be allowed, in addition to User1 and User2 who are not me...

Id #2261 | Release: None | Updated: Jun 2, 2015 at 2:56 PM by logankp | Created: Jun 2, 2015 at 2:56 PM by logankp

/token endpoint should not be enabled by default

I have a WebAPI 2 project that inexplicably implements the /token OAuth endpoint, despite there being no obvious code or configuration telling it to do so. I discovered this hidden surface area by ...

Id #2260 | Release: None | Updated: May 30, 2015 at 7:57 AM by bobmeyers | Created: May 30, 2015 at 12:31 AM by bobmeyers

unhandled exception in parsing incorrect multipart request

Hi, we are trying to send an incorrect multipart response to our WebAPI service, and we are getting a 500 response with the following stack trace from inside the framework. As a workaround I star...

Id #2259 | Release: None | Updated: May 27, 2015 at 1:29 AM by mospehraict | Created: May 27, 2015 at 1:29 AM by mospehraict

Json.Net TypeNameHandling.Auto is not correctly handled by BaseJsonMediaTypeFormatter

Hi, I'm facing a problem with my ApiController returning complex objects (with inheritance) in JSON (Json.Net) with TypeNameHandling set to "Auto" in Json.Net serializer settings (http://www.newt...

Id #2258 | Release: None | Updated: May 20, 2015 at 8:04 AM by ijardillier | Created: May 19, 2015 at 1:36 PM by ljcegi

Logical CallContext does not flow from async filter to action

I've observed an issue where any logical CallContext data set in an async action filter does not flow through to the controller action. For example, suppose a filter sets the value "set-by-filter...

Id #2257 | Release: None | Updated: May 19, 2015 at 7:46 PM by joelverhagen | Created: May 15, 2015 at 8:46 PM by joelverhagen

Html.TextBoxFor and HTML5 number input control decimal separator problem

Some info Number input control is a new HTML5 input type and is simply defined as <input type="number">. Its value attribute is a string that represents a floating-point number and according to t...

Id #2256 | Release: None | Updated: Apr 27, 2015 at 1:28 AM by zerhan | Created: Apr 27, 2015 at 1:28 AM by zerhan

Issue with JsonSerializerSettings used by ApiController.Json<T>(T Content)

Hi, I'm using MVC 5.2.3 and tried to configure GlobalConfiguration.Configuration.Formatters.JsonFormatter.SerializerSettings. E.g config.Formatters.JsonFormatter.SerializerSettings.Converters.Ad...

Id #2255 | Release: None | Updated: May 15, 2015 at 10:46 AM by dcumbo | Created: Apr 26, 2015 at 9:52 AM by minhkhoa4783

Use of PBKDF2 in Crypto.HashPassword

You are using PBKDF2 incorrectly: "PBKDF2 with HMAC-SHA1, 128-bit salt, 256-bit subkey, 1000 iterations". You are doing twice the work with no extra benefit. When you use PBKDF2 for password hashin...

Id #2254 | Release: None | Updated: Apr 24, 2015 at 12:05 PM by Sc00bz | Created: Apr 24, 2015 at 12:05 PM by Sc00bz

Bug in System.Web.Http.ModelBinding.FormDataCollectionExtensions.cs

In System.Web.Http.ModelBinding.FormDataCollectionExtensions.cs Line 58, is as follows: throw Error.Argument("key", SRResources.JQuerySyntaxMissingClosingBracket); this causes the error messa...

Id #2253 | Release: None | Updated: Apr 20, 2015 at 10:06 PM by chrisherring | Created: Apr 20, 2015 at 10:06 PM by chrisherring

Provide some way to redirect page from MVC method which are passing JsonResult.

Hello, Please allow to redirect methods that are returning JsonResult and even though want to redirect to some error page from that action. May be authentication failure or some other errors. ...

Id #2252 | Release: None | Updated: Apr 17, 2015 at 11:06 AM by komaldparekh | Created: Apr 17, 2015 at 11:06 AM by komaldparekh

TwoFactorSignInAsync Bug

The code below works fine... Except the fact that when the user has remember this browser checked it doesn't actually do it? OR sometimes it does it then when the user logs in its ok... but when a ...

Id #2250 | Release: None | Updated: Apr 2, 2015 at 10:14 PM by daw451 | Created: Apr 2, 2015 at 10:14 PM by daw451

Ajax helpers do not execute javascript code embedded in result if InsertionMode is InsertBefore or InsertAfter

Versions : Microsoft ASP.NET MVC 5.2.3, Microsoft ASP.NET Razor 3.2.3, Microsoft jQuery Unobtrusive Ajax 3.2.3, jQuery 2.1.3. I use Ajax helpers in Razor views to perform Ajax calls : @Ajax.Actio...

Id #2247 | Release: v5.2.4 Beta | Updated: Apr 2, 2015 at 3:43 PM by pranavkm | Created: Mar 25, 2015 at 11:38 AM by mgoyet

Razor checkbox generation

Hi, The ASP.NET MVC Razor engine generates the following for a boolean field: <input class="form-control check-box" data-val="true" data-val-required="The IsHappy field is required." id="Prop...

Id #2245 | Release: None | Updated: Mar 22, 2015 at 12:42 AM by weitzhandler | Created: Mar 22, 2015 at 12:42 AM by weitzhandler

jquery.unobtrusive-ajax sometimes not execute my OnSuccess js function

i use jquery.unobtrusive-ajax,it works mostly well,but it sometimes not execute my OnSuccess js function and navigate to a new page with the response data.by the way ,my jquery.unobtrusive-ajax js ...

Id #2244 | Release: None | Updated: Mar 24, 2015 at 10:54 AM by shenjintong | Created: Mar 17, 2015 at 9:54 AM by shenjintong

MVC 5 Html.Action route name

I want to render action (child action) within my view using Html.Action helper method. I have different routes which have unique names. I did not find the way to give the route name while using Htm...

Id #2240 | Release: v5.2.4 Beta | Updated: Feb 26, 2015 at 5:40 PM by yishaigalatzer | Created: Feb 25, 2015 at 7:00 AM by apmt

Reconsider how we dispose MessageHandlers in OWIN host

We implemented support for disposing the HttpConfiguration and message handlers in response to the OWIN OnAppDisposing notification in 5.1 thinking that it's the right time to dispose anything hold...

Id #2237 | Release: v5.2.4 Beta | Updated: Feb 26, 2015 at 5:45 PM by yishaigalatzer | Created: Feb 17, 2015 at 11:48 PM by nowakra

Add option to use permanent redirects in `RequireHttpsAttribute`

See http://aspnetwebstack.codeplex.com/SourceControl/network/forks/martincostello/RequireHttpsAttributeAsHttp301/contribution/8008 pull request which adds support to the RequireHttpsAttribute class...

Id #2236 | Release: v5.2.4 Beta | Updated: Feb 19, 2015 at 6:08 PM by dougbu | Created: Feb 12, 2015 at 1:20 AM by dougbu

Compiling Nuget Package for v3.0.0 - Tests fail

I have performed the following steps: Download aspnetwebstack-66298100f4e349d3812b1aad32c5278c256a2cdd.zip Open a Visual Studio 2013 Developer Prompt Issue build.cmd EnableSkipStrongNames Issue b...

Id #2232 | Release: v5.2.4 Beta | Updated: Aug 17, 2015 at 9:44 AM by MircoBabin | Created: Jan 30, 2015 at 7:20 AM by MircoBabin

Occasional UnobservedTaskException due to HttpListenerRequest disposed

Ported from http://katanaproject.codeplex.com/workitem/375. We occasionally get an exception like the following: TaskScheduler.UnobservedTaskException event was raised. env=prod exception=System...

Id #2224 | Release: v5.2.3 RTM | Updated: May 19, 2015 at 9:41 AM by izivcak | Created: Jan 5, 2015 at 9:10 PM by danroth27

Performance issues with System.Web.Mvc.Html.TemplateHelpers and default editor actions

We noticed a lot of blocking disk IO was occurring as we were load testing our MVC application. We took stack dumps when this was happening, and below is an example stack. We profiled DiskBuildResu...

Id #2220 | Release: v5.2.4 Beta | Updated: Jan 8, 2015 at 11:25 PM by danroth27 | Created: Dec 31, 2014 at 2:00 PM by mattpeterson

CorsMessageHandler does not respect IExceptionHandler

CorsMessageHandler will swallow all the exceptions that it catches and turn them into 500 response. This behavior does not work with a custom IExceptionHandler implementation where you want a non H...

Id #2219 | Release: v5.2.4 Beta | Updated: Apr 27 at 4:39 PM by fdelaporte | Created: Dec 26, 2014 at 6:28 AM by yufeih

extensiblity: OData serializer manipulates formatters workflow inconsistently producing unexpected results

To format OData v4, there is extensibility provided in form of custom attributes. Consider the following code: namespace System.Web.OData { /// <summary> /// An attribute to be placed on controller...

Id #2218 | Release: None | Updated: Jan 27, 2015 at 6:02 AM by lianw | Created: Dec 19, 2014 at 9:13 PM by schmidtaa

MVC Remote attribute does not work with complex objects and collections

Scenario For a model that has a property which is a complex object or collection where the object contains a property with a RemoteAttribute, the html generated will include the fully qualified na...

Id #2213 | Release: v5.2.4 Beta | Updated: Mar 25, 2015 at 3:22 PM by mgoyet | Created: Dec 17, 2014 at 1:44 AM by smuecke

Attribute routes cannot be applied to controllers with generic (non action) methods

when calling MapMvcAttributeRoutes() it fails if any controller (or the base class of a controller) contains a generic method. In our case we have a generic base class that handles some default o...

Id #2201 | Release: v5.2.4 Beta | Updated: Dec 16, 2014 at 8:34 PM by nowakra | Created: Dec 3, 2014 at 2:27 PM by Michelvg

jQuery unobtrusive validation does not behave correctly with remote validation when multiple items are selected in a checkbox \ dropdown list

Consider <input type="checkbox" name="allowedDays" checked value="Sunday" /> <input type="checkbox" name="allowedDays" value="Monday" /> <input type="checkbox" name="allowedDays" checked value="Fr...

Id #2198 | Release: v5.2.4 Beta | Updated: Jan 5, 2015 at 9:40 PM by danroth27 | Created: Dec 1, 2014 at 6:33 PM by pranavkm

Disabled Html.CheckBox -> Hidden Field not disabled

When Html.CheckBoxFor(m => m.Property, new { disabled = "disabled" }) is used, the generated html-input-hidden-field should also be disabled, otherwise the request value is alway false.

Id #2151 | Release: v5.2.4 Beta | Updated: Oct 7, 2014 at 5:34 PM by yishaigalatzer | Created: Oct 6, 2014 at 1:57 PM by rafe11

Razor does not correctly parse HTML attributes that have spaces surrounding the equals

After playing around with the parse tree a bit I noticed that if you were to create HTML elements such as: <div class = "foo"></div> <div class ="foo"></div> <div class= "foo"></div> The...

Id #2149 | Release: v5.2.4 Beta | Updated: Oct 7, 2014 at 5:21 PM by yishaigalatzer | Created: Oct 1, 2014 at 10:53 PM by NTaylorMullen

Apply common type conventions on Enum type

For example, DataContractAttribute can be used on entity type and complex type, for example: [DataContract(Namespace = "MySpace")] public class Customer { …. } for enum type, the DataContrac...

Id #2115 | Release: vNext | Updated: Aug 22, 2014 at 4:39 AM by xuzhg | Created: Aug 22, 2014 at 4:39 AM by xuzhg

HttpMessageInvoker object disposed exception

Hello, I am hosting a Web API REST service using Owin and a typical startup class, for example: public void Configuration(IAppBuilder builder) { System.Diagnostics.Debug.WriteLine...

Id #2091 | Release: v5.2.4 Beta | Updated: Dec 2, 2014 at 11:55 PM by yishaigalatzer | Created: Aug 4, 2014 at 8:16 PM by thebothead

Web API Basic Auth sample throws null ref when Invalid Credentials are supplied

Authorization still fails but an exception should not be thrown.

Id #2074 | Release: vNext | Updated: Dec 9, 2014 at 10:32 PM by yishaigalatzer | Created: Jul 25, 2014 at 3:42 AM by MrkMnl

WebApi ModelBinder - empty parm setting non-nullable integer to 0

I submit that given the following querystring ?mycoll=&singlevar=1 the following model class MyModel { public ICollection<int> mycoll { get; set; } public int singlevar { get; set; }...

Id #2067 | Release: vNext | Updated: Jul 23, 2014 at 10:30 PM by yishaigalatzer | Created: Jul 16, 2014 at 3:59 PM by acsteitz

Html.AntiForgeryToken() adds duplicate X-Frame-Options headers if called more than once

System.Web.WebPages v.3.0.0.0: Sometimes, more than one anti-forgery token is needed in a page (when there are multiple forms). Calling Html.AntiForgeryToken() causes the "X-Frame-Options: SAMEO...

Id #2057 | Release: vNext | Updated: Jun 29 at 1:39 AM by arishlabroo | Created: Jul 10, 2014 at 4:16 PM by jeremylew

HelpPage VB version throws exception when the model is a generic type

Following was reported from customer...I was able to repro this and verified that C# version works fine in this case: I had a problem with this package when using generic types. I had to replace ...

Id #2050 | Release: vNext | Updated: Jul 9, 2014 at 10:26 PM by yishaigalatzer | Created: Jul 7, 2014 at 10:35 PM by kichalla

MultipartFormDataStreamProviderHelper should check ContentDispositionHeaderValue.FileNameStar

Some libraries (e.g. Python) set "filename*" but not "filename" in the Content-Disposition when sending multipart form data for a file. MultipartFormDataStreamProviderHelper should check ContentDis...

Id #2008 | Release: vNext | Updated: Jun 16, 2014 at 5:10 PM by yishaigalatzer | Created: Jun 10, 2014 at 4:27 PM by ejball

Provide a way to enumerate all MVC actions

We don't currently have a good way to enumerate all actions and action descriptors in the framework. It's a common ask for extensibility and all the code that does it (correctly) is internal. htt...

Id #1999 | Release: vNext | Updated: Mar 27, 2015 at 8:50 PM by jasodonnell | Created: Jun 4, 2014 at 12:17 AM by nowakra

OutputCacheAttribute should reuse the response encoding

In OutputCacheAttribute.cs, when the response output is substituted with a StringWriter, the encoding and the culture of the response output are not forwarded to it. Also, because the default Str...

Id #1984 | Release: FB 1.0.0 | Updated: May 28, 2014 at 10:10 PM by danroth27 | Created: May 28, 2014 at 5:59 PM by sebastienros

Public access to ActionDescriptor and ControllerDescriptor

When IAuthorizationFilter is implemented, AuthorizationContext provides access to ActionDescriptor and ControllerDescriptor, so that both can be used to check whether controller and/or action is ma...

Id #1983 | Release: FB 1.0.0 | Updated: May 30, 2014 at 11:27 AM by NightOwl888 | Created: May 28, 2014 at 11:30 AM by atuzovic

Help page: Documentation of data model annotations in "buddy" class (MetadataType)

Hi, nice work with adding documentation of model annotations :-) In many scenarios the model class is a generated partial class. In those cases, the recommended way to add field annotation is via...

Id #1971 | Release: FB 1.0.0 | Updated: Dec 10, 2014 at 8:19 PM by rbigbie | Created: May 27, 2014 at 8:02 AM by ToreErstad

[unit tests] Confirm no unit tests rely on ambient locale

This is initially more of a work item. But I expect some problems will turn up and need to be fixed. In a quick check, the Turkish user locale does not cause problems when unit testing the web s...

Id #1966 | Release: v5.2 RTM | Updated: Jun 16, 2014 at 12:51 AM by dougbu | Created: May 23, 2014 at 9:04 PM by dougbu

Return OK on CORS preflight requests no matter what

A CORS preflight request is about establishing trust. It's purpose is not to tell whether or not a resource might work, but if a trust can be established between between the calling domain and t...

Id #1951 | Release: vNext | Updated: May 26, 2014 at 12:05 PM by jgauffin | Created: May 17, 2014 at 8:27 PM by jgauffin

DropdownListFor modifies the SelectListItem collection passed to it

Hi, When using the DropdownListFor helper and passing to it the collection of SelectListItem from which it is populated, the DropdownListFor will modify the passed collection after it is called; ...

Id #1913 | Release: vNext | Updated: Mar 26 at 4:04 PM by 0lorak0 | Created: May 6, 2014 at 11:05 AM by wutever0

Make FilterGrouping and GetFilterGrouping (HttpActionDescriptor) public

I'm currently in the process of implementing my own IHttpController, which to a large degree mirrors the functionality of the ApiController, but for several reasons can't extend it, the main ones b...

Id #1902 | Release: vNext | Updated: May 7, 2014 at 10:41 PM by yishaigalatzer | Created: May 2, 2014 at 3:24 AM by Alxandr

Support using member name as value in EnumHelper

I think having the option to use the Enum member name as value would be a good feature. Text values are a lot more descriptive, specially when used in query strings, e.g. ?color=Red instead of ?c...

Id #1894 | Release: vNext | Updated: Apr 30, 2014 at 10:19 PM by yishaigalatzer | Created: Apr 30, 2014 at 1:49 AM by maxtoroq