rdweb 500.19 authentication request

SebNeu 96 Reputation points
2020-10-27T13:31:28.993+00:00

I have problems with the WebAccess Server on Windows Server 2016 - all current patches applied

It does not matter which client I use, (localhost, domain pc, external pc) I always receive error 500.19
35414-grafik.png

(the screenshot is from localhost)

I set up rdweb on a different temporary server, where it runs without a problem. I compared the settings, but I cannot find any major differences. Even the mentioned web.config is the same on both server.
I set up trace in web.config of rdweb and FailedReqLogFiles - both do not show any logs.
I tried to deinstall rd-web-access but even that fails (error 0x800f0922).
I would like to keep the server, since it runs WSUS, WDS, RDS licence server and AD License Server.

I have to admit that I had some problems with rds after changing the name of the domain. I guess that it stopped working then. Before that it worked....

(I am not sure how to generate an english error page)

Thanks for any help!

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,503 questions
0 comments No comments
{count} votes

Accepted answer
  1. SebNeu 96 Reputation points
    2020-11-02T16:47:30.357+00:00

    Apparently it was an IIS problem. As soon as I found the differences in
    c:\windows\system32\inetsrv\config\applicationHost.config
    regarding RDWeb and added the default ones (from my test machine) I could deinstall rd-web-access from the server and install it again.

    That fixed the problems and answered the question regarding the commented authentication node in web.config. I just did not know the applicationHost.config did exist.

    Thanks for you time and suggestions
    SebNeu


4 additional answers

Sort by: Most helpful
  1. Eleven Yu (Shanghai Wicresoft Co,.Ltd.) 10,746 Reputation points Microsoft Vendor
    2020-10-28T05:17:18.363+00:00

    Hi,

    As you mentioned that you have changed domain name, please check the web.config file and see if the domain name as below is correct. You should put the updated domain name.

    <httpRedirect enabled="true" destination="https://remote.domain.com/rdweb" childOnly="true" />
    </system.webServer>
    </configuration>

    Below article described that the error code 0x80070021 can occur when the specified portion of the IIS configuration file is locked at a higher configuration level.
    To resolve this problem, unlock the specified section, or do not use it at that level.
    https://learn.microsoft.com/en-us/troubleshoot/iis/http-error-500-19-webpage#hresult-code-0x80070021

    Also, you can try below actions to see if the issue could be resolved.
    https://forums.iis.net/post/1974992.aspx

    -> Take IIS backup.
    -> Open IIS
    -> Click on server module node at the top of the left hand tree and choose "Modules".
    -> Right click on DynamicCompressionModule and choose "Unlock"
    -> Right click on StaticCompressionModule and choose "Unlock".
    -> Open desired websites -> Open Modules.
    -> Right click on DynamicCompressionModules and choose "remove".
    -> Right click on StaticCompressionModule and choose "Remove".
    -> Do IISRESET.

    Hope the information helps.

    Thanks,
    Eleven

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

  2. SebNeu 96 Reputation points
    2020-10-28T15:28:54.19+00:00

    Thank you very much!

    Commenting the the authentication part did the trick

    <security>
        <authentication>
            <!-- <windowsAuthentication enabled="false" />
            <anonymousAuthentication enabled="true" />-->
        </authentication>
    </security>
    

    </system.webServer>

    I am not sure if this is secure, though ;-) Anyway it is working now!

    so I tackled the feeds part and got the next error:

    [NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.]
       Microsoft.TerminalServices.Publishing.Portal.FormAuthentication.WebFeedLoginHandler.ProcessRequest(HttpContext context) +389
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +789
       System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +194
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
    

    The Eventlog gave following information:

    Event code: 3005 
    Event message: Es ist eine unbehandelte Ausnahme aufgetreten. 
    Event time: 28.10.2020 15:11:04 
    Event time (UTC): 28.10.2020 14:11:04 
    Event ID: c867a015176c469c911e13adb6b14329 
    Event sequence: 4 
    Event occurrence: 1 
    Event detail code: 0 
    
    Application information: 
        Application domain: /LM/W3SVC/1/ROOT/RDWeb/FeedLogin-7-132483678646248403 
        Trust level: Full 
        Application Virtual Path: /RDWeb/FeedLogin 
        Application Path: C:\Windows\Web\RDWeb\FeedLogin\ 
        Machine name: XXXX 
    
    Process information: 
        Process ID: 9000 
        Process name: w3wp.exe 
        Account name: IIS APPPOOL\RDWebAccess 
    
    Exception information: 
        Exception type: NullReferenceException 
        Exception message: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
       bei Microsoft.TerminalServices.Publishing.Portal.FormAuthentication.WebFeedLoginHandler.ProcessRequest(HttpContext context)
       bei System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       bei System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
       bei System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    
    
    
    Request information: 
        Request URL: https://<fqdn>/RDWeb/FeedLogin/WebFeedLogin.aspx 
        Request path: /RDWeb/FeedLogin/WebFeedLogin.aspx 
        User host address: ::1 
        User:  
        Is authenticated: False 
        Authentication Type:  
        Thread account name: IIS APPPOOL\RDWebAccess 
    
    Thread information: 
        Thread ID: 55 
        Thread account name: IIS APPPOOL\RDWebAccess 
        Is impersonating: False 
        Stack trace:    bei Microsoft.TerminalServices.Publishing.Portal.FormAuthentication.WebFeedLoginHandler.ProcessRequest(HttpContext context)
       bei System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       bei System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
       bei System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    
    
    Custom event details: 
    

    Edit: I found some posts about uninstalling some .net 4.6.1 related kbs on Windows Server 2012. But I have a 2016 and cannot find any .net reference.

    Any idea here?

    Thank you!

    0 comments No comments

  3. Eleven Yu (Shanghai Wicresoft Co,.Ltd.) 10,746 Reputation points Microsoft Vendor
    2020-10-29T06:45:35.38+00:00

    Hi,

    Since the issue is IIS related, we suggest that you should post your question to IIS forum so that the IIS engineer can provide correct guidance.

    https://forums.iis.net/

    Thanks,

    Eleven

    If the Answer is helpful, please click "**Accept Answer" and upvote it.**

    0 comments No comments

  4. SebNeu 96 Reputation points
    2020-10-29T16:50:56.543+00:00

    I wasn't even aware this is an IIS problem - thank you very much, I will post it there!

    Sebastian


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.