Questions tagged as '.net'

0
answers

problems when running a .Net project with Docker

I'm trying to follow this tutorial: link To run a .Net application in Docker. However, when I run the docker ps -a command, the following output appears: "dotnet aspnetapp.dl…" 11 seconds ago Exited (145) 8 seconds ago...
asked by 12.04.2018 / 19:10
1
answer

Verify if a method was executed depending on the return value of another method

With xUnit and Moq verify if a method is executed depending on the return value of another method. Example: public class A { public bool M1() { // return true or false ... } public void M2() { // Do something ..... } } public class B...
asked by 04.04.2018 / 21:53
1
answer

Equivalents to "Controllers" in the .Net Framework

A few months ago I had an error and believe what a web page should be in ASP.Net Core as a class library. For several things that are used and for incompatibility, I have to pass it to .Net Framework (4.6.1 specifically). I am aware that I ha...
asked by 04.04.2018 / 10:40
0
answers

Error Serializing

From an XML I want to get the xsd to get my class in vb .net or C # and thus be able to load any xml that they send me. I have tried several web tools to get the xsd and then I generated the class with Xsd2Code but I get the following error when...
asked by 12.03.2018 / 15:51
0
answers

I have problems when saving a .NET record using MVC

I am creating a program that keeps track of vehicles but at the moment of entering its properties and I give it in "Create" I get the following error I do not know what that error is, if someone can perfect @model WebCar.Models.Vehicu...
asked by 26.03.2018 / 02:15
1
answer

how to prevent my bootstrap modal from closing with the keyboard and only with the bonton accept from the same modal? [duplicate]

Hi, I have created a boostrap modal and I have removed the × and of course it does not have a cancel button, only one accept that it directs me to another page. Well, what I need is that my modal is not closed with the ESC key or clicking o...
asked by 06.03.2018 / 17:19
0
answers

Error permissions when moving directory

I have tried to solve this error for some time but I can not find the solution. Code public static void PermDirectory(string perms) { var directory = new DirectoryInfo(perms){ Attributes = FileAttributes.Normal }; foreach (var in...
asked by 05.03.2018 / 16:02
0
answers

revise static method to return dataset through ajax

I am trying to fill a gridview from a static method since I use ajax but it was difficult to know how some sentences would have to go according to an example that works but they create a DataTable with data that they specify and what I try to do...
asked by 25.02.2018 / 23:25
0
answers

update updatepanel with js or jquery

How to update a .net updatepanel with Javascript through an HTML button? There are several "examples" but none really worked for me, I've tried with the following, maybe I'm missing something: $('#btnOk').on('click', function () { v...
asked by 25.02.2018 / 18:56
0
answers

Google Login in .Net

I need to implement a Login button through Google and I really have a lot of dizziness between Oauth2 and Open id ... The documentation is not clear to either of them and I really just started with the implementation of Oauth2 and the theme is t...
asked by 19.02.2018 / 16:27