Nacházíte se zde: Úvod / FAQ / Server / Jak nastavit přístup přes proxy pomocí PAC souboru, pokud na serveru nejde stáhnout licenční klíč

Jak nastavit přístup přes proxy pomocí PAC souboru, pokud na serveru nejde stáhnout licenční klíč

Popis

V logu webové služby se objeví chyba:

2019-07-17 15:34:28,717 [9] ERROR w3wp [(null)] - Request processed with error response 'rcLicenseError'
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 104.20.47.45:443
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
   at System.Net.HttpWebRequest.GetRequestStream()
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at eWay.LicenceServer.Licence.eWayLicenceService.eWayLicenceService.GetLicence(String customerCode, String username, String fingerprint, String eWayWebServiceVersion, String eWayClientVersion)
   at eWay.WebService.ServiceLogic.LicenceManager.DownloadLicenceKey(String licenceServerWebServiceAddress, String customerCode, String username, String eWayWebServiceVersion, String eWayClientVersion)
   at eWay.WebService.ServiceLogic.LicenceManager.DownloadAndSaveLicenceKey(String licenceServerWebServiceAddress, String customerCode, String username, String eWayWebServiceVersion, String eWayClientVersion)
   at eWayWSImpala.eWayWS.DownloadLicenceKey()
   at eWayWSImpala.eWayWS.DownloadLicenceKeyNow()

Verze

Všechny verze eWay-CRM®

Obtížnost řešení

Vysoká

Postup řešení

V souboru Web.config webové služby a v eWayTimer.exe.config je potřeba doplnit do defaultProxy nastavení cesty k Proxy PAC souboru (autokonfigurační skript):

<defaultProxy enabled="true" useDefaultCredentials="true">
    <proxy scriptLocation="http://proxy.example.com/proxy.pac" />
</defaultProxy>

Po změně souboru eWayTimer.exe.config je potřeba restartovat službu eWayTimer.

Soubor eWayTimer.exe.config se nachází v podsložce bin. Pokud soubor eWayTimer.exe.config není na serveru k dispozici je potřeba ho vytvořit:

<?xml version="1.0"?>
<configuration>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>
  <system.net>
    <defaultProxy enabled="true" useDefaultCredentials="true"/>
  </system.net>
</configuration>