Questions tagged as 'c#'

2
answers

I can not find a resolution for this error

I have a program in C # and it is giving MANY different bugs , I'll send them all here, as follows: Code Error: Description: So let's go. internal AcessoAdd() { InitializeComponent(); }    Error: System.ComponentModel.Win32Exc...
asked by 09.06.2017 / 17:03
1
answer

.NET CLR - ERROR - 9521 exceeds the maximum accepted message size of 4,000

My code makes a post to a webapi from a trigger in an SP that monitors my database. This POST works fine for msgs of up to 4000 characters but above this the SP of this error: "ERROR -> 9521 exceeds the maximum accepted message size of 4,0...
asked by 09.06.2017 / 16:24
1
answer

RTF formatting.

I have an RTF in the database that saves the colors, the enter, among other actions that the user gave. I'm using the following code to convert the RTF to show in HTML, however I'm missing all these formatting, is there any way to fix this?...
asked by 12.06.2017 / 14:19
1
answer

Popular DataGridView with Entity Framwork

I have in SQL Server a database called STORE; In this database I have a table named Functional, it contains 5 columns being respectively: Name, CPF, DataAdmission, DataDemission, In my C # application I have already made the connection to th...
asked by 09.06.2017 / 03:58
0
answers

Stream without content C #

Good afternoon guys I have the following code: Stream retorno = new MemoryStream(); using (var stream = new System.IO.StreamWriter(System.IO.File.Open("c:\Temp\file2.xml", FileMode.OpenOrCreate, FileAccess.ReadWrite))) {...
asked by 08.06.2017 / 19:52
0
answers

Read starting and ending date of an event in the database

I made a report screen to read some values from a database. When I type for example 01/05/2017 (start date) and 05/31/2017 (end date) the bank returns me as I wanted. But when I type the end date for example (06/01/2017) the bank returns me null...
asked by 08.06.2017 / 22:52
1
answer

How to create dependencies between Jobs in Quartz.NET

I have a Windows Services where I use Quartz.NET to schedule tasks on my system, however there are tasks that can only be performed after the successful completion of another. I did not find documentation where it indicates this possibility...
asked by 07.06.2017 / 15:17
0
answers

Thread in Webbrowser c #

I need to use a thread that can work together with a webbrowser in C #. It just needs to run the command, but as it's a visual component I'm not getting it. Below I detail some attempts and examples that I found. If anyone has a light or other i...
asked by 20.06.2017 / 05:56
0
answers

Loading MemoryStream C #

How do I load a document over 4069 kb. Example: I have a 14,000 kb document to load into MemoryStream that does not load because it is giving a memory exception! How can I load this file? Code snippet: public ElementImage(string i...
asked by 20.06.2017 / 18:05
1
answer

Error trying to register

Good afternoon, at the time I try to register in the form, I program in C # language with asp.net, razor and NHibernate. This is my DAO public IList<Rota> Comparacao() { //*string hql = "Select p from Rota p";...
asked by 04.07.2017 / 21:33