App code folder

Camillia used Ask the Experts™
I have a web app with app_code. I copied a folder in there that has LINQ code.

My web app is called AllTools. My folder is called DBML.

In my aspx page, I have this line:
  AllTools.DBML.NBXDataContext db = new AllTools.DBML.NBXbDataContext(connString);

But i get the error below. I deleted the temp folder , compiled again but still got the error.Why?
Error	1	The namespace 'AllTools' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\AllTools\ef559e25\f722471b\App_Code.9qf1qevl.dll' conflicts with the type 'AllTools' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\AllTools\ef559e25\f722471b\App_Web_AllTools.master.cdcab7d2.dfnbbpfx.dll'	C:\InternalProjects\AllTools -v2\CCWallboard\CustomerCare\AllTools\Returns\UnknownReturns.aspx.cs	39	13	C:\...\AllTools\

Open in new window

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Senior Consultant - Deloitte
First of all go to :

c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

Delete all the content, then try! It should work

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial