ASPCONFIG: Could not load file or assembly or one of its dependencies. Access is denied.

Problem While publishing a web application you get a puzzling error that reads like the following in the output window: 1>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe -v \ -p C:\Dev\WebApp\obj\Release\AspnetCompileMerge\Source C:\Dev\WebApp\obj\Release\AspnetCompileMerge\TempBuildDir 1>ASPNETCOMPILER(0,0): Error ASPCONFIG: Could not load file or assembly...

A very simplistic explanation of events in C#

Introduction If you just want to see the code involved, go to the end of this article. I am really writing this for myself because on the rare occasion that I have to rely on...

TSQL: Passing objects to stored procedures via XML

Introduction This is a subject I have heard about repeatedly, but I never bothered looking into it until recently. I was told that writing hard coded insert and update statements is bad practice. To which...

Get Authorized Roles from Web.Config

Introduction To avoid hard coding the names of AD Groups, it is best to just pull them from a place where they already exist. They usually exist in the Authorization section of your web.config: configurationsystem.webauthorization So I...

Getting Started With Entity Framework 4.3.1

Introduction Entity Framework (EF) has evolved quite a bit and as it has evolved it has become more and more confusing to keep up with its changes which have been introduced a series of addons...

Entity Framework: Basic CRUD Operations

I like Entity Framework (EF), I think it is a little too rigid sometimes and it would be very nice if there was a very straight forward way to get Plain Old CLR Objects (POCO)...