Last post Dec 11, 2013 08:51 AM by JohnAspNet123
Apr 25, 2013 09:11 PM|clausont|LINK
I am trying to configure Remote Desktop Services on Server 2012 and cannot get any further than the authentication mode="Forms" error. The error I read is:
An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
It is basically a default installation of RDS on server 2012 - I had not tried to change the authentication mode. When I get the error I have tried to change it from Forms to Windows Authentication, but it seems to make no difference.
When I go to the url of the rds website (https://rds.(domain.com)RDWeb) which is not on the default site, I get the above mentioned error.
I get the same error whether I try from outside of the network, inside the network, on the server itself and on the server using the ip address. I have read and tried a number of different things, but I either get this error or an Internal Server Error 500.
Any help would be greatly appreciated. If anyone has encountered this before and has some information on it that may help, that would be great.
Apr 25, 2013 09:22 PM|oned_gk|LINK
Maybe typing problem, see this sample
<forms name=".ASPXUSERDEMO" loginUrl="login.aspx" protection="All" timeout="10080"
Apr 25, 2013 10:35 PM|oned_gk|LINK
Maybe you have not set the virtual folder as an application yet,
Configure your virtual directory as an application or remove virtual directory then add application.
To add application, right click add applicatioan instead of virtual directory
Apr 26, 2013 12:30 AM|dotnetnerd|LINK
If you receive the above error message, you need to configure your vir directory to application. Please just go to IIS--> domain--> directory--> right click and then convert it to application.
If you receive 500 internal server error, could you please kindly advise full error message on the server? 500 internal server error is generic error. Please see tutorial about
500 internal server error
Apr 26, 2013 09:07 AM|clausont|LINK
oned_gk and dotnetnerd -
thanks for your responses.
I have tried converting the directory to an application and get the 500 error.
The website name is "rds". The path is C:/Wincows/web/rdweb/pages. The root directory of rds id "RDWeb". It appears the error stems from the web.config file in the "pages" directory.
I have read this page:
but apparently there is a problem somewhere as I don't see the "rds" site listed in the applicationhost.config file.
Here is the 500 error:
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information:
Error Code 0x80070021
Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or
the legacy allowOverride="false".
Config File \\?\C:\Windows\Web\RDWeb\Pages\web.config
Requested URL https://rds.domain.com:443/RDWeb/Pages/
Physical Path C:\Windows\Web\RDWeb\Pages\
Logon Method Not yet determined
Logon User Not yet determined
97: <windowsAuthentication enabled="false" />
98: <anonymousAuthentication enabled="true" />
Apr 28, 2013 09:07 AM|clausont|LINK
This error was corrected by reinstalling Remote Desktop Services on the server and then configuring Windows Authentication according to the comments in the web.config file. I had done that already to no effect, but it did work after re-installing.
That brought up another error altogether, but I will post it in a new thread as it is not the same error.
Dec 11, 2013 08:51 AM|JohnAspNet123|LINK
This worked for us:
FIX: File applicationHost.config C:\Windows\System32\inetsrv\config\applicationHost.config
Change 2 lines to "Allow" , was "Deny”
<section name="anonymousAuthentication" overrideModeDefault="Allow" />
<section name="windowsAuthentication" overrideModeDefault="Allow" />
Note: Some changes to applicationHost.config will RESTART IIS upon save, including the section area cited above <sectionGroup name="system.webServer">