Keep Getting Compilation Errors on ASP.net Website
<p>I have a client website where I recently started getting compilation errors:</p>

<blockquote>
  <p>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
  []'</p>
</blockquote>

<p>On this line:</p>

<pre><code>&lt;uc1:CategoryPath ID="CategoryPath" Runat="server" OnCategorySelectionChanged="CategoryPath_CategorySelectionChanged" /&gt;
</code></pre>

<p>I have not made any changes to this particular website in over a year. </p>

<p>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. </p>

<p>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. </p>

<p>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. </p>
