.net - ASP.Net Compilation Conflict... My usercontrol exists in two locations -


I get the following error message when trying to run my page

  Compiler Error Message: CS0433: Both 'usercontrols_BirthDetails' in both types: 'C: \ windows \ Microsoft.NET \ Framework \ v2.0.50727 \ Temporary ASP.NET Files \ root \ 5c377e82 \ 1f883022 \ App_Web_ub0hcxgl.dll' and 'c: \ windows \ microsoft' is present. NET \ Framework \ v2.0.50727 \ Temporary ASP.NET Files \ Root \ 5c377e82 \ 1f883022 \ App_Web_3ndqr5wn.dll ' 

This code works fine on my machine, and as above The server fails.

Sometimes it happens on my machine, but I can fix it by closing the visual studio and starting it again. So I think that this is some struggle which is due to some compilation mistake that is making ASP.Net.

My question is, how can I fix it without rebooting on my server?

I have had this on my dev machine several times, but I have ever used it to be on a server Never have to go. And, I am saying in a sign, not a Sis administrator, so what do I say with a grain of salt, but. . .

Stop the IIS process, and delete everything under temporary asp.net files \ root \ directory. This is the only place where your .aspx pages are compiled - it's not as scary as it seems. Restart IIS and all should be good. And, if it is not, remember, this is not my fault - you are the one who seeks advice from a stranger on stack overflow: -)


Comments