I receive the error from a third party application exe. The Application is only a exe, no config file or others.
\"error creating the web proxy specified in the \'sy
Try to add the below lines to your app.config or web.config and your application might work.
<system.net>
<defaultProxy enabled="false" useDefaultCredentials="false">
</defaultProxy>
</system.net>
In web.config file check if you have a sharedListeners tag. Inside each add tag you need to have the "type" attribute filled..... something like this:
<sharedListeners>
<add initializeData="c:\log\trace.svclog" name="logging" type="System.Diagnostics.XmlWriterTraceListener, System, Version=4.0.0.0, Culture=neutral,PublicKeyToken=c77a5c561934e999">
</add>
</sharedListeners>
This error is somehow related to the .Net framework
you're building against.
I created a simple test app to perform a WebRequest
. If I set the target Framwework to 4.0, I get this error. If I then set it to 3.5, without changing the code, my request works fine.
It does not directly solve your issue, as you probably cannot change the external application you're using, but I hope this may be useful for people who look for the same error message.
I had this problem as well (putting this here for others). It turns out in my case I was calling a wcf service that was secured via ssl. The certificate was one issued internally for development purposes. The problem arises when your wcf service reference is configured for https://myserv/service.svc but the certificate has https://myserv.mydomain.com/service.svc.
Removing the fully qualified domin name (from the client element in app.config \ web.config (or if it in client.config) fixes the problem.
For me when I received this error I managed to 'fix' it by including the 'type' attribute in my listener in the web.config:
<listeners>
<add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics">
<filter type=""/>
</add>
</listeners>
However Visual Studio (2012) actually tells me that this attribute is not allowed... Still removing it leads to me getting the error, including it leads to it working correctly.
I ran "netsh winsock reset" (as administrator) and reset the PC to solve this problem. It was happening when trying to install a winforms application - which worked fine on all the other PCs in the office.
A clue was that Chrome wasn't able to access the internet on this PC - and the solution to that fixed both problems.