Questions tagged as 'c#'

1
answer

Error consuming WebApi in C #

I have exposed a WebAPI developed with C# but when consuming the URL https://myServer.mx/webApiRestSyncService/api/Clients I have the error    HTTP / 1.1 415 Unsupported Media Type How can I fix it?     
asked by 02.12.2016 / 17:10
1
answer

spaces between several items in one view. MVC

from a foreach I send several items of the model to my view, and they show me without problem, but I am looking for them to be placed with considerable spaces. My code: <tr> @if (Model != null) { foreach (var item i...
asked by 21.12.2016 / 15:52
0
answers

Problem generating files within a ZIP

I have generated this method with the parameters brought from my database management class, the problem is that I can generate my ZIP file without any problem but I do not have any html file. public static string Execute(Models.ReportTibaTime...
asked by 05.12.2016 / 14:53
1
answer

Zone.js error in Angular 2

Good, dear. I am using Visual Studio 2015 to program in C # and Angular 2, having made some updates the following error started to appear (Sensitive values are changed by XYZ):    Exception: Call to Node module failed with error:   Error:...
asked by 30.11.2016 / 16:28
2
answers

I have a problem about string format c # I have my code with more than 12 digits and the excel is shown as 2.34234E + 17

VISTA <table id="t01"> @{ if (ViewBag.TipoReporte == 1) { <tr align="center" valign="middle"> <th colspan="10"><h1>STOCK GENERAL</h1></th> </t...
asked by 27.02.2017 / 14:34
0
answers

Detect camera connected / disconnected C #

Hello everyone, how can I detect when my web camera goes from connected to disconnected and vice versa, I am using C #, with the Aforge driver and the following source code: using System.IO; using System.Drawing.Imaging; using AForge.Vid...
asked by 27.02.2017 / 16:45
1
answer

Count Array using Where statement in MongoDB and C #

in my collection Students I have an arrangement in MongoDB in the following way: "_id" : "fAFhzdtJ7wpJbdfbp", "Nombre" : "Rastalovely", "Materias" : [ "ZNumksY9STZxc8a8W", "W6BPzEwTaz9E7FxZB" ] The Matters field has a relationship...
asked by 04.01.2017 / 07:26
0
answers

C # - Create a Setup for a Windows Service with Timer

Recently I created a windows service with System.Timers.Timer , this service will fulfill a task of creating a .txt file every minute (1 minute). p> PROBLEM After creating your Setup (installer) and can install it on my own PC or on a...
asked by 03.01.2017 / 21:25
1
answer

Change The DropDownList list in the OnChange event

good morning I have the following code to assign a list to my DropDownList from the controller ViewBag.Ciudad = new SelectList(GetCiudadAll, "idCiudad", "NombreCiudad"); in the view @Html.DropDownList("Ciudad", (SelectList)ViewBag.C...
asked by 13.12.2016 / 13:59
1
answer

MVC4 modify a model parameter of a partial view, from another controller

Please if anyone could help me modify the property value of a partial view model. The problem is the following I have the view A that invokes the partial view A1. I call the partial @Html.Action("Child", "Token") in the controller o...
asked by 13.12.2016 / 21:05