SF 4.4 to 5.0 upgrade error - Bugs & Issues - Bugs & Issues - Progress Community
 Bugs & Issues

SF 4.4 to 5.0 upgrade error

  • SF 4.4 to 5.0 upgrade error
  • I followed the instructions for upgrading to 5.0 from 4.4 on http://www.sitefinity.com/documentation/documentationarticles/installation-and-administration-guide/upgrade with no issues. Upon browsing the site for the first time, I got the following error below ("The given key was not present in the dictionary") and can't browse the site.

    Log Name:      Application
    Source:        ASP.NET 4.0.30319.0
    Date:          3/5/2012 4:30:33 PM
    Event ID:      1309
    Task Category: Web Event
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:      SVAIISDEV.svamain.loc
    Description:
    Event code: 3005 
    Event message: An unhandled exception has occurred. 
    Event time: 3/5/2012 4:30:33 PM 
    Event time (UTC): 3/5/2012 10:30:33 PM 
    Event ID: afa0df6a326c47fa9858c24c800d3017 
    Event sequence: 2 
    Event occurrence: 1 
    Event detail code: 0 
     
    Application information: 
        Application domain: /LM/W3SVC/1/ROOT-2-129754602311759723 
        Trust level: Full 
        Application Virtual Path: / 
        Application Path: E:\Websites\sfsandbox.sva.com\ 
        Machine name: SVAIISDEV 
     
    Process information: 
        Process ID: 2772 
        Process name: w3wp.exe 
        Account name: IIS APPPOOL\sfsandbox.sva.com 
     
    Exception information: 
        Exception type: KeyNotFoundException 
        Exception message: The given key was not present in the dictionary.
       at Telerik.Sitefinity.Abstractions.Exceptions.HandleException(Exception exceptionToHandle, ExceptionPolicyName policy, Exception& exceptionToThrow)
       at Telerik.Sitefinity.Abstractions.Exceptions.HandleException(Exception exceptionToHandle, ExceptionPolicyName policy)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromReader(ConfigSection section, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, Boolean checkForUpgrade, UpgradingInfo& upgradingInfo)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromFile(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName, Boolean withUpgrade)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSection(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName)
       at Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider, ConfigPolicyHandler policyHandler, String policyName, Boolean singlePolicy)
       at Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider)
       at Telerik.Sitefinity.Configuration.Config.Get[TSection](Boolean safeMode)
       at Telerik.Sitefinity.Abstractions.ObjectFactory.ConfigureCaching(ConfigurationSourceBuilder configBuilder)
       at Telerik.Sitefinity.Abstractions.ObjectFactory.RegisterIoCTypes()
       at Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap()
       at Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context)
       at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
       at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
       at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
       at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)


     
     
    Request information: 
        Request URL: sfsandbox.sva.com/sitefinity 
        Request path: /sitefinity 
        User host address: 10.20.100.134 
        User:  
        Is authenticated: False 
        Authentication Type:  
        Thread account name: IIS APPPOOL\sfsandbox.sva.com 
     
    Thread information: 
        Thread ID: 6 
        Thread account name: IIS APPPOOL\sfsandbox.sva.com 
        Is impersonating: False 
        Stack trace:    at Telerik.Sitefinity.Abstractions.Exceptions.HandleException(Exception exceptionToHandle, ExceptionPolicyName policy, Exception& exceptionToThrow)
       at Telerik.Sitefinity.Abstractions.Exceptions.HandleException(Exception exceptionToHandle, ExceptionPolicyName policy)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromReader(ConfigSection section, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, Boolean checkForUpgrade, UpgradingInfo& upgradingInfo)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromFile(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName, Boolean withUpgrade)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSection(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName)
       at Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider, ConfigPolicyHandler policyHandler, String policyName, Boolean singlePolicy)
       at Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider)
       at Telerik.Sitefinity.Configuration.Config.Get[TSection](Boolean safeMode)
       at Telerik.Sitefinity.Abstractions.ObjectFactory.ConfigureCaching(ConfigurationSourceBuilder configBuilder)
       at Telerik.Sitefinity.Abstractions.ObjectFactory.RegisterIoCTypes()
       at Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap()
       at Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context)
       at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
       at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
       at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
       at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
     
     
    Custom event details: 


    Event Xml:
    <Event xmlns="schemas.microsoft.com/.../event">
      <System>
        <Provider Name="ASP.NET 4.0.30319.0" />
        <EventID Qualifiers="32768">1309</EventID>
        <Level>3</Level>
        <Task>3</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2012-03-05T22:30:33.000000000Z" />
        <EventRecordID>8705</EventRecordID>
        <Channel>Application</Channel>
        <Computer>SVAIISDEV.svamain.loc</Computer>
        <Security />
      </System>
      <EventData>
        <Data>3005</Data>
        <Data>An unhandled exception has occurred.</Data>
        <Data>3/5/2012 4:30:33 PM</Data>
        <Data>3/5/2012 10:30:33 PM</Data>
        <Data>afa0df6a326c47fa9858c24c800d3017</Data>
        <Data>2</Data>
        <Data>1</Data>
        <Data>0</Data>
        <Data>/LM/W3SVC/1/ROOT-2-129754602311759723</Data>
        <Data>Full</Data>
        <Data>/</Data>
        <Data>E:\Websites\sfsandbox.sva.com\</Data>
        <Data>SVAIISDEV</Data>
        <Data>
        </Data>
        <Data>2772</Data>
        <Data>w3wp.exe</Data>
        <Data>IIS APPPOOL\sfsandbox.sva.com</Data>
        <Data>KeyNotFoundException</Data>
        <Data>The given key was not present in the dictionary.
       at Telerik.Sitefinity.Abstractions.Exceptions.HandleException(Exception exceptionToHandle, ExceptionPolicyName policy, Exception&amp; exceptionToThrow)
       at Telerik.Sitefinity.Abstractions.Exceptions.HandleException(Exception exceptionToHandle, ExceptionPolicyName policy)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromReader(ConfigSection section, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, Boolean checkForUpgrade, UpgradingInfo&amp; upgradingInfo)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromFile(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName, Boolean withUpgrade)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSection(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName)
       at Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider, ConfigPolicyHandler policyHandler, String policyName, Boolean singlePolicy)
       at Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider)
       at Telerik.Sitefinity.Configuration.Config.Get[TSection](Boolean safeMode)
       at Telerik.Sitefinity.Abstractions.ObjectFactory.ConfigureCaching(ConfigurationSourceBuilder configBuilder)
       at Telerik.Sitefinity.Abstractions.ObjectFactory.RegisterIoCTypes()
       at Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap()
       at Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context)
       at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
       at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
       at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
       at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)


    </Data>
        <Data>sfsandbox.sva.com/.../Data>
        <Data>/sitefinity</Data>
        <Data>10.20.100.134</Data>
        <Data>
        </Data>
        <Data>False</Data>
        <Data>
        </Data>
        <Data>IIS APPPOOL\sfsandbox.sva.com</Data>
        <Data>6</Data>
        <Data>IIS APPPOOL\sfsandbox.sva.com</Data>
        <Data>False</Data>
        <Data>   at Telerik.Sitefinity.Abstractions.Exceptions.HandleException(Exception exceptionToHandle, ExceptionPolicyName policy, Exception&amp; exceptionToThrow)
       at Telerik.Sitefinity.Abstractions.Exceptions.HandleException(Exception exceptionToHandle, ExceptionPolicyName policy)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromReader(ConfigSection section, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, Boolean checkForUpgrade, UpgradingInfo&amp; upgradingInfo)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromFile(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName, Boolean withUpgrade)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSection(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName)
       at Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider, ConfigPolicyHandler policyHandler, String policyName, Boolean singlePolicy)
       at Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider)
       at Telerik.Sitefinity.Configuration.Config.Get[TSection](Boolean safeMode)
       at Telerik.Sitefinity.Abstractions.ObjectFactory.ConfigureCaching(ConfigurationSourceBuilder configBuilder)
       at Telerik.Sitefinity.Abstractions.ObjectFactory.RegisterIoCTypes()
       at Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap()
       at Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context)
       at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
       at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
       at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
       at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
    </Data>
      </EventData>
    </Event>
  • I'm also seeing this exact error this morning when doing an upgrade from 4.4 to 5.0. 
    Looks like I will have to roll back to 4.4 for now. 

    Edit: I ran through the instructions again, and this time I get a different error:

    Log Name:      Application
    Source:        ASP.NET 4.0.30319.0
    Date:          3/6/2012 3:23:57 PM
    Event ID:      1309
    Task Category: Web Event
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:      tenerife.hypnotic.net
    Description:
    Event code: 3005 
    Event message: An unhandled exception has occurred. 
    Event time: 3/6/2012 3:23:57 PM 
    Event time (UTC): 3/6/2012 3:23:57 PM 
    Event ID: 27fc01c0204447bf9ae8301ef021e55f 
    Event sequence: 2 
    Event occurrence: 1 
    Event detail code: 0 
     
    Application information: 
        Application domain: /LM/W3SVC/22/ROOT-6-129755210376703647 
        Trust level: Full 
        Application Virtual Path: / 
        Application Path: C:\HostingSpaces\chilitechno\beta.chilitechno.com\wwwroot\ 
        Machine name: TENERIFE 
     
    Process information: 
        Process ID: 4448 
        Process name: w3wp.exe 
        Account name: IIS APPPOOL\ASP.NET v4.0 
     
    Exception information: 
        Exception type: NullReferenceException 
        Exception message: Object reference not set to an instance of an object.
       at Telerik.Sitefinity.Security.Claims.SitefinityClaimsAuthenticationModule.InitializePropertiesFromConfiguration(String serviceName)
       at Telerik.Sitefinity.Security.Claims.SitefinityClaimsAuthenticationModule.InitializeModule(HttpApplication context)
       at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
       at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
       at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
       at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)

     
     
    Request information: 
        Request URL: www.chilitechno.com/ 
        Request path: / 
        User host address: 66.65.12.83 
        User:  
        Is authenticated: False 
        Authentication Type:  
        Thread account name: IIS APPPOOL\ASP.NET v4.0 
     
    Thread information: 
        Thread ID: 15 
        Thread account name: IIS APPPOOL\ASP.NET v4.0 
        Is impersonating: False 
        Stack trace:    at Telerik.Sitefinity.Security.Claims.SitefinityClaimsAuthenticationModule.InitializePropertiesFromConfiguration(String serviceName)
       at Telerik.Sitefinity.Security.Claims.SitefinityClaimsAuthenticationModule.InitializeModule(HttpApplication context)
       at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
       at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
       at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
       at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
     
     
    Custom event details: 

    Event Xml:
      <System>
        <Provider Name="ASP.NET 4.0.30319.0" />
        <EventID Qualifiers="32768">1309</EventID>
        <Level>3</Level>
        <Task>3</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2012-03-06T15:23:57.000000000Z" />
        <EventRecordID>29492</EventRecordID>
        <Channel>Application</Channel>
        <Computer>tenerife.hypnotic.net</Computer>
        <Security />
      </System>
      <EventData>
        <Data>3005</Data>
        <Data>An unhandled exception has occurred.</Data>
        <Data>3/6/2012 3:23:57 PM</Data>
        <Data>3/6/2012 3:23:57 PM</Data>
        <Data>27fc01c0204447bf9ae8301ef021e55f</Data>
        <Data>2</Data>
        <Data>1</Data>
        <Data>0</Data>
        <Data>/LM/W3SVC/22/ROOT-6-129755210376703647</Data>
        <Data>Full</Data>
        <Data>/</Data>
        <Data>C:\HostingSpaces\chilitechno\beta.chilitechno.com\wwwroot\</Data>
        <Data>TENERIFE</Data>
        <Data>
        </Data>
        <Data>4448</Data>
        <Data>w3wp.exe</Data>
        <Data>IIS APPPOOL\ASP.NET v4.0</Data>
        <Data>NullReferenceException</Data>
        <Data>Object reference not set to an instance of an object.
       at Telerik.Sitefinity.Security.Claims.SitefinityClaimsAuthenticationModule.InitializePropertiesFromConfiguration(String serviceName)
       at Telerik.Sitefinity.Security.Claims.SitefinityClaimsAuthenticationModule.InitializeModule(HttpApplication context)
       at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
       at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
       at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
       at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)

    </Data>
        <Data>/</Data>
        <Data>66.65.12.83</Data>
        <Data>
        </Data>
        <Data>False</Data>
        <Data>
        </Data>
        <Data>IIS APPPOOL\ASP.NET v4.0</Data>
        <Data>15</Data>
        <Data>IIS APPPOOL\ASP.NET v4.0</Data>
        <Data>False</Data>
        <Data>   at Telerik.Sitefinity.Security.Claims.SitefinityClaimsAuthenticationModule.InitializePropertiesFromConfiguration(String serviceName)
       at Telerik.Sitefinity.Security.Claims.SitefinityClaimsAuthenticationModule.InitializeModule(HttpApplication context)
       at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
       at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
       at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
       at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
    </Data>
      </EventData>
    </Event>
  • Chris,

    I too went back through and instead of merging the new http/module entries in the upgrade instructions with what was already in the web.config, I replaced it. I now get the same exact error you got your 2nd time around having something to do with the Claims Module.
  • I am getting the same error. I also replaced the module entries because the documentation clearly stated that "The final section should look like this:".
    Seems to be something to do with their Claims Module.

    For one of my sites, I don't need the new windows authentication stuff, so I just reverted back my module entries and the website works fine for now. So I'm not sure if the changes in the module entries are mandatory or not.
    For another site, when I remove it, I get a different "Type FeaturedEvent.FeaturedEvent cannot be resolved." error.
  • I don't use windows auth either, so I reverted to my old module entries and get a new error: 

    [KeyNotFoundException: The given key was not present in the dictionary.]
       Telerik.Sitefinity.Abstractions.Exceptions.HandleException(Exception exceptionToHandle, ExceptionPolicyName policy, Exception& exceptionToThrow) +239
       Telerik.Sitefinity.Abstractions.Exceptions.HandleException(Exception exceptionToHandle, ExceptionPolicyName policy) +23
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromReader(ConfigSection section, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, Boolean checkForUpgrade, UpgradingInfo& upgradingInfo) +542
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromFile(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName, Boolean withUpgrade) +138
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSection(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName) +81
       Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider, ConfigPolicyHandler policyHandler, String policyName, Boolean singlePolicy) +194
       Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider) +30
       Telerik.Sitefinity.Configuration.Config.Get(Boolean safeMode) +272
       Telerik.Sitefinity.Abstractions.ObjectFactory.ConfigureCaching(ConfigurationSourceBuilder configBuilder) +201
       Telerik.Sitefinity.Abstractions.ObjectFactory.RegisterIoCTypes() +302
       Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +232
       Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +116
       System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +546
       System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +325
       System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407
       System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375
    
    [HttpException (0x80004005): The given key was not present in the dictionary.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11529072
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4784373
  • Craig,

    I just found out that the type error I was getting was something on my end. I was missing a custom  file.
    I fixed that problem and reverted my module entries to old ones (without the authentication stuff) and it works fine now. So maybe the error you are getting is also somewhere in your code, maybe you created some custom stuff which got messed up after upgrade.
  • My initial attempt to upgrade a 4.4 site resulted in the same error. I don't really have any customization to the web.config file so I just replaced my whole web.config and the site was able to continue with the upgrade.

    I think there might be one more section that needs to be added to the web.config file:
    <microsoft.identityModel>
        <service>
          <claimsAuthenticationManager type="Telerik.Sitefinity.Security.Claims.SFClaimsAuthenticationManager, Telerik.Sitefinity" />
          <securityTokenHandlers>
            <add type="Telerik.Sitefinity.Security.Claims.SWT.SWTSecurityTokenHandler, Telerik.Sitefinity" />
          </securityTokenHandlers>
          <audienceUris mode="Never"></audienceUris>
          <federatedAuthentication>
            <wsFederation passiveRedirectEnabled="true" issuer="http://localhost" realm="http://localhost" requireHttps="false" />
            <cookieHandler requireSsl="false" />
          </federatedAuthentication>
          <issuerNameRegistry type="Telerik.Sitefinity.Security.Claims.CustomIssuerNameRegistry, Telerik.Sitefinity">
            <trustedIssuers></trustedIssuers>
          </issuerNameRegistry>
          <issuerTokenResolver type="Telerik.Sitefinity.Security.Claims.SWT.WrapIssuerTokenResolver, Telerik.Sitefinity"/>
        </service>
      </microsoft.identityModel>

    This is added to the bottom of the web.config file just before the WindowsAzure telerik element. Some will have this commented out and others will not, just depends on whether you are deployed on Windows Azure or not.

    I haven't dissected the web.config file any more that that. Most everything else looks ok at a quick glance.
  • I tried using the stock web.config from a newly created project and I still get an error:

    [KeyNotFoundException: The given key was not present in the dictionary.]
       Telerik.Sitefinity.Abstractions.Exceptions.HandleException(Exception exceptionToHandle, ExceptionPolicyName policy, Exception& exceptionToThrow) +239
       Telerik.Sitefinity.Abstractions.Exceptions.HandleException(Exception exceptionToHandle, ExceptionPolicyName policy) +23
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromReader(ConfigSection section, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, Boolean checkForUpgrade, UpgradingInfo& upgradingInfo) +542
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromFile(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName, Boolean withUpgrade) +138
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSection(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName) +81
       Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider, ConfigPolicyHandler policyHandler, String policyName, Boolean singlePolicy) +194
       Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider) +30
       Telerik.Sitefinity.Configuration.Config.Get(Boolean safeMode) +272
       Telerik.Sitefinity.Abstractions.ObjectFactory.ConfigureCaching(ConfigurationSourceBuilder configBuilder) +201
       Telerik.Sitefinity.Abstractions.ObjectFactory.RegisterIoCTypes() +302
       Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +232
       Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +116
       System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +575
       System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +352
       System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407
       System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375
    
    [HttpException (0x80004005): The given key was not present in the dictionary.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11697344
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4865861
  • If you had already tried to upgrade it before applying the stock web.config, you might try and override all of the config files in the App_Data/Sitefinity/Configuration folder with the ones from you previous running site. I had to do this on mine as well. I wasn't getting any errors, just a timeout.

    Not sure if it will help, just something I did on my upgrade that helped me along. 
  • I opened a support ticket. It doesn't seem like I should have to muck about in the Configuration folder to get an upgrade from 4.4 to 5.0 to work. Seems like that's just inviting more problems. 
    For now I've rolled back so that's good enough for me. 


  • I wasn't meaning you needed to mess with them. When I initially tried to upgrade and got the error, some of my config files had been updated. So I just grabbed my original config files, the ones I archived, and then replaced the config files in the new 5.0 site.

    Hope you can get some resolution soon.
  • Don't feel bad, Chris. I can't even get an empty clean install of 5.0 up on my Windows 2008 R2 server. I've tried all the things here and at best, given Richard's suggestion of overwriting with my original config files, including web.config, I can get the upgraded site to run fine on the front end. It crashes if I try to access the backend however with:

    [NullReferenceException: Object reference not set to an instance of an object.]
       Telerik.Sitefinity.Security.Claims.ClaimsResolver.GetBasicAuthHeader(HttpContext context) +47
       Telerik.Sitefinity.Security.Claims.ClaimsResolver.SetAuthenticationHeaders(HttpContext context, Boolean includeBasicAuth) +56
       Telerik.Sitefinity.Security.Claims.ClaimsResolver.SendUnauthorizedResponse(HttpContext context, Boolean returnLoginForm, Boolean includeBasicAuth) +175
       Telerik.Sitefinity.Security.Claims.ClaimsResolver.SendUnauthorizedResponse(HttpContextBase context, Boolean returnLoginForm, Boolean includeBasicAuth) +143
       Telerik.Sitefinity.Security.Claims.ProtectedRoute.GetRouteData(HttpContextBase httpContext) +319
       System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext) +369
       System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +74
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +79
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +265
  • I've been able to upgrade my sitefinity website from 4.4 to 5.0
    I've followed Richard instructions, so I have'nt changed web.config file, and the web site is working.
    Anybody nows what is the correct web.config configuration?

    Thanks
  • I had the exact same error but was able to resolve it by replacing my 4.4 web config file with the default 5.0 file and working backward to place all of my custom 4.4 code back into the file.  I don't know what was missing to begin with, but doing it that way worked for me.