Questions tagged as 'c#'

1
answer

Problems when referencing JavaScript and css files - Asp.net Core

I am trying to adapt a layout template that I found on the net in my ASP.NET core, but I am not able to make it work .... I created a Content folder in the root of the project and inside it I have subfolders with files css and javascript. I alre...
asked by 30.01.2018 / 01:39
0
answers

Array Animation C # Unity

Error in the array of animation, see in the video please that they will understand, at the time of the exchange of an object to another it is completely erased. Video public Animation[] Animation1; private int Selecao8; public void Pr...
asked by 30.01.2018 / 22:30
1
answer

How to call a service in C # using AngularJS

Good afternoon, so I'm in doubt on how to call a service in C #, I've tried in many ways but I did not succeed. (function () { 'use strict'; function Service($http, $q) { const url = 'http://172.23.1.31:81/Service1.svc';...
asked by 30.01.2018 / 19:36
1
answer

POST method receiving object empty. W#

I have a controller with a POST method that always receives the null parameter. I'm sending JSON through postman. I have tried the class as a parameter, I have already tried it by string as a parameter and in both cases it is leaving it null;...
asked by 04.02.2018 / 23:34
0
answers

FileUpload Jquery with C #

I have the following problem I'm using MVC (C #) and I need to upload a document in general (.doc, .pdf, .png, etc.) I'm using the FileUpload library and with jquery 3.1 In the example standard the component has, it's jquery 1.9 (I do n...
asked by 05.02.2018 / 00:07
1
answer

Avoid Windows compatibility mode

I'm servicing an old code in C #. The program was installed in Windows 7 at the time it was created, now with Windows 10 it is necessary to run with compatibility mode to work. Compiling with a more current .Net, would it no longer be nece...
asked by 06.02.2018 / 22:09
2
answers

Thread and task with static method

How do I return the result of this method to a textbox static async Task<object> StreamingRecognizeAsync(string filePath) { var speech = SpeechClient.Create(); var streamingCall = speech.StreamingRecognize();...
asked by 30.01.2018 / 00:25
1
answer

Problems with BackSpace in TextBox

I have a project to set up a textbox that would only include hours and minutes (With DateTimerPicker, you have to do it quietly, however, you need to click on another field to change data, and I found this very bad for the client ... < p> In t...
asked by 29.01.2018 / 22:39
0
answers

Could not load the file or assembly 'XXX' or one of its dependencies

Good, I have a private repository of NuGet's and I'm having some dependency problems between NuGet's. I have a NuGet that is installed in the test1 project. In this project, I marked NuGet as developmentDependency="true" . This pro...
asked by 29.01.2018 / 12:37
5
answers

Schedule execution process in C #

I have an application that will be running 24h / day the 7days / week, that is, it will always be running. I need at a specific time, every day a method of this application is called.     
asked by 17.08.2015 / 15:40