Questions tagged as '.net'

1
answer

Invalid postback or callback argument

I'm having a mistake that started to happen, I've been trying for a couple of days for a solution to it and so far without success. I have a whole form made in webforms that when clicking the button to send the data the following error is gen...
asked by 13.10.2016 / 15:20
1
answer

Claims in TestMethod

Good morning everyone, I am starting in TDD in Visual Studio, and I am having problems / difficulties to pass the Claims permissions on the request that is performed to the server. The following error is occurring:    Message: Test method Mai...
asked by 27.10.2016 / 13:13
1
answer

LINQ to SQL InheritanceMappingAttribute property Code

What is the purpose of the Code property of the InheritanceMappingAttribute attribute? The documentation describes this way:    This property holds a value that appears in the database table in the% col% of column to indicate...
asked by 22.04.2016 / 16:46
0
answers

Compiler failure with error code 255. bin \ roslyn \ csc.exe

   Compile Error       Description: Error compiling a resource needed to service this   solicitation. Review the specific details of the error and modify the   source code properly.       Compiler Error Message: Compiler Fails with Error Code...
asked by 30.08.2016 / 22:15
3
answers

How to convert date in dd / mm / yyyy format?

Once I published my app, I started getting the dates in American format like this: 9/14/2016 12:00:00 AM How to format for dd/MM/yyyy ? I tried convert.ToDateTime() more does not work.     
asked by 14.09.2016 / 18:11
0
answers

NHibernate.XmlSerializers - Does not it exist?

   Could not load file or assembly   'NHibernate.XmlSerializers, Version = 4.0.0.4000, Culture = neutral,   PublicKeyToken = aa95f207798dfdb4 'or one of its dependencies. O   system can not find the file specified. My application started req...
asked by 26.10.2015 / 13:32
1
answer

How to make a lambda pivot in a C #

I'm having a hard time making a pivot command on a list coming from the bank. Abovetheselectthatiscomingwiththedata..ThedatefieldIwouldliketoplacethepivotcommand.Followmyclass:publicclassRelatorioPrincipalModel{publicstringCodRelatorio{get;s...
asked by 22.02.2016 / 21:42
2
answers

API does not receive post with list

I have an API that receives a post, if I only receive a single contract, it receives the data normally: [HttpPost("GravaContratos")] public async Task<JsonResult> GravaContratos(ContratoModel contrato) { //faz alguma c...
asked by 19.08.2016 / 17:14
1
answer

Function that returns other functions

I have three methods being called separately in the controller with JSON. Each of them returns me Id Name . I need to call these three methods in the same function in controller . How can I join all three methods in the same functi...
asked by 28.09.2016 / 14:30
1
answer

How to update hosted ASP.NET site in Locaweb

I have a website running 4 years ago on a client of mine. The site was developed in VB.Net, and Locaweb migrated its servers from Windows 2003 to 2008 and consequently changed the Trust Level from Full to Medium and the following error app...
asked by 21.05.2015 / 00:18