«An error occurred in the client» error when you try to package an Access Web application in Access 2013
When you try to package an Access Web application, an .app file is not generated and you receive the following error message:
An error occurred in the client while attempting to communicate with the server ‘[URL]‘. Please contact your system administrator or technical support.
Resolution
To resolve this issue, apply the following update:
2863871 Description of the Access 2013 hotfix package (Access-x-none.msp): April 8, 2014
Registry key information
Important
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you modify it, back up the registry for restoration in case problems occur.
After you install this hotfix package, you can follow these steps to increase the time-out time when you try to package an Access Web App:
- Click Start, click Run, type regedit in the Open box, and then click OK.
- Locate and then select the following registry subkey: HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Access\Settings\
- On the Edit menu, point to New, and then click DWORD Value.
- Type AccWebSaveAsPackageTimeout, and then press Enter.
- In the Details pane, right-click AccWebSaveAsPackageTimeout, and then click Modify.
- In the Value data box, type 120000 or a greater value, and then click OK.
- Exit Registry Editor.
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the «Applies to» section.
CommunicationException: An error occurred on client side while making the HTTP request (HTTP.SYS) to third-party WebService
I’m from Brazil and our government released a WebService meant to inform employees’ payroll that’s called eSocial. I’m developing a solution to communicate with this service for about a year now and I found this error in some customers’ machines while trying to send information to the government WebService:
System.ServiceModel.CommunicationException:
An error occurred while making the HTTP request to ‘https://webservices.producaorestrita.esocial.gov.br/servicos/empregador/enviarloteeventos/WsEnviarLoteEventos.svc’. This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server. —> System.Net.WebException: The underlying connection was closed: The connection was closed unexpectedly.
—> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
—> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags).
- Set the property ServicePointManager.SecurityProtocol (https://stackoverflow.com/a/33084791/8133067);
- Let Windows Update install the updates needed (https://stackoverflow.com/a/45494549).
In case of the first solution: eSocial WebService uses the TLS 1.2 security protocol, but this is not always the default machine configuration. I already did this in the code and did not solve in most cases:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
In case of the second solution: In the research I did the problem could happen on computers with an outdated Windows 7, and theoretically the update via Windows Update would solve, but in most cases did not solve, and I have even caught some cases of this error in Windows 10.
I even did a test program, with the message log and trace log turned on, to see if I could get any more information, but the only other thing I found out (because of tracing) is that the error occurs when the message is sent by the channel (communication channel with the WebService).
Here is the code I’m using to instantiate and call the service:
const string UrlSvcBase = @"https://webservices..esocial.gov.br/servicos/empregador/"; string urlServico = String.Format(UrlSvcBase, "producaorestrita", @"enviarloteeventos/WsEnviarLoteEventos.svc"); var address = new EndpointAddress(urlServico); //var binding = new BasicHttpBinding(BasicHttpsSecurityMode.Transport); var binding = new BasicHttpsBinding(); //Available since .NET Framework 4.5 binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Certificate; // Manual de Orientação do Desenvolvedor v1.4, página 39, item '5.4.5. Validações aplicadas': // "O tamanho limite da mensagem SOAP é 750 kbytes." // O valor padrão da propriedade MaxReceivedMessageSize é 65.536, // que é alterado então para 750 KB * 1024 = 768.000 bytes. // Caso contrário, ocorre a exceção: // Exception: System.ServiceModel.CommunicationException // InnerException: System.Exception // "The maximum message size quota for incoming messages (65536) has been exceeded. // To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element." // HResult: -2146233087 (0x80131501) binding.MaxReceivedMessageSize = 768000; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; var wsClient = new WsEnviar.ServicoEnviarLoteEventosClient(binding, address); // 'certificado' variable's type is X509Certificate2. wsClient.ClientCredentials.ClientCertificate.Certificate = certificado; wsClient.Open(); // 'lote' variable's type is XElement. var retorno = wsClient.EnviarLoteEventos(lote); wsClient.Close();
Does anyone have any idea what might cause this error, or any idea of what else I can do to try to figure out the cause of the problem?
[EDIT]
My question was flagged as a possible duplicate of that one:
But, I had already tried almost all those solutions without success (actually, you can see that question already linked on my original post), that’s why I’ve posted a new question, and there is a fundamental difference because in that question the service was made by the user and in my case the service is third-party. Fortunately I’ve got the answer somewhere else, so I’ll post it here.
An Error Occurred в Lethal Company: почему и что теперь делать
Что характерно, проблема возникает вне зависимости от сервера и от количества игроков на нем в данный конкретный момент.
И это как бы намекает на то, что причина, вероятнее всего, не в работе сервера, а в качестве подключения. Так что, есть все шансы устранить данную неприятность вполне себе обычными (как для таких ситуаций) методами.
Что делать, когда вдруг An Error Occurred в Lethal Company
Значит, для начала проверяем подключение компа к интернету и затем перезапускаем игру от имени администратора. Но в этот раз не идем в онлайн сразу, а сначала заходим на LAN-сервер (в самом начала на экране «Launch Mode«) и затем наблюдаем, как работает Lethal Company.
Если снова пишет «An Error Occurred » и поиграть не получается, то тогда:
#1 — перезагружаем комп и обновляем Windows
А точнее, сначала закрываем полностью и игру, и клиент Steam и потом перезагружаем комп. После запуска сразу же проверяем и доустанавливаем все обязательные обновления Windows (а также еще разок перепроверяем подключение).
Процедура проверки обновлений стандартная: Параметры (Win+I) > Система > Центр обновления Windows > Проверить наличие обновлений.
#2 — проверяем саму Lethal Company
- открываем клиент Steam и жмем правой кнопкой мыши по названию игры в Библиотеке;
- далее — «Свойства«;
- переходим во вкладку «Локальные файлы«, жмем «Проверить целостность игровых файлов» и дожидаемся завершения процедуры проверки.
После этого тут же, в окне клиента Steam переходим во вкладку «Обновления» и проверяем версию игры. Или же обновляем её, если клиент нашел следующую версию. Плюс, также включаем опцию «Всегда обновлять игру».
Закрываем клиент Steam, запускаем Lethal Company и пробуем зайти онлайн. Если снова не получилось и снова «произошла ошибка», то тогда
#3 — Вырубаем все оверлеи и отключаем от компа всё лишнее
В первую очередь это относится к игровым оверлеям Steam, Discord и GeForce Experience. Если таковые работают и игра не запускается или сбоит (чего быть не должно), то в качестве временной меры (минимум до следующего обновления самой Lethal Company, а также Discord или GeForce Experience) пробуем их просто вырубить:
- в Steam — открываем настройки приложения и в разделе «Общие» отключаем опцию «Включить оверлей Steam в игре«;
- Discord — открываем настройки приложения, кликаем «Оверлей» в меню слева, отключаем опцию «Включить внутриигровой оверлей«;
- в GeForce Experience — тоже открываем настройки, в разделе «Общие» находим и отключаем «Внутриигровой оверлей«.
Не лишним также будет вообще отключить все не нужные на время игры приложения и процессы (кроме системных) — в частности, Discord, MSI Afterburner, RGB Software, TeamSpeak, Origin, Asus GPU Tweak II, EVGA Precision, Shadowplay, Aura for ASUS, RivaTuner OSD, RivaTuner statistics, GeForce Experience, Radeon ReLive, Voicemeeter, FRAPS, OBS studio и пр.
Также отключаем всю лишнюю периферию — в частности (и в первую очередь) игровые контроллеры, HOTAS-джойстики и все прочие девайсы, которые на время игры не нужны (если есть время и желание, то можно отключать их по очереди и затем перезапускать игру).
Почему появляется ошибка An error occurred в Nginx?
Переходя по ссылкам на сайте с CMS WordPress иногда выходит ошибка Nginx «An error occurred» в логах пишется следующее:
*54388 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: Ip-адрес клиента, server: site.ru, request: «GET /news HTTP/1.1», upstream: «fastcgi://unix:/var/run/php5-fpm.sock:», host: «site.ru»
Подскажите, пожалуйста, в чем может быть причина такого поведения?
- Вопрос задан более трёх лет назад
- 1033 просмотра
Комментировать
Решения вопроса 1

Сергей @goodwin74 Автор вопроса
В итоге методом проб и ошибок, обнаружил что после после увеличения worker_connections до 2000 и установкой worker_processes в значение 2, ошибки пропали и до сих пор не появлялись. Решил отписаться, дабы возможно инфа кому то будет нужна в случае аналогичной проблемы.