I have a client website where I recently started getting compilation errors:
CS0029: Cannot implicitly convert type
‘AspNet.StarterKits.Classifieds.Web.CategorySelectionChangedEventHandler
[c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\party\db314a04\fbc40acd\App_Code.nhjh6o2h.dll]’ to
‘AspNet.StarterKits.Classifieds.Web.CategorySelectionChangedEventHandler
[]’
On this line:
<uc1:CategoryPath ID="CategoryPath" Runat="server" OnCategorySelectionChanged="CategoryPath_CategorySelectionChanged" />
I have not made any changes to this particular website in over a year.
I discovered that if I rename the web.config file in the root directory of this site, then rename it back, the site seems to recompile and these compilation errors go away for a while. They eventually come back in a period of a few hours.
I suspect the website is crashing somehow and renaming the web.config file is causing a recompile or something similar. This solution always works to fix it but it isn’t feasible for me or the client to be doing this multiple times a day.
Any ideas where to start in even looking into this error? This website is on a remote web host and I don’t have direct access to login to the web server to check ISS or event viewer for any sort of errors unfortunately.
This was resolved by spending a few hours on the phone with the web host and convincing them the problem was on their end. They didn’t share the details of what they did to resolve this issue, but it went away after getting on them to do something about it. It wouldn’t surprise me if Aristos’s suggestion of stopping IIS and deleting temp files worked but the control panel of this remote website didn’t allow me to do that myself.