Questions tagged as 'c#'

1
answer

Is it more correct to use the Master-Detail concept?

I have a situation that I would like to use the most correct (elegant) way to implement. The scenario is as follows: I'm building a HelpDesk system where Tickets are stored in a table (and consequently has its own Model) and the Ticket evolut...
asked by 18.03.2017 / 13:27
0
answers

How to sign PDF with A3 digital certificate in C #?

I need to sign a PDF file with A3 digital certificate. It can be in C # or VB.NET.     
asked by 21.02.2017 / 15:14
0
answers

Return value DataLayer [closed]

Good afternoon. I have a procedure that does some commands and returns 0 = success; 1 = unsuccessful; alter PROCEDURE [dbo].TesteRetorno ( @DS_NOME_ARQUIVO_SINCRONISMO AS VARCHAR(200) = null ) AS if exists(select...
asked by 27.07.2017 / 18:57
0
answers

Permission on directories for the entire domain

I'm trying to create a folder and give it read permissions: public static void createFolder(string path) { DirectorySecurity securityRules = new DirectorySecurity(); securityRules.AddAccessRule(new FileSystemAccessRule(@"EMPRESA\accoun...
asked by 26.07.2017 / 19:55
1
answer

what is the clientcontext sharepoint object?

I have a question, I have already researched in some places but I can not understand what context the clientcontext class instantiates. I am using in my code passing a URL (obviously) I know this class creates a page context that has been pas...
asked by 16.03.2017 / 00:28
0
answers

C # client response Error 502: Bad Gateway - how to solve?

using (var httpClient = new HttpClient()) { var request = new HttpRequestMessage(); string pathApi = "https://uatdoorway.derbysoftsec.com/xml/hoteldescriptiveinfo/username/"; string xm...
asked by 17.02.2017 / 20:27
0
answers

Invalid length for a base-64 character string or array. Error decrypting String

I need a help, I'm using an encryption code and when I log in I get this error:    'Invalid length for a base-64 character string or array.' Encryption code: using System; using System.Collections.Generic; using System.Linq; using Syste...
asked by 03.03.2017 / 17:51
0
answers

Socket between C ++ and C #

I'm facing a problem. I have the server code made in C ++, running on ubuntu. And I have the client code done in C #, running on windows. In the code made in the server (C ++) I came across a problem //recebe tamanho arquivo read(idSo...
asked by 03.03.2017 / 13:13
2
answers

How do I disable Forms Authenitcation for the Web API?

I have an Asp.Net MVC project and inside it has the Api web, when a request sends an invalid token, the forms authentication redirects to the login page, but I need it to only return an Http 401 error as it is an Api Rest. I already tried to use...
asked by 03.02.2017 / 17:24
1
answer

What is causing Malformed Reference Element in my Signature?

I'm trying to sign an XML by passing the reference tag, id, XML, and certificate. In a certain situation it does not work, but I never know what the situation is, it's a bit random. And now, even though I'm changing reference.uri to...
asked by 17.03.2017 / 16:49