Recent

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

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 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 »

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • 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 »

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 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 »

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 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 :(


trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 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.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 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.]

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 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 »

 

TinyPortal © 2005-2018