Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
I am Developing an apps that send email on proxy server.By using PHP Script 
its works fine on local pc.But when code runs on windows server 2008 IIS.its create exception.Remote name could not be resloved.Pls help me.Thanks in advance for your valuable time

<pre lang="c#">
 WebClient wc = new WebClient();
        var data = new System.Collections.Specialized.NameValueCollection();
        data.Add("name", username);
        data.Add("emailid", emailid);
        data.Add("dept", dept);
        data.Add("cdept", compliantdept);
        data.Add("message", message);
        //data.Add("Password", "SecretPassword");
        byte[] result = wc.UploadValues("http://www.********.com/sendingmail.php", "POST", data);
Posted

1 solution

That's not a problem of your code. It means that the server is not able to find the IP address of www.*******.com. Ask the admin of that server to check the DNS configuration.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900