Sunday, October 23, 2016

How to reset the Remote Desktop Server Licensing Grace Period on Windows Server 2012 R2 with Remote Desktop Services (not recpmended)

while working in RDS, in one of my server was set up for RDS all in one and forgot to update the license key and it was on trial.
while doing RDS I got below error.
"Remote session was disconnected because there are no Remote Desktop client access licenses available for this computer. Please contact the server administrator"


this clearly says about the license key.
but when I was trying RDP to server, I got same error.
trick is you should log in as admin.
then open the regedit and go till HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod and delete the value (not the Default key).


if you get below error then, give admin permission to the parent key (RCM) and delete.
"unable to delete all specified values registry "

if still not able to (actually I was not able to), then download the PS tool from http://technet.microsoft.com/en-us/sysinternals/bb896649 and then Unzip PSTools and place PsExec.exe in the C:\Windows\System32 folder.
then open command (cmd.exe) in admin mode and run below command to open registry key
psexec -s -i regedit.exe (please take back up of your key 1st).
now go tillHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod and delete the key.

now restart your machine and you will get another 120 days free key.

but ideally use license key if it is Prod env and not to face such situation.

Regards,
yes.sudhanshu

Sunday, October 9, 2016

System.Net.WebException: The request failed with HTTP status 403: Forbidden. Dynamics AX 2012 R3 CU 11 installation, EP update

while doing Dynamics AX 2012 CU 11 installation (no slip stream), while running the command for EP update I got 403 forbidden error and in event viewer, I got below error




System.Net.WebException: The request failed with HTTP status 403: Forbidden.
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at Microsoft.Dynamics.Framework.Deployment.Services.EPDeploymentService.DeployWebComponent(String treeNodePath, String virtualServer, String webSite)
   at AxUpdatePortal.Program.UpdateWebComponent(String operationName, String treenodePath, String webSiteUrl)
   at AxUpdatePortal.Program.Main(String[] args)


this lead me to install .NET Business connector (again, mean repair) in EP server and then run EP update command for CU 11 and then it was OK.

Regards,
Sudhanshu

Friday, October 7, 2016

An error occured in writing to the event log on machine : cannot open log for source 'Microsoft Dynamics AX - AXUtil. You may not have write access.

I got below error while upgrading to CU 11 and performing software checklist
"An error occured in writing to the event log on machine <DBServer>: cannot open log for source 'Microsoft Dynamics AX - AXUtil. You may not have write access."
to solve, you need to get the AOS service account and give access to the SQL server. I just gave admin rights and it resolved, then you can remove for security reason.


Regards,
Sudhanshu

An error occured in writing to the event log on machine : cannot open log for source 'Microsoft Dynamics AX - AXUtil. You may not have write access.

I got below error while upgrading to CU 11 and performing software checklist
"An error occured in writing to the event log on machine <DBServer>: cannot open log for source 'Microsoft Dynamics AX - AXUtil. You may not have write access."
to solve, you need to get the AOS service account and give access to the SQL server. I just gave admin rights and it resolved, then you can remove for security reason.


Regards,
Sudhanshu