Wednesday, October 5, 2016

Copying over RDP does'nt work - Fixing Copy/Paste for Remote Desktop Sessions

Scenario : 

While working on the remote desktop or while deploying files over remote desktop sometimes the "Copy" and "Paste" functions to and from the RDP session stop working. If you "copy" a file to your local clipboard, then go into the RDP session, the "Paste" context menu appears greyed out. Same is the issue in the reverse direction.

Solution : 

This happen because  clipboard viewer chain somehow becomes unresponsive on the local or remote system and events on the clipboards are not being relayed between systems. It is some sort of failed data transmission.
Use Task Manager to kill and restart the rdpclip.exe process on local and remote machines. Mostly restarting the process on server machine suffices as that is the one which gets corrupted usually.

ASPNetCore - ValidationSummary does not contain a definition for ValidationSummary

Error : 'ValidationSummary' does not contain a definition for 'ValidationSummary'
This is because the namespace that includes ValidationSummary is already included. 
Solution : All you have to do is delete the part that says Validation summary.
eg: asp-validation-summary=”ValidationSummary.ModelOnly” would be asp-validation-summary=”ModelOnly”.
Happy Coding NetCore :)