asp.net-mvc-5.1 Questions
32
Solved
In ASP.NET MVC 4.5.2 Framework, after typing @Html.LabelFor() or @Html.EditorFor() in a view, I'm getting this error:
The type 'Expression<>' is defined in an assembly that is not referenced...
Dissuasion asked 27/6, 2015 at 8:43
2
Solved
I have a problem I can not understand in asp.net identity
apply the following steps
create two empty web projects, they have names :
WebApplication1
WebApplication2
install package "Microsoft ...
Tobar asked 12/4, 2014 at 12:0
5
Solved
I'm using MVC 5.2.0 and I'm trying to use the new Html.EnumDropDownListFor. This is how I'm setting the values:
//Model
public class MyModel {
public int SelectedEnumId { get; set; }
public Test...
Birdman asked 16/7, 2014 at 1:24
3
In the template project generated by visual studio for ASP.NET identity authentication for Web Api 2 project, I added a class ApplicationUserStore(thats my custom userstore)
public class Applicati...
Addiel asked 5/6, 2015 at 3:38
3
If I right click an MVC website project and choose Add->Area... then type in the area name and hit "Add". I get :
"There was an error running the selected code generator: 'Value does
not fall w...
Comical asked 11/3, 2014 at 8:39
5
Solved
I have a Post controller on a model with some string fields and an image. Exact identical code works on MVC4 but in MVC 5 the Request.Files.Count is always 0
My model has byte[] for image rather t...
Cece asked 16/3, 2014 at 10:59
11
Solved
I created a new ASP.NET MVC 5 web project in VS 2013 (Update 1) then updated all NuGet packages. When I build the project, I get the following warning:
warning MSB3243: No way to resolve conflic...
Straightforward asked 1/2, 2014 at 12:31
4
Solved
I have an MVC 5.1 web application where I have recently started using TypeScript. I want to use sourcemapping, so I have included both the .ts, .js and .js.map-files in the project.
When I publish...
Copacetic asked 20/6, 2014 at 7:26
6
Solved
Every time I run the application same objects are added to the database(duplicates).
My Global.asax:
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
u...
Royster asked 15/8, 2014 at 20:51
4
Solved
In my MVC5.1 project I'm using bundling and minification with CSS rewriting transformation:
styleBundle.Include("~/Content/Site.css", new CssRewriteUrlTransform());
bundles.Add(styleBundle);
Cs...
Chaw asked 19/2, 2014 at 11:14
5
Solved
I'm having this weird error only in .cshtml files in VS 2015.
The error doesn't show up when I open the project with VS 2013.
Error CS0246 The type or namespace name 'System' could not be found
...
Vocalism asked 19/10, 2015 at 13:1
4
Solved
I created a new Project in Visual Studio 2013, a WebApi & MVC 5 project and updated all nuget packages. It updated to mvc 5.1. Now I cannot Successfully build the project it says
assembly uses...
Numeral asked 13/4, 2014 at 13:55
4
I write application in ASP .NET MVC 5.1
I have a field:
[DisplayName("Date of Birth")]
[DataType(DataType.Date)]
public DateTime BirthDate { get; set; }
and then in View
<div class="for...
Discounter asked 10/9, 2014 at 12:40
3
Solved
...guess I'm the first to ask about this one?
Say you have the following routes, each declared on a different controller:
[HttpGet, Route("sign-up/register", Order = 1)]
[HttpGet, Route("sign-up/...
Stagy asked 28/1, 2014 at 18:59
2
Running in debug from VS 2013.2RTM Pro, MVC 5.1 app.
If the compilation mode is set to debug="true" it is supposed to disable Bundling and minification but it does not. When I examine the View sou...
Outlive asked 17/5, 2014 at 3:12
5
Solved
In my view I have a enumdropdownlist (a new feature in Asp.Net MVC 5.1).
@Html.EnumDropDownListFor(m => m.SelectedLicense,new { @class="form-control"})
If I execute the above code I get dropd...
Bogy asked 19/2, 2014 at 11:6
6
Solved
Javascript
jqXHR = $.ajax({ url: $frm.attr("action"), type: "POST", dataType: "json", cache: false,
headers: headers, contentType: "application/json;charset=UTF-8", data: ko.mapping.toJSON(data, ...
Brown asked 27/2, 2014 at 14:19
1
Solved
I have the following action in an asp.net WebAPI controller:
public HttpResponseMessage GetCBERSS(string Site, string File, string User, string Password)
{
string URLString = string.Format("https...
Lessen asked 2/7, 2014 at 18:24
2
Solved
I just noticed that MVC 5 is using a different class for input fields when using EditorFor. I think its from a lower version of bootstrap, so the current class doesn't really add up.
I'm talking ...
Quart asked 31/1, 2014 at 14:49
3
Solved
I know there are several questions a bit like this one, but as I'm unable to locate any documentation and none of the other questions have any answers that help me, here goes:
I create a new ASP.N...
Stringency asked 29/4, 2014 at 8:6
3
Solved
I have a dropdown list. If user chooses to click Fetch call I want to pass id of selected Call to action FetchCall in controller Person.
<p>
@Html.DropDownListFor(m => m.CallsToMake, ne...
Determined asked 15/9, 2014 at 21:3
1
I am using Entity Framework 6 with an MVC5 webapi2 project against an Oracle database.
I am trying to add some ApplicationRoles in the Seed method, but when I execute update-database I get this ex...
Sphery asked 14/8, 2015 at 9:35
3
Solved
I've created an ASP.Net MVC5 application, in which I have configured (and have working fine) Individual User Accounts via Google, Facebook, etc.
What I'd like to do is also support authentication ...
Threesquare asked 21/5, 2014 at 12:11
1
Solved
I am working in an ASP.NET MVC 5 application. Users are able to register and login without any issues. However, when one user forgets his/her password, the forgot password process (already in place...
Areopagus asked 15/8, 2015 at 14:31
3
Solved
rI need some advice on where to run a calculation on data.
I have a viewmodel that contains all the fields that I need for my calculation and I created the following for one of my calculations:
p...
Shrivel asked 30/7, 2015 at 17:45
1 Next >
© 2022 - 2024 — McMap. All rights reserved.