I found the answer to my question in manifest file default comments provided. it says,
<!-- UAC Manifest Options
If you want to change the Windows User Account Control level replace the
requestedExecutionLevel node with one of the following.
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Specifying requestedExecutionLevel node will disable file and registry virtualization.
If you want to utilize File and Registry Virtualization for backward
compatibility then delete the requestedExecutionLevel node.
-->
So you need to add the manifest file and remove requestedExecutionLevel node from xml or from project properties -> Application -> Icon and manifest -> under Manifest set
Create application without a manifest
It has solved my problem.
Thanks,