Monday, 8 February 2010

Could not load file or assembly when setting up existing web application

When setting up an existing .NET application on a fresh machine you may see the following error:

"Could not load file or assembly 'Some.Assembly.Name' or one of its dependencies. Access is denied."

A potential quick solution is to go to “C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files” and modify the security settings for the folder to grant "Full control" to the 'users' group.

Not ideal but it will get the development environment up-and-running.