Questions tagged as 'asp.net-mvc'

1
answer

ASP NET MVC Authentication

What better way to separate permissions for logged in users? Was it using annotations and roles? Because I want to release certain pages and certain functions depending on the permission of the logged in user. Someone could tell me better how...
asked by 30.07.2015 / 20:43
1
answer

How can I make an MVC lambda filter

I'm making a simple filter, and display the data on the page. The code I'm using is this: mt.ModelItens = db.Forecast .Where(f => (f.CanalForecast.area == idArea && f.CanalForecast.despesa == idDespesa))...
asked by 15.10.2015 / 16:52
1
answer

Doubt filter with linq, ASP NET MVC

I'm having a doubt on a filter using Linq, I have a critical object Within Critical has an ienumerable I need to return a list of critics that the status of the last moveocritica is equal to 2 But the code below is giving error var Criticas =...
asked by 05.03.2015 / 03:23
1
answer

SecurityException - Permission Error

Hello, I'm uploading an application in my Locaweb hosting and I stopped in this error, does anyone know how to solve this permission problem? [SecurityException: Request for the permission of type 'System.Diagnostics.PerformanceCounterPermissi...
asked by 04.03.2015 / 12:53
2
answers

Import Itaucripto DLL in VB

Hello, I am deploying the second via itaú ticket, however I am trying to work with ASP.NET VB and I do not have much knowledge in this language. I have done everything right and it is working locally, but when I go up to my hosting in Locaweb I...
asked by 26.02.2015 / 21:28
1
answer

Attach many objects with id = 0

Good morning, people, On my system here at work I have the following architecture: A PROJECT (which has some information) is composed of several PARTS. The parts are very different from each other. One, for example part 1, has several attache...
asked by 08.06.2015 / 15:34
1
answer

Does not Write IIS error System.Diagnostics.XmlWriterTraceListener

I did a test project in Github to demonstrate how the Log works with System.Diagnostics.XmlWriterTraceListener everything works on my machine, but when I play on the server it only writes information and Warning the error it does not anyone coul...
asked by 23.10.2015 / 11:06
1
answer

How to translate error messages from validation summary errors asp .net?

I do not find a file that brings me the error message strings to be translated, annotation is fine, only those that bring more complex errors, such as    Passwords must have at least one digit ('0' - '9').     
asked by 21.10.2015 / 17:05
1
answer

EF context changed, but without updating database structure

I'm using the free hosting service in a free plan. Until then, everything worked fine. But after I've made some changes to my database, their database just does not work, it gets error:    The model backing the 'ContextEntities' context...
asked by 04.02.2015 / 01:39
1
answer

How to work with the @Html.DropDownList?

Friends After following the example I made the adjustment in the code, I am not able to send the information to ActionResult @model ProjetoDelphiMobile.Models.cliente @{ ViewBag.Title = ""; } <script type="text/javascrip...
asked by 14.04.2015 / 22:17