Questions tagged as 'c#'

2
answers

How to get the date of creation of a file that is on an FTP server c #

I'm using framework 4.5 and would like to know how to get the date and time of creating a file that is on an SFTP server, do not want to download it, just know the date and time it was created. I have permission to read the folder and file, th...
asked by 15.06.2016 / 21:30
2
answers

Serialize NHibernate object to JSON

How can I serialize an NHibernate object to JSON. When I try to serialize the error saying that it is not possible to serialize an object in context.     
asked by 16.06.2016 / 01:41
2
answers

Bad request on a new iis server

I have 3 servers iis in production and homologation everything works ok. But in a new server I just created, installing all the necessary tools to run ASP.NET and putting the source code of a webservice in C # as a new site, returns me a Bad Req...
asked by 04.02.2016 / 17:12
1
answer

System.Threading.Thread does not exist?

I'm trying to learn how to use multithreading in C #, but all tutorials ask me to use the System.Threading.Thread class, but it seems like in my Visual Studio this class does not exist! A print for you to understand better: I'm forgetti...
asked by 09.02.2016 / 13:49
1
answer

How to download a simple text file?

How do I get and get the String contained in an online file in Windows Phone 8.1 SDK?     
asked by 23.01.2016 / 08:09
1
answer

Problem in a dropdown

I have a very strange problem with my Dropdown. When I upload submit this error appears:    There is no ViewData item of type 'IEnumerable' that   has the key 'Diocese'. But I think the error is not in this Dropdown because I always did t...
asked by 20.01.2016 / 19:12
2
answers

How a CheckBox can receive a DataGridView CheckBoxCell

In my DataGridView, the user's information is included in the database, whether the user is an administrator or not, this cell has a DataGridViewCheckBoxCell. Iwanttopassthevalue(True/False)toaCheckBoxControl.Itriedusingthefollowingcode,buti...
asked by 15.01.2016 / 15:20
2
answers

WebService in C # with 404 error

I'm doing maintenance on a C # project, which has WebServices. I created a new service and executed the program, it works as images below, but when calling the method it gives 404 error. Is this a normal behavior? Code using System; usin...
asked by 18.03.2016 / 17:20
2
answers

Read multiple lines of a file in parallel with C #

I have a file with almost 700mb that has numerous lines with Json inside it. I need to treat each json line-by-line and insert them into my database. The question is, I'm currently using the following code: using (StreamReader arquivo = ne...
asked by 25.02.2016 / 18:52
1
answer

NHibernate create database?

I am a Java developer and I work with Hibernate. Now I need to create a desktop application and I decided to use C # for this. I've been researching ORM frameworks for C # and found the Entity Framework and NHibernate. As my experience is greate...
asked by 26.02.2016 / 19:14