Questions tagged [system.net]

System.Net is a namespace of the .NET framework. It provides a simple programming interface for many of the protocols used on networks today.

System.Net is a namespace of the .NET framework. It provides a simple programming interface for many of the protocols used on networks today.

References

297 questions
0
votes
1 answer

Why does WebRequestMethods not exist in the current context?

I'm using Visual Studio 2012 and playing around with Windows Phone 7.1 application development. This is a newly-created project. When I use this code, why do I get this error? The name 'WebRequestMethods' does not exist in the current…
0
votes
3 answers

Parsing an IP Address from a String using static method

Is there a static method I can use to parse a String to check if it is an IP address, instead of having to initialize a new System.Net.IPAddress instance? This is what I am trying to achieve System.Net.IPAddress throwawayIpAddress = new…
Hanxue
  • 12,243
  • 18
  • 88
  • 130
0
votes
1 answer

How to start HTTP Server from a Silverlight browser application. Alternative to HTTP Listener

I need to start a lightweight HTTP Server from an ActiveX control that is running in a Silverlight browser application. The HTTP Server runs in localhost. My HTTP Server uses HTTPListener. I tested starting the HTTP Server from a test browser…
Betty Thomas
  • 61
  • 1
  • 4
0
votes
1 answer

C# Command Line inaccessible due to protection level

I am trying to make a command line based HTTP post to a webpage, where this command line can login and retrieve some data or do other things. I have all the code in place but it does not like non-static things in the static field Main, how do I fix…
Illuminati
  • 538
  • 7
  • 22
0
votes
1 answer

HttpWebRequest.Create and firewalls

I need to check whether a given host is replying to HTTP web requests. So, all I need to do is HttpWebRequest.Create(someURI) and check the response, right? HttpWebRequest webRequest = (HttpWebRequest)HttpWebRequest.Create(targetUri); TimeSpan…
Mijin
  • 125
  • 1
  • 9
0
votes
1 answer

Binding WPF Image.Source from https when files are hosted on a shared drive

I have a WPF app with that displays images retrieved from an https address. I've configured the proxy in the .config as such:
Stafford Williams
  • 9,696
  • 8
  • 50
  • 101
-1
votes
1 answer

different ip address generated when using azure link

I have this code on how to get my IP address. Locally the code is running and I got my IP address correctly, but when I run this code using link in azure different ip address is generated. So for example this is my correct ip address: "ipaddress":…
woo25
  • 5
  • 6
-1
votes
1 answer

WebClient.UploadString appears to be passing a GET when I'm explicitly doing a POST

This is a weird one can I'm not sure what is happening. I have a testing project that calls my api. Recently, it appears that when I'm calling a none https website (ie http), it's changing my verb from a "POST" to a "GET". My code is response =…
mikemurf22
  • 1,851
  • 2
  • 21
  • 32
-1
votes
1 answer

Code Works Fine But I am still not able to login into IRCTC Website

Everything Working Properly but we click on submitData() button i will show me login page instead of myhomepage, so very first I navigate login page it will set the cookie, then cookie stored in cookie container code is CookieContainer cookieJar =…
Abhishek kushwaha
  • 1,429
  • 12
  • 13
-1
votes
2 answers

Write text to the text file on server

I'm trying to write text to file on server from winform desktop application string path = "http://www.site.info/doc.txt"; To use path: System.Web.HttpContext.Current.Server.MapPath(path); also I tried this way: …
nikorio
  • 671
  • 4
  • 16
  • 28
-1
votes
2 answers

How is System.Net implemented?

I'm learning networking in C#, and I realized that I'm completely dependent on the System.Net framework for networking (not that this is a bad thing). I don't understand how, using standard language features, without relying on any framework, you…
Daniel
  • 2,944
  • 3
  • 22
  • 40
-2
votes
1 answer

C# Get computer name from IP

I'm using Xamarin Studio to develop to iOS and I need a couple of functions to get the Computer Name from the IP and vice-versa I've tried this code to get the machine name from IP string machineName = string.Empty; try { IPHostEntry hostEntry =…
Pedro Cavaleiro
  • 835
  • 7
  • 21
1 2 3
19
20