We left Russia. We are against aggression and war with Ukraine. It is a tragedy for our nations, it is a nightmare

Making ASP.NET application always running Config For Asp.Net WebSite

I have WebSite project and no namespace and name of site Default Web Site in IIS. How can I specify “type” section?

I did as below, is it true?

Form not allowe to change my question content to edit, so the question is as below:

Default configuration on tutorial as below:

   <serviceautostartproviders>
      <add name="ApplicationPreload" type="WebApplication1.ApplicationPreload, WebApplication1"/>
   </serviceautostartproviders>

I have WebSite project and no namespace and name of site Default Web Site in IIS. How can I specify “type” section?

I configure as below, is it true?

<serviceautostartproviders>      
    <add name="ApplicationPreload" type="ApplicationPreload"/>
</serviceautostartproviders>

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" />