Questions tagged as 'c#'

3
answers

Problem in running the Visual studio debugger

I have a problem with my project, I use ASP.NET MVC 5. From time to time I get this message every time I run my project, the problem is not the visual studio installed on the machine (
asked by 17.11.2017 / 14:49
1
answer

How to use the list when it does not know the object that will be returned?

I have an Oracle database and need a popular gridView . I'm doing with var , because I do not know the type that will be returned. Can you make a list in var , example list<var> , and then play on grid ? gridview1.dat...
asked by 16.11.2017 / 19:56
1
answer

Send email to register form

I need a help from you guys, I have a form on my system, I need it when I register it, send an email to a user. When I click save, I enter this post to save the data. [HttpPost] public void EventosAdversos(EventosAdversos obj) { var hos...
asked by 17.11.2017 / 12:43
2
answers

Problem communicating with eSocial webservice

I have the following problem communicating with eSocial webservice, I'm using C # so I added the webservice reference in my project and now I need to send an XML, and what I thought was: to establish a secure connection, define a certificate, an...
asked by 20.11.2017 / 18:06
1
answer

AspNet.Identity Creating user with Role

It's the first time I'm working with Entity and Identity and I'm confused about how my user persists. Basically I have a User table, with several relationships with the database and the Id int) I have the Identity AspNetUsers table and AspNetRol...
asked by 20.11.2017 / 17:52
2
answers

How to send 1 object and 1 vector to an API in C # with $ http.post?

In my application I created an API in C #, which is consumed by my web application in Angular. I need to pass 1 object and 1 vector as parameters to the API, but the content comes empty in the API, how to solve? Here are my codes: Part of...
asked by 24.10.2017 / 16:12
1
answer

TransactionScope - Problem with Rollback

I need the TransactionScope to rollback if any of these foreach returns error. I added an Exception manually between 2nd and 3rd foreach to test if rollback was working, but the information saved in the 1st and 2 foreach were not...
asked by 23.10.2017 / 21:02
3
answers

Load grid information into textbox in a form that is already open c # windows form

Hello, I'm trying to do something that looks simple but I'm not getting it, I want to click a button to add the data from a grid go to another form that is already open. The problem is that I am only able to load a new form. This is not what I w...
asked by 29.10.2017 / 18:40
3
answers

Error formatting date in C # [closed]

I'm trying to format a date: string s = linha.data.ToString("yyyyMMdd"); But I'm getting an error in ToString()    No overload for Method 'ToString' takes 1 argument Any tips? EDITED In my date field, when I ho...
asked by 28.10.2017 / 23:59
1
answer

Swapping Variables for Selected Word Documents

I've seen quite a few examples of changing variables in a word document with find replace, but only with a document, and passed the path of it in an 'object template'. In my case, I bring several documents word from a directory (in a checklistbo...
asked by 30.10.2017 / 19:29