question

iz111 avatar image
0 Votes"
iz111 asked Thameur-BOURBITA answered

Application with /TSAWARE:NO crashes with error 0xc0000135

Applications with flag /TSAWARE:NO crash in some environments. We noticed this on Windows servers 2016/2019.

    *"The application was unable to start correctly (0xc0000135)."*

Seems that this is related to registry setting: HKLM\System\CurrentControlSet\Control\Terminal Server\TSAppCompat=1.
If I remove /TSAWARE:NO or set /TSAWARE:YES, application starts with no error. In that case GetWindowsDirectoryW returns wrong path.
I need to use /TSAWARE:NO.

What could cause this issue? Is there a way to fix this?

windows-server
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Thameur-BOURBITA avatar image
0 Votes"
Thameur-BOURBITA answered

Hi,

I invite you to read the following link to understand when you should set YES or no:

tsaware-create-terminal-server-aware-application



Please don't forget to mark helpful reply as answer

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.