+1  A: 

The solution to my error was to uncheck this option from the Web Deployment project:

Treat as library component (remove App_Code.Compiled file)

GoodEnough
A: 

i got the same error but couldn't trace it.. how to resolve it

bh-
A: 

Simply building the web deployment project again after the checkbox change is sometimes not sufficient.

You should rebuild the web site, or clean the ASP.NET temporary ASP.NET Files folder, usually located in "%WINDIR%Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files".

omatrot