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

Sending Attachment from Resources

Alright so pretty much I know there is a simple solution for this for the life of me though I can't find it. I want to send an attachment via mail, now I have it so that it thinks it's going to send an attachment like: message.To.Add(recieve +…
Frank
  • 75
  • 2
  • 13
0
votes
1 answer

System.Net.WebException: The remote server returned an error on specific hosting account

I have been facing a very difficult issue and I'm not able to figure out what's wrong? I am working on a nopCommerce 3.20 which is built upon ASP.net MVC. I am trying to call one of my custom function from another function. This works fine on my…
Krunal
  • 2,967
  • 8
  • 45
  • 101
0
votes
1 answer

namespace System.Net empty

I encountered a problem that in my visual studio 2012. System.Net namespace does not contain their classes. NET version 4.0. This code not compile, require class WebClient: using System.Net; public static class Program { public static void…
user2058005
  • 125
  • 2
  • 10
0
votes
1 answer

C# using Dns.GetHostEntry() returns an IP address in another country

Edit: It looks like this code only returns internal IPs. Is there a way of finding my external IP using C#? So I've been using the 'standard' method of obtaining your own IP address: IPAddress Own; IPHostEntry host =…
Migwell
  • 18,631
  • 21
  • 91
  • 160
0
votes
1 answer

Network Connectivity Check with Credentials Logged in WP7

I use the following code to check network availability in my WP7 app. NetworkInterface.GetIsNetworkAvailable() But this does not check whether the credentials are entered and network is working fine. Incase of protected networks(still not entered…
Shilpa
  • 412
  • 3
  • 14
0
votes
1 answer

File Not Found ,Could not load or find Assembly System.Net 2.0.5.0

I have made the MVC4 application. In the application , I am getting the data from GoogleAPI so I am using DotNetOpenAuth for Authentication and I have added the System.Net 2.1.10.0 assembly. Its working fine when we deployed into IIS 7, but when I…
0
votes
1 answer

Error with MvvmCross using System.Net on MonoDroid

I have referenced HttpStatusCode via System.Net in a Portable Class Library. I then need to reference that status code from a MonoDroid project that includes that PCL. I understand that the System.Net namespace exists in the System DLL for MonoDroid…
MisterMat
  • 197
  • 1
  • 9
0
votes
1 answer

error upgrading System.Net.Http

I am currently trying to upgrade many solutions that use a beta version of System.Net.Http (-v 2.0.20126.16343) to version 2.0.20710.0. I also have a reference to System.Json -v 4.0.20126.16343, however, when I reload the website in a browser I get…
ncbl
  • 1,295
  • 2
  • 12
  • 19
0
votes
1 answer

Mvvmcross plugin to implement credential

We have cross platform project (WPF and ios) which use Mvvmcross. We want to use Credentials in a HttpWebRequest but we use PCL library. So we created mvvmcross plugin to use System.Net.CredentialCache.DefaultNetworkCredentials. Our plugin interface…
axvo
  • 829
  • 2
  • 12
  • 25
0
votes
2 answers

Resolve IP Address to obtain Alias

I want to resolve a IP address but I don't get the desired result. I want to retreive the real web name something like this: http://www.google.com But what I get is: mad01s14-in-f6.1e100.net Public Function IP_To_HostName(ByVal IP As String) As…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
0
votes
2 answers

Temporarily disable/bypass system set proxy during a particular bit of code?

I've got a page that's basically a support request form for customers to fill out and submit... It's in ASP.net with C# as the code behind. I've managed to get the computer name to populate into one of the forms text boxes using…
API
  • 125
  • 2
  • 12
0
votes
1 answer

How can you read only part of an HttpWebResponse

I would like to read only part of an HttpWebResponse. Let's say the first 100k. How can I read only the first 100k of the Response but still end up with a non-corrupted substring? If I just throw the first 100k into a byte[] I believe I could end up…
BowserKingKoopa
  • 2,701
  • 3
  • 33
  • 40
0
votes
3 answers

How to Send mail from visual basic 2010 professional

I want to send a mail using gmail id, my code is as here under, but an error occurred. How can I solve this? Imports System.Net Imports System.Net.Mail Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As…
Bharat Bhatia
  • 9
  • 1
  • 1
  • 2
0
votes
1 answer

Mail message not sending. Program not responding

I have created a mail program that will send the email to my account. I have established System.Net, System.Net.Mail. I works on some computers (my main one), but whenever I try and do another computer, It doesn't send the message. I have it…
alaney
  • 1
  • 1
0
votes
1 answer

way to register network callback for dumping messages

I have a C# console app that I am doing some testing of a rest api. Currently I am using fiddler to capture the calls for debugging, which is fine, however... Is there is a way to register a callback from the network stack to dump the same…
Joshua Ball
  • 23,260
  • 6
  • 27
  • 29
1 2 3
19
20