Note

I like to help others because I am Muslim.

Tuesday, April 22, 2008

Error: "The type [Assembly] exists in both directories" & App_Code folder

if you get some error like this:

Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0433: The type '[Assembly]' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\sct_voting\008ce074\503ba4e5\assembly\dl3\b0922f94\4a4d3fb2_07a5c801\'[Assembly]' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\sct_voting\008ce074\503ba4e5\App_Code.o9o-qy-r.dll'

This error shows some times when you are using ASP.NET Web Project and you are placing you code files inside "App_Code" folder.

To solve this issue change the name of the "App_Code" folder to something else.

I think that it is a bug in ASP.NET Web Project building an assembly for the project and another assembly for the "App_Code" folder.

0 comments:

Post a Comment