Recent

Author Topic: [SOLVED] Windows 10: “A referral was returned from the server”  (Read 1458 times)

trev

  • Hero Member
  • *****
  • Posts: 729
  • Former Delphi 1-7 and 10.2 User
All of a sudden, my Lazarus application is producing this error in Windows 10 when I try to run the executable which then does not appear. Previous versions do not trigger it. (The macOS, FreeBSD and Linux versions have no similar issue.)

The changes were pretty minor but extensive (added a file of device microprocessor defaults to be read; asterisk default values in combo box lists; remove asterisks when copying config options to clipboard etc, etc) and I suspect I'm going to have to go back and undo them one by one to find the issue.

In the meantime, does anyone have any ideas?
« Last Edit: January 06, 2020, 12:23:10 pm by trev »
o Lazarus v2.1.0 r63272, FPC v3.3.1 r45525, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (Parallels VM)
o FPC 3.0.4, FreeBSD 12-STABLE r361007 amd64
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2465
    • havefunsoft.com
Re: Windows 10: “A referral was returned from the server”
« Reply #1 on: October 19, 2019, 05:05:28 am »
Operating Systems feels more and more like a prison these days.

https://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/always-getting-a-referral-was-returned-from-the/8a5802c8-0815-4abc-aab2-ed49dbbfb971

https://www.repairwin.com/fix-a-referral-was-returned-from-the-server-error/


PS:
new Catalina macOS is doing exactly what PC (with Vista) is experiencing in this Mac commercial (2007):
https://www.youtube.com/watch?v=FxOIebkmrqs

...for whatever reason, I don't have a sense of security either :) I'm the one in prison.
« Last Edit: October 19, 2019, 05:07:59 am by skalogryz »
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

trev

  • Hero Member
  • *****
  • Posts: 729
  • Former Delphi 1-7 and 10.2 User
Re: Windows 10: “A referral was returned from the server”
« Reply #2 on: October 19, 2019, 05:30:07 am »
If that was the issue I would have expected previous versions of the application to also trigger the issue but they do not.

Anyway, I'll see what that is set to as soon as I can get Win10 up and running again... it's updating...slowly updating...

[EDIT]
That option is already disabled :(
« Last Edit: October 19, 2019, 05:34:53 am by trev »
o Lazarus v2.1.0 r63272, FPC v3.3.1 r45525, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (Parallels VM)
o FPC 3.0.4, FreeBSD 12-STABLE r361007 amd64
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

trev

  • Hero Member
  • *****
  • Posts: 729
  • Former Delphi 1-7 and 10.2 User
Re: Windows 10: “A referral was returned from the server”
« Reply #3 on: October 19, 2019, 05:46:27 am »
Right clicking the executable and choosing "Run as Administrator" fails.

BUT

Right clicking, choosing Properties > Compatibility > Run this program as Administrator works! Weird.

I'm going to have start undoing my changes to find what's triggering it :(

o Lazarus v2.1.0 r63272, FPC v3.3.1 r45525, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (Parallels VM)
o FPC 3.0.4, FreeBSD 12-STABLE r361007 amd64
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

trev

  • Hero Member
  • *****
  • Posts: 729
  • Former Delphi 1-7 and 10.2 User
Re: Windows 10: “A referral was returned from the server”
« Reply #4 on: October 20, 2019, 03:21:59 am »
This "error" also happens on Windows 7 (64 bit), but not Windows XP (32 bit or 64 bit).

Now that I've wrangled my Windows 7 VMs back into shape after the last Parallels Desktop upgrade, I'll go back to undoing my source code changes to find out exactly waht is causing this issue to trigger.
o Lazarus v2.1.0 r63272, FPC v3.3.1 r45525, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (Parallels VM)
o FPC 3.0.4, FreeBSD 12-STABLE r361007 amd64
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

trev

  • Hero Member
  • *****
  • Posts: 729
  • Former Delphi 1-7 and 10.2 User
I returned to an earlier version of the application and added my changes back, one-by-one, and... there it no longer triggers this issue with Windows 10 or Windows 7.

[The problematical code version still compiles and causes the issue.]
o Lazarus v2.1.0 r63272, FPC v3.3.1 r45525, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (Parallels VM)
o FPC 3.0.4, FreeBSD 12-STABLE r361007 amd64
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

trev

  • Hero Member
  • *****
  • Posts: 729
  • Former Delphi 1-7 and 10.2 User
Re: [SOLVED] Windows 10: “A referral was returned from the server”
« Reply #6 on: January 06, 2020, 12:28:06 pm »
It happened again while I was testing a Windows executable cross-compiled non macOS for win32.

This time I tracked it down to Project Options > Application > For Windows
  • UI Access. Unchecked that and the blocking error disappeared!


The docs for Lazarus say:

Quote
UI Access
MS documentation: "Applications that are not providing accessibility should set this flag to false. Applications that are required to drive input to other windows on the desktop (on-screen keyboard, for example) should set this value to true."

Hmmm.
« Last Edit: January 06, 2020, 12:39:51 pm by trev »
o Lazarus v2.1.0 r63272, FPC v3.3.1 r45525, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (Parallels VM)
o FPC 3.0.4, FreeBSD 12-STABLE r361007 amd64
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

 

TinyPortal © 2005-2018