I'm getting Access Denied when I try to update .NET's Browser definition files using aspnet_regbrowsers.exe
as described here. This is a process I've used for the past 10 years or so.
Here is my call and the result:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regbrowsers.exe -i
Microsoft (R) ASP.NET Browser Registration Tool version 4.8.3752.0
Utility to compile ASP.Net browser files.
Copyright (C) Microsoft Corporation. All rights reserved.
ASPRUNTIME: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
C:\Windows\Microsoft.NET\Framework64\v4.0.30319>
How could I possibly not have access??
FWIW - I copied over the changes to the browser files to this remote computer from my local computer, so I clearly have access to those files/folders. Compiling/installing those changes on my local machine worked correctly with the same command from an admin command prompt.
Both my local machine and the remote VM are running Windows 10 version 1909, OS Build 18363, and both have .NET Framework 4.8.03752.
..
I did see this question on SO, which got no answers: Access is denied while executing aspnet_regbrowsers.exe The user kirin kumar who asked that question, also asked it here: https://forums.asp.net/t/1911429.aspx?ASPNet_regbrowsers+exe+is+throwing+access+denied+error+ and here: https://www.codeproject.com/Questions/604221/AccessplusDeniedpluswhileplusexecutingplusaspnet-r
Both of those questions similarly, got basically no response. I hope my question fares better than theirs! :-)
User contributions licensed under CC BY-SA 3.0