SamJolly
SamJolly

Reputation: 6477

Trying to remove references to DLLs and they keep resurfacing in Temporary ASP.NET files?

I am trying to clear out some old DLLs that are no longer used by my MVC3 ASP.NET C# application. I used to have :

using mySpecialDll;

type code, and I have deleted these lines or commented them out. I have rebuilt the application and the solution. I have removed these extra dlls from the bin. However when I run the application I get a compile error and the compiled page in Temporary ASP.NET files is shown with the old uncommented "using mySpecialDLL;" line. I have tried to delete all the folders in the Temporary ASP.NET files root folder, but to no available.

Also the mySpecialDll is not referenced by the application.

It must be referenced from somewhere, but I am confused on this one.

So how do I stop old code using old DLLs being used and referenced.

Thanks

EDIT:

c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a23524eb\66db42a8\App_Web_index.cshtml.8ea7e316.-7paqjsj.0.cs(27,26): error CS0234: The type or namespace name 'mySpecialDLL' does not exist in the namespace 'Org.Myapplication' (are you missing an assembly reference?)

Upvotes: 3

Views: 2560

Answers (1)

Dark Falcon
Dark Falcon

Reputation: 44181

Did you remove the reference from the project references folder and/or the web.config file?

Upvotes: 2

Related Questions