Access is denied while executing aspnet_regbrowsers.exe - asp.net-3.5

For one of our requirement, we had to modify the ie.browser and web.config files (%windir%\microsoft.Net\Framework64\v2.0.50727\CONFIG\Browsers and %windir%\microsoft.Net\Framework64\v2.0.50727\CONFIG). After modifying these files, when I execute aspnet_regbrowsers.exe, we are getting access denied error. Following is the error message:
ASPRUNTIME: Access is denied. (Exception from HRESULT: 0x80070005(E_ACCESSDENIED))
I have executed aspnet_regbrowsers.exe (available at %windir%\microsoft.Net\Framework64\v2.0.50727) from command prompt under administrative privileges. I am facing this on windows server 2008 R2 x64 bit.
Any help is appreciated.
Thanks.

Related

PANIC: could not open control file "global/pg_control": Permission denied

I have to postgres 11 and 14 installed on my computer. When I run pg_upgrade to migrate the databases I get the following error:
PANIC: could not open control file "global/pg_control": Permission denied
However if I give the Window User full control of data directories of 11 and 14, then the upgrade works. Can someone help me what am I doing wrong since I am running pgupgrade from powershell started as admin.
If your upgrade is failing with Powershell runas Admin then you would need to check for permissions for Administrators Group on the folder. As you have verified that when windows account has full control, the migration works with powershell runas windows account

Unable to execute Import-Module Azure PowerShell Command

I am trying to import Azure module from Azure using windows powershell but I am facing the following error
The following error occurred while loading the extended type data
file: , C:\Program
Files\WindowsPowerShell\Modules\Azure\5.3.0\Services\Microsoft.WindowsAzure.Commands.Websites.Types.ps1xml:
The file was skipped because of the following validation exception:
File C:\Program
Files\WindowsPowerShell\Modules\Azure\5.3.0\Services\Microsoft.WindowsAzure.Commands.Websites.Types.ps1xml
cannot be loaded because its operation is blocked by software
restriction policies, such as those created by using Group Policy
any help please.

SQL Server VSS Writer refuses to start

I've got Visual Studio 2012 installed on Windows 7 64 bit machine. I am trying to install SQL Server express LocalDB and get an error when the installer tries to start services. Here is the exact error message:
Service 'SQL Server VSS Writer' failed to start. Verify you have sufficient privileges to start system services.
I am logged on to the machine as administrator. I have verified that the writter in Services is running and it is set to Auto.
I have no SQL Server installed on this machine as far as I know.
I'm stumped. Anyone have any ideas?
Also when I try to start SQL Writer in Services I get the following error:
Windows could not start the SQL Server VSS Writer service on local computer.
Error 1053: The server did not respond to the start or control request in a timely fashion.
Thanks to Process Explorer, we can see there's a missing MSVCP140.dll when the service is trying to start (and failing) :
The solution is to install the Visual C++ Redistributable for Visual Studio 2015 :
https://www.microsoft.com/en-us/download/details.aspx?id=48145
Have you tried below URL, we need to give User particular rights
http://technet.microsoft.com/en-gb/library/cc794944(v=ws.10).aspx

Creating database with EF cannot be opened by ssms (Access denied)

I create the Entity DB (if file not exists) in C:\Temp\MyDB.mdf using : MyEFContext.CreateDatabase().
I can open the DB with VS Express 2010 and navigate through it but when attempting to adding (Joining) the DB in SSMS i get the following error : Unable to open the physical file "C:\Temp\MyDB.mdf". Operating system error 5: "5(Access is denied.)". (Microsoft SQL Server, Error: 5120)
How can I fix this?
Thanks
This is a rights issue.
In the case where it works you are in the user context of the user account that you logged in with.
In the case where it does not work, it is the user account that the SQL server is running under that is trying to access the file.
Check which account SQL server is using, then give that account access to the files on the temp directory.

Adplus dump creation failed - access is denied

I'm trying to get a dump to debug some memory issues in ASP.NET processes (Windows 2003 R2 SP2 x64):
adplus -hang -o f:\dumps -pn w3wp.exe -quiet
There are nine w3wp.exe (all from different websites). Everytime I run adplus as above some of the dumps fail with this error:
WriteFullMemory.Memory.Read(0x100ea0000, 0x10000) failed 0x80070005, ABORT.
Dump creation failed, Win32 error 0n5
"Access is denied."
The failure seems to be random (or I should say I can't find the reasons), i.e. sometimes some processes dump fine and sometimes they fail with this error. Things I checked:
I do have full administration permissions
There is plenty space on the target hard drive
I disabled pinging and failure protection on IIS to prevent IIS from killing the processes while adplus is dumping.
Anything else I should check? Has anyone else run into this issue? Adplus version is 7.01.002 (02/27/2009) (downloaded a couple of days ago from the latest SDK)
This is because of inaccessible memory read failure. To avoid this you could use something like cdb/windbg and use .dump /mA command to generate full memory dump.
The .dump /mA same as .dump /ma except that it will ignore inaccessible memory read failure and continue minidump generation.
.dump options
The /mA option is equivalent to /ma
except that it ignores any failure to
read inaccessable memory and continues
generating the minidump.
HTH
It wouldn't matter if you are a member of admin you would still need to elevate privileges.
ADPlus needs to be run from a command prompt running under a local administrator account with elevated privileges. If you fail to do this, the dump file may not be created.