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


#1

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?


#2

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>