Questions tagged as '.net'

1
answer

C # - OutOfMemoryException while fetching thousands of Active Directory groups

I'm looking for thousands of groups with hundreds of users each from Active Directory, but it's consuming a lot of memory. It starts with about 300 MB and when it reaches about 1800 MB, seen in the task manager, an OutOfMemoryException is thrown...
asked by 02.08.2017 / 18:47
0
answers

How to change the default folder of an ASP .NET Core application?

I'm trying to set up an ASP .NET Core Web site to host an AngularJS application. The structure that my "index" page is using is: /wwwroot/app/index.html I tried some settings in the Startup.cs file, like this: app.UseStaticFiles(ne...
asked by 02.08.2017 / 18:23
1
answer

Rijndael encoding with base 64 in C #

I'm doing a Rijndael encryption and I imagine I'm close to finishing it, but when decrypting I get the error:    Invalid length of data to be decrypted. using System.Text; using static Array; class EncoderRijndael { public static Ri...
asked by 06.07.2017 / 22:03
0
answers

Request for ASP.NET MCV super slow

I have a complicated problem in my project, and I no longer know what else to do. I have an MVC4 project (after an upgrade of the MVC3 project that the company where I work already had) and it is becoming almost impossible to debug through VS201...
asked by 30.06.2017 / 12:13
2
answers

ViewModel with INSERT on two Controllers

I have two Controllers: 1 - Register the CPF (CPF, Name) 2 - Register the CPF Telephone (CPF, DDD, Phone) ViewModel: using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Component...
asked by 18.07.2017 / 01:19
1
answer

Building XML file using xml Serializer - More efficient way

I am building an XML file whose structure must be nested tags as shown below: Theaboveimageistheoutputtothefollowingcodebelow:publicclassFeeder{publicstringName{get;set;}publicdoubleVMin{get;set;}publicdoubleVNom{get;set;}publicdoubleVMax{ge...
asked by 17.07.2017 / 14:02
0
answers

Sort the contents of the MetroGridView by clicking on the Heder title of a given column

Hello everyone, I have a problem, which I have been fighting for some time now. I'm using in my application MetroFramework and linq, and I noticed that MetroFramework does not have certain properties or that they do not work as they should, or s...
asked by 05.06.2017 / 11:07
0
answers

How to deal with this situation where a class must have a persistent configuration object?

I found a problem recently that basically was this: a system needs every last day of the month to show the option for the user to generate the next month's tickets and need every first day of the month to show the option for the user to generate...
asked by 13.05.2017 / 05:02
1
answer

Run mongoimport command via C #

I need to run the mongoDBD command from mongoDB via code but it is not right: 'pro.FileName = "cmd.exe"; //pro.UseShellExecute = false; pro.Arguments = @"/k cd C:\Program Files\MongoDB\Server.4\bin\";...
asked by 05.05.2017 / 03:33
7
answers

How do I remove accents in a string?

I have a string áéíóú What I want to convert to aeiou How do I remove the accents? I need to save in the database as a URL.     
asked by 11.12.2013 / 16:51