Share this article

Improve this guide

App_global.asax.dll - Access is Denied Error [Solved]

It’s usually the misconfigured permissions to blame

4 min. read

Updated onSeptember 17, 2024

updated onSeptember 17, 2024

Share this article

Improve this guide

Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more

For fixing DLL errors, we recommend Fortect:

Fortect will search for an intitial version of your missing, corrupted or damaged DLL files that cause problems to your Windows OS and will replace it. Here is how to find them in 3 easy steps:

When trying to start a new project or publish one in Visual Studio, you often get theApp_global.asax.dll–Access is deniederror, which prevents the process from going through.

The error appears due to missing privileges, misconfigured permissions, third-party conflicts, or the pre-stored temporary files. All these can be fixed in no time with the solutions listed next!

How do I fix theApp_global.asax.dll– Access is denied error?

How do I fix theApp_global.asax.dll– Access is denied error?

1. Precompile before publishing

The easiest fix, and one that worked for 3 out of 5 users, was to precompile before publishing. All you have to do is tick the checkbox forPrecompile before publishingunder theSettingstab.

Once done, theApp_global.asax.dllandapp_global.asax.compiledfiles should reappear in the required folder.

2. Run Visual Studio as administrator

If you are getting theApp_global.asax.dll – Access is deniederror due to missing privileges in Visual Studio,running the app as an administratorshould get things up and running!

3. Reconfigure the permissions

4. Add/remove the PrecompiledApp.config file

For most errors related toApp_global.asax.dll, simply restoring thePrecompiledApp.configfile does the trick. Make sure to place the file in both therootandbindirectories to get rid of theAccess is deniederrors!

Surprisingly, for a few, deleting thePrecompiledApp.configfrom therootof thepublishfolder also worked. So, do try that when nothing else works.

5. Uninstall any third-party antivirus

In many of the cases I observed, it was actually a third-party antivirus likeKasperskyandMcAfeethat triggered thatApp_global.asax.dll – Access is deniederror. Here, simplyuninstalling the appworks!

You could also create an exclusion in the antivirus for the following folders to prevent such errors:

If you don’t want to keep things unprotected, look at ourtop picks for antivirus solutions!

6. Delete the temporary ASP.NET files

Depending on the version of the.NETframework installed, you will need to head to one of the following locations and delete all the temporary files for your application:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET FilesC:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files

Once done, you can finally build your solution and run it without facing any more errors!

These are the best and tested ways to fix theApp_global.asax.dll – Access is deniederror. Remember, before you delete any file(s), always create a copy of it to restore the data in case things don’t go as expected.

While you are here, read our detailedcomparison ofVisual StudioandRider, and find out if the latter is a better choice for you!

Which fix worked for you? Share with our readers in the comments section.

More about the topics:DLL errors,visual studio

Kazim Ali Alvi

Windows Hardware Expert

Kazim has always been fond of technology, be it scrolling through the settings on his iPhone, Android device, or Windows PC. He’s specialized in hardware devices, always ready to remove a screw or two to find out the real cause of a problem.

Long-time Windows user, Kazim is ready to provide a solution for your every software & hardware error on Windows 11, Windows 10 and any previous iteration. He’s also one of our experts in Networking & Security.

User forum

0 messages

Sort by:LatestOldestMost Votes

Comment*

Name*

Email*

Commenting as.Not you?

Save information for future comments

Comment

Δ

Kazim Ali Alvi

Windows Hardware Expert

Kazim is specialized in hardware devices, always ready to remove a screw or two to find out the real cause of a problem.