These kinds of errors are written to the windows event log. Please, look at Control Panel → Administration → Event Log, there should be a record with a more detailed description. Can you post it here?
I literally missed " : System.Web.Hosting.IProcessHostPreloadClient" in “public class ApplicationPreload : System.Web.Hosting.IProcessHostPreloadClient” - ups
Same issue with me. I’m trying to configure the application to be autostart with my own class. But i’m having difficulties trying to specify the class as there is not namespace. Even if I add the namespace I still face the same error as below (from Event Viewer in the server):
> *There was an error during processing of the managed application service auto-start for configuration path: 'MACHINE/WEBROOT/APPHOST/Default Web Site/App'. The error message returned is: 'An error occurred while executing Preload method.*
>
> *Exception: System.InvalidOperationException*
>
> *Message: An error occurred while trying to create preload provider 'WebSite5.ApplicationPreload,Default Web Site'.*
>
> *Exception: System.IO.FileNotFoundException*
>
> *Message: Could not load file or assembly 'Default Web Site' or one of its dependencies. The system cannot find the file specified.*
The add tag was added to the applicationHost config as below:
<add name="ApplicationPreload" type="WebSite5.ApplicationPreload,Default Web Site" />
However, the ApplicationPreload is implementing the IProcessHostPreloadClient. I believe the problem is with my tag.