Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Code Project Geniuses,

I am getting this error whenever i am running Win 8.1 App and calling WCF methods on client machine. However it is not an issue with any other project types Windows Desktop Application or Website.

Client machine is Win 8.1 Pro
Technology used VS2013, .Net 4.5, WCF

C#
NewServiceReference.Service1Client client = new NewServiceReference.Service1Client();
var result =  await client.GetDataAsync(1);//Error here at runtime "Error creating the Web Proxy specified in the 'system.net/defaultProxy' configuration section."
string test = result;


I found one Solution that:
CSS
General Solution:
http://stackoverflow.com/questions/5168880/error-creating-the-web-proxy-specified-in-the-system-net-defaultproxy-configur
I had this same problem today and found a solution for it. In my case, the problem occurred because I was using a network disk for storing my project. When run from this network disk, this problem occurred. I moved the project to my local hard drive and it was gone. I am guessing this has something to do with security, as Windows considers the network drive less secure than my hard disk



But this also did not work.

Please let me know solution, this became nightmare for us.
Thanks in Advance.
Posted
Comments
Dominic Burford 21-Jan-15 7:57am    
What value is specified for systen.net/defaultProxy? Does the WCF client have access to this location?
Marvel Techie 21-Jan-15 8:51am    
Default values only, i did not put any specific values.
I created WCF service with default function, then created Win 8.1 Universal APP, consumed WCF and Run using above code.

Where can i submit my Demo code, is there any facility so i can send you code to run?
Dominic Burford 22-Jan-15 1:32am    
Just before you invoke the client (where you get the error) check the value for system.net/defaultProxy.
Marvel Techie 22-Jan-15 19:20pm    
How to check values for system.net/defaultProxy?
I have client object initialized, but dont see any property for system.net/defaultProxy.
I guess system.net/defaultProxy are created by framework dynamically.
Please let me know workaround.
Dominic Burford 23-Jan-15 7:39am    
That value is contained in the web.config file. If no value is specified here, then WCF will use the proxy settings from Internet Explorer. If you have a value specified here then try removing it and see if that gets you working.

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



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