Top "System.net" questions

System.

Do we need to close the System.Net.WebRequest's ResponseStream?

I was wondering will I end up having any unclosed streams from this code: Public Function [Get](ByVal url As …

.net vb.net stream response system.net
Sending email through SMTP fails : MailBox name not allowed

I am trying to send an email through an SMTP server but it fails giving me the following error: MailBox …

c# visual-studio-2010 smtp system.net
C# convert string to dictionary

I get this response string from the Bitly api: { "status_code": 200, "status_txt": "OK", "data": { "long_url": "http:\/\/amazon.de\/", "…

c# string dictionary system.net
Wrong version of System.Net.Http on build server

I came across this article yesterday because I wanted to implement attribute routing in my MVC project. http://www.asp.…

c# .net asp.net-mvc-4 system.net
Simple Task-returning Asynchronous HtppListener with async/await and handling high load

I have created the following simple HttpListener to serve multiple requests at the same time (on .NET 4.5): class Program { static …

c# .net http httplistener system.net
Web Api: System.Net.Http version 2.0.0.0 not found

When I install the NuGet package for WebApi, it gives me version 1.0.0.0 of System.Net.Http, yet it references version 2. …

asp.net-web-api .net-assembly nuget-package system.net system.net.httpwebrequest
How to get the IP address in C#?

Assume that a computer is connected to many networks (actually more than one). I can get a list of IP …

c# .net network-programming system.net
How to check if Web server is up? (C#)

I am building a monitoring application to continuously monitor all aspects of my system. I was hoping to use the …

c# .net networking system.net
Post multiple files and form values using .NET (console application)

I want to POST multiple files and form variables to a CGI script, all in one HTTP request. I believe …

c# .net http file-upload system.net