About 12,100,000 results
Open links in new tab
  1. Writing data into CSV file in C# - Stack Overflow

    Sep 12, 2013 · I am trying to write into a csv file row by row using C# language. Here is my function string first = reader[0].ToString(); string second=image.ToString(); string csv = …

  2. How to fix "The ConnectionString property has not been initialized"

    Can you post the connection string from webconfig, and the failing code utilizing it?

  3. How to call asynchronous method from synchronous method in C#?

    I have a public async Task Foo() method that I want to call from a synchronous method. So far all I have seen from MSDN documentation is calling async methods via async methods, but my …

  4. How to safely call an async method in C# without await

    Mar 20, 2013 · A variation on the ASP.NET Web API scenario is a self-hosted Web API in a long-lived process (like, say, a Windows service), where a request creates a lengthy background …

  5. How to set the Content-Type header for an HttpClient request?

    Aug 27, 2018 · I'm trying to set the Content-Type header of an HttpClient object as required by an API I am calling. I tried setting the Content-Type like below: using (var httpClient = new …

  6. c# - Microsoft.Jet.OLEDB.4.0' provider is not ... - Stack Overflow

    Jan 2, 2010 · I found a solution for this problem. The issue I described in my question occured basically due to the incompatibility of the Microsoft.Jet.OLEDB.4.0 driver in 64 bit OS. So if we …

  7. Accessing MVC's model property from Javascript - Stack Overflow

    May 3, 2013 · Learn how to access MVC model properties from JavaScript effectively, with solutions and examples discussed in this Stack Overflow thread.

  8. How to log to a file without using third party logger in .Net Core?

    How to log to a file without using third party logger (serilog, elmah etc.) in .NET CORE? public void ConfigureServices(IServiceCollection services) { services.AddLogging(); } public void Con...

  9. c# - Metadata file '.dll' could not be found - Stack Overflow

    Sep 14, 2009 · This worked for me in VS2019 .Net Core, ASP.Net Core solution. Open a PowerShell console in the same location of the solution. type dotnet restore and then dotnet …

  10. How to read data of an Excel file using C#? - Stack Overflow

    Mar 18, 2009 · How to read an Excel file using C#? I open an Excel file for reading and copy it to clipboard to search email format, but I don't know how to do it. FileInfo finfo; …