Questions tagged as 'c#'

0
answers

Find out type of a class typed to compare it with object

How do I find out the type of a typed class to compare it with an object? This is my code: public static Salon<T> operator +(Salon<T> salon, T per) { if (salon.Equals(per)) throw new NoAgregaException("El elemento es...
asked by 16.07.2017 / 18:19
0
answers

Event Viewer weird HTTP 500

Since a few days ago, the event viewer of my server is showing an error in the following URL: domain.com:443/page.aspx?_TSM_HiddenField_=scriptmanager1_HiddenField&_TSM_CombinedScripts_=;;AjaxControlToolkit This happens with a cadence o...
asked by 30.06.2017 / 08:16
1
answer

Update inventory

I have a stored procedure to update the existence of my inventory. This is the code in SQL : ALTER PROCEDURE [dbo].[SP_ActualizaInventario] @cantidad INT ,@Producto INT ,@Tipo INT AS BEGIN DECLARE @Existencia INT SET @Existencia = (SE...
asked by 12.06.2017 / 23:30
1
answer

System.ArgumentNullException: 'The value can not be null.' [duplicate]

using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Linq; using System.Threading.Tasks; using System.Reflection; namespace ExtractSource { class Program { static void Main(stri...
asked by 13.06.2017 / 02:35
1
answer

Error with slice select2.js

I'm having trouble filling out a combobox with Select2 I have my JS: $("#comboplatos").select2({ placeholder: "Type to select a sponsor", minimumInputLength: 3, allowClear: true, style: "display: inline-block", width:...
asked by 19.06.2017 / 06:07
1
answer

How to use the WMPLib library in VB.NET

Hi, I'm trying to use the WMPLib library, but I can not use it. I compile my project, and it always returns the same error: Photo: I included the library with: Imports WMPLib Dim Player As WindowsMediaPlayer = New WindowsMediaPl...
asked by 10.06.2017 / 18:13
2
answers

Send date from the view to an input of type: date

I need that in this field I have the date I sent from the view of C # I have the following line of code in the view of c #, but it does not work for me: <td> <label for="FechaVencimiento">Fecha Vencimiento:</label&g...
asked by 20.06.2017 / 21:45
1
answer

How to relate a model to ApplicationUser

I can not find how to relate my client model with ApplicationUser, I want a one-to-one relationship. Someone knows where the error is: public class ApplicationUser : IdentityUser { public virtual Cliente Cliente { get; set; } publ...
asked by 20.06.2017 / 20:50
0
answers

Problems with C # in Visual Studio for Mac

How can I do a C # project in Visual Studio for Mac, changing .NET Code to .NET Framework ? Now download and install Mono. What do I do next?     
asked by 12.06.2017 / 18:20
0
answers

Error with SUNAT HttpWebRequest {WebService: "Error on the remote server: (500) Internal server error."}

I'm trying to consume a WebService but I have the following error:    {"Error on the remote server: (500) Internal server error."}; The address URL of WebService is the following link . Through a Reference I cou...
asked by 12.06.2017 / 19:14