Questions tagged as 'c#'

0
answers

What is the best technique for using ViewModel with mvc C # lists?

I have two templates: event registration package and subscription package, where the template event registration package has a list of subscription packages (see the code below, I removed some fields). //Model public class PacoteInscricaoEvent...
asked by 09.01.2018 / 13:37
0
answers

Convert RTF to HTML

I need to convert the RTF content of a string to HTML, in JavaScript or C #, but all the APIs I found in GitHub either did not have enough information for the implementation or had some error. So I'm looking for a "one-off" function, without hav...
asked by 17.01.2018 / 18:34
0
answers

Asp.net with GitHub

I have some experience with Github versioning with java, it has always worked efficiently across teams. I'm having an ASP.NET project based on WebForms, and I'm trying to version with GITHUB. I have versioned the project with my user, and when a...
asked by 03.05.2018 / 15:46
1
answer

The implicit conversion of the nvarchar data type into varbinary (max) is not allowed. Use the CONVERT function to perform this query

Follow the code below: byte[] image1 = ConvertTo.Bytes(Request.Files[0]); byte[] image2 = null; ctx .Users .Where(x => x.Id == 1) .Update(x => new User() { ImageByte1 = image1, ImageByte2 = image2 }); I use this here: link...
asked by 11.11.2017 / 00:18
1
answer

Remove components dynamically in C #

Good night, I'm trying to solve a problem I encountered when trying to dynamically remove the picturebox I created: namespace WindowsFormsApplication8 { public partial class Form1 : Form { int count = 0;...
asked by 20.11.2017 / 23:51
0
answers

Upload .so files on Xamarin Android

I'm trying to convert a class Java to C# into Xamarin.Android . The class Java is this: private native boolean OpenDeviceCtx(Object obj); public native boolean CloseDevice(); public native boolean GetDiodesStatus(...
asked by 22.11.2017 / 12:57
0
answers

Error updating MySQL.Data

I made the update of MySQL.Data and MySQL.Data.Entity from version 6.9.9 to version 6.10.4 and started to get the error below:    Inheritance security rules were violated by type: 'MySql.Data.MySqlClient.MySqlProviderServices'. Derived types...
asked by 07.11.2017 / 15:43
0
answers

Using xrTableOfContents

In my application, I have 3 different files of XtraReport . That is, I practically generate 3 reports and all together in one PDF. In the first XtraReport , I have the xrTableOfContents1 component that serves as the index. To...
asked by 27.04.2018 / 16:26
0
answers

WebService VB.NET - Return list (of) without structure TAG

I have a need to generate an XML code returned through a WebMethod () in the following format. Notice the content within the TAG <user_list> , which must have a list (of) or an arraylist without grouping: <soap:Envelope xmlns:so...
asked by 30.10.2017 / 21:20
0
answers

EFD-Reinf: (500) Internal Server Error - Identifier: 3033699826

I'm trying to send a test of Reinf's R-1000 event and it returns me:    The remote server returned an error: (500) Internal Server Error.   Processing failed. Please try again. Identifier: 3033699826 Can anyone help me? Follow the code...
asked by 09.01.2018 / 18:36