Questions tagged as 'asp.net-mvc-5'

0
answers

How to perform access permissions via AuthorizeAttribute

I'm researching how to implement access control in my web application. I'm using Asp.Net MVC with identity, the idea is that a certain user can only access a certain page. So, in search I checked that we can use AuthorizeAttribute ,...
asked by 27.10.2016 / 18:31
1
answer

MOIP consume Json Web Api MVC

I need to use the Moip payments API as payment method of my system, how do I do the request via json ? Documentation Consultar cliente GET Por meio desta API é possível consultar as informações e detalhes de um cliente. ENDPOINT...
asked by 10.08.2016 / 18:13
0
answers

Problem in System.Data.SqlClient when upgrading to 5 core aspnet

I updated all my project to aspnet 5 core because I was using the dnx vnext and apparently it worked everything right, but by conducting tests I noticed that some values did not come correct and to debug I realized that the parameter array SqlPa...
asked by 09.08.2016 / 16:16
1
answer

Highlighting does not work in Razor MVC 5 views

I'm having a Razor ASP.NET MVC 5 project that was built on VS2013 on another computer. When loading it on my computer with VS2012 the highlighting and IntelliSense Views (cshtml) do not work. I noticed that my VS2012 did not have MVC 5, if I...
asked by 21.07.2016 / 15:53
1
answer

Upload information _Layout.cshtml database welcome

I want to load the information in _Layout.cshtml as registered in the database, for example, @ViewBag.MetaDescription , @ViewBag.MetaKeywords , @ViewBag.Title and other information also coming from the database. What...
asked by 04.05.2016 / 22:01
0
answers

ASP.NET MVC project does not work on Godaddy Windows Plesk Hosting [closed]

Hello, I've read a lot of questions here and I've tried everything, but my MVC application does not run on Godaddy server anymore, I've already changed the permission of the files, I've already inserted the trust level="Full" in the Web .config,...
asked by 07.05.2016 / 19:54
1
answer

C # NullReferenceException error in ToList () method

I'm working on a project in C # MVC for WEB with EntityFramework. I was able to set it up next to the database and I also installed Ninject. The first controller I am working on is Users. I want to create an environment for maintaining such d...
asked by 17.02.2016 / 02:11
0
answers

Error reading a byte array passed as parameter

This is the error:    The entry is not a valid Base 64 string, since   contains a non-base 64 character, more than two characters of   or an illegal character between   fill-in. This is my view, where I pass the parameters from my grid (t...
asked by 09.11.2015 / 19:09
0
answers

The number of generic arguments provided is not equal to the generic definition definition. Parameter name: instantiation

I'm having a problem while developing an application in Asp.net MVC with IOC, Automapper and all other screens work perfectly, just not for Drivers. Unable to identify the error, could they help me? Follow the controllers, and the other classes,...
asked by 02.12.2015 / 12:55
2
answers

validation for PartialView

I have a page that calls a partialview formed by a div with text field into it, through a button. Each time the button is pressed a line is added. The problem is that I can not validate the empty fields of this partialview. I use @Html.Val...
asked by 23.09.2015 / 21:18