I get the following error message trying to run my page
Compiler Error Message: CS0433: The type 'usercontrols_BirthDetails' exists in both 'c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\5c377e82\1f883022\App_Web_ub0hcxgl.dll' and 'c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\5c377e82\1f883022\App_Web_3ndqr5wn.dll'
The code works okay on my machine, and fails on the server as above.
Sometimes this happens on my machine, but I can fix it by closing visual studio and re-starting it. So I guess it’s some conflict that happens due to some compilation mistake that ASP.Net is making.
My question is, how can I fix this on my server without rebooting it.
Well, I did solve the problem, but the root cause was something else… Apparently it had something to do with declaring a variable of my usercontrol’s type. For some reason this wasn’t agreeing with ASP.Net on the server (though it was well-digested on my own machine)… I don’t have any idea why exactly this was happening but this clue is a signal to Jon Skeet to step in and describe the thing in technical mumbo-jumbo.
The solution in my case was to remove the usercontrol variable declaration. I got by with a workaround.