+1-888-365-2779
Try Now
More in this section

Forums / Set-up & Installation / .NET 4 - AutoStart

.NET 4 - AutoStart

2 posts, 0 answered
  1. Jeremy
    Jeremy avatar
    17 posts
    Registered:
    28 Jul 2010
    01 Dec 2010
    Link to this post
    Has anyone tried setting up Sitefinity 3.7 SP4 (targeting .NET 4) using the AutoStart feature?

    Here's the background on the .NET 4 AutoStart feature:

    http://weblogs.asp.net/scottgu/archive/2009/09/15/auto-start-asp-net-applications-vs-2010-and-net-4-0-series.aspx

    I'm trying to get this running on a shared provider. They've made the changes in applicationHost.config to specify that my app should always be running and specified which serviceAutoStartProvider to use, but I think they want me to define the serviceAutoStartProvider in my web.config rather than applicationHost.config.

    I had thought I could just add

    <system.applicationHost>
        <serviceAutoStartProviders>
          <add name="PreWarmMyCache" type="PreWarmMyCache, MyAssembly" />
        </serviceAutoStartProviders>
    </system.applicationHost>

    to the <configuration> section of my web.config, but .NET throws an error saying that <system.applicationHost> is invalid. I know the default mode is to not allow that section to be overridden and I am waiting to hear back from the host whether they have changed that or not.

    Just seeing if anyone has any recommendations.

    Thanks.
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    03 Dec 2010
    Link to this post
    Hello Jeremy,

    Thank you for using our services.

    The reason you are getting this exception is because this configuration section is specific to the IIS application host config file. This section contains global settings and cannot be used in web.config. More information can be found here: <system.applicationHost>.

    Regards,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered