upgraded to 5.1 getting error: Could not load file or assemb

Posted by Community Admin on 03-Aug-2018 13:24

upgraded to 5.1 getting error: Could not load file or assembly 'Microsoft.Http, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find th

All Replies

Posted by Community Admin on 26-Jul-2012 00:00

here is the full text:

Server Error in '/' Application.

Could not load file or assembly 'Microsoft.Http, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Http, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Http, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace:

[FileNotFoundException: Could not load file or assembly 'Microsoft.Http, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
   DynamicModule.ns.Wrapped_OpenAccessMetaDataProvider_4c22652584bc4a4e99bb23b7cdafe403.Initialize(String providerName, NameValueCollection config, Type managerType) +197
   Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager) +1250
   Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, ExceptionPolicyName policy, ManagerBase`1 manager) +63
   Telerik.Sitefinity.Data.ManagerBase`1.SetProvider(String providerName, String transactionName) +296
   Telerik.Sitefinity.Data.ManagerBase`1..ctor(String providerName, String transactionName) +123
   Telerik.Sitefinity.Data.Metadata.MetadataManager..ctor() +12

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) +98
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +241
   System.Activator.CreateInstance() +103
   Telerik.Sitefinity.Data.ManagerBase`1.GetManager(String providerName, String transactionName) +80
   Telerik.Sitefinity.Services.SystemManager.Initialize() +134
   Telerik.Sitefinity.Abstractions.Bootstrapper.RegisterRoutes() +621
   Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +281
   Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +116
   System.Web.Routing.UrlRoutingModule.System.Web.IHttpModule.Init(HttpApplication application) +10
   System.Web.HttpApplication.InitModulesCommon() +172
   System.Web.HttpApplication.InitModules() +43
   System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +828
   System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +304
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +327


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

Posted by Community Admin on 26-Jul-2012 00:00

Hi,

The first reason of the problem might be that you reference to another module/control  that has been built using the old .dll files.

You should delete the references of your controls / modules /  and add the new ones from the bin folder of your SitefinityWebApp project. After that you have to build your custom modules / or controls /,  delete the old references from the SitefinityWebApp project and add the newly built dlls of your updated modules and controls. Finally you have to build the entire solution and the problem should be fixed.

The second reason of the problem might be connected to the version of the reference so can you please try to use bindingRedirect element it in you web.config file:

http://msdn.microsoft.com/en-us/library/eftw1fys.aspx
 
For example you can use the source code below and make the necessary changes in your versions:

<runtime>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
      <assemblyIdentity name="Microsoft.Http"
                        publicKeyToken="31bf3856ad364e35"
                        culture="neutral" />
      <bindingRedirect oldVersion="2011.3.1115.40"
                       newVersion="2012.1.215.40"/>
    </dependentAssembly>
  </assemblyBinding>
  </runtime>


Kind regards,
Stefani Tacheva
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 26-Jul-2012 00:00

i'm not referencing any controls, they have to be all re-written for version 5.1 (migrated from 3.7). the migration went fine, i was fixing things in the site for  a few days, then upgraded from 5.0 to 5.1 and installed the code the support provided (to make the control work - see attached). so either one is causing it. i made changes in the config file that you sent (also see attached), rebuilt the solution, but getting this error now

Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Configuration file web.config does not have root <configuration> tag

Source Error:

Line 9:  -->
Line 10: 
Line 11: <runtime>
Line 12:   <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
Line 13:     <dependentAssembly>

Source File: D:\AnnapolisNew\web.config    Line: 11


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272


oh, i see i can't attach a zip file. here is the text:

<?xml version="1.0"?>
<!--
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
    \Windows\Microsoft.Net\Framework\v2.x\Config
-->

<runtime>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
      <assemblyIdentity name="Microsoft.Http"
                        publicKeyToken="31bf3856ad364e35"
                        culture="neutral" />
      <bindingRedirect oldVersion="2011.3.1115.40"
                       newVersion="2012.1.215.40"/>
    </dependentAssembly>
  </assemblyBinding>
</runtime>



<configuration>
  <configSections>
    <section requirePermission="false" name="microsoft.identityModel" type="Microsoft.IdentityModel.Configuration.MicrosoftIdentityModelSection, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    <!--<sectionGroup name="telerik">
      <section name="sitefinity" type="Telerik.Sitefinity.Configuration.SectionHandler, Telerik.Sitefinity" requirePermission="false" />
    </sectionGroup>-->
  </configSections>
  <appSettings>
    <add key="TestLocalization" value="false"/>
  </appSettings>
  <system.web>
    <httpRuntime maxRequestLength="102400" requestValidationType="Telerik.Sitefinity.Security.Claims.CustomRequestValidator, Telerik.Sitefinity"/>
    <siteMap defaultProvider="SitefinitySiteMap">
      <providers>
        <add name="SitefinitySiteMap" type="Telerik.Sitefinity.Web.SitefinitySiteMap, Telerik.Sitefinity" taxonomyProvider="OpenAccessDataProvider" pageTaxonomy="Pages" rootNode="FrontendSiteMap" pageProvider="OpenAccessDataProvider"/>
      </providers>
    </siteMap>
    <roleManager enabled="false"/>
    <membership defaultProvider="Default">
      <providers>
        <clear/>
        <add name="Default" type="Telerik.Sitefinity.Security.Data.SitefinityMembershipProvider, Telerik.Sitefinity"/>
      </providers>
    </membership>
    <globalization uiCulture="auto" culture="auto" resourceProviderFactoryType="Telerik.Sitefinity.Localization.ExtendedResourceProviderFactory, Telerik.Sitefinity"/>
    <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
        -->
    <compilation debug="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
        <add assembly="WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add assembly="PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      </assemblies>
      <buildProviders>
        <remove extension=".svc"/>
        <add extension=".svc" type="System.ServiceModel.Activation.ServiceBuildProvider, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
      </buildProviders>
    </compilation>
    <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
    <authentication mode="None"/>
    <customErrors mode="Off"/>
    <!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
    <pages>
      <controls>
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
        <add tagPrefix="sitefinity" namespace="Telerik.Sitefinity.Web.UI.Fields" assembly="Telerik.Sitefinity"/>
      </controls>
    </pages>
    <httpHandlers>
      <remove verb="*" path="*.asmx"/>
      <add verb="*" validate="false" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI"/>
      <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>
      <add verb="*" path="Telerik.Sitefinity.FilesDownloadHandler.ashx" type="Telerik.Sitefinity.Modules.Files.FilesDownloadHandler, Telerik.Sitefinity"/>
      <add verb="*" path="Telerik.Sitefinity.LibrariesRadUploadHandler.ashx" type="Telerik.Sitefinity.Modules.Libraries.Web.LibrariesRadUploadHandler, Telerik.Sitefinity"/>
      <add verb="*" path="Telerik.Sitefinity.ThumbnailUploadHandler.ashx" type="Telerik.Sitefinity.Modules.Libraries.Web.ThumbnailUploadHandler, Telerik.Sitefinity"/>
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
      <add verb="*" validate="false" path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>
      <add verb="*" path="Telerik.Sitefinity.AsyncImageUploadHandler.ashx" type="Telerik.Sitefinity.Modules.Libraries.Web.AsyncImageUploadHandler, Telerik.Sitefinity"/>
      <add verb="*" path="Telerik.Sitefinity.AsyncFileUploadHandler.ashx" type="Telerik.Sitefinity.Workflow.AsyncFileUploadHandler, Telerik.Sitefinity"/>
      <add verb="*" path="Telerik.Sitefinity.AsyncToolsetXmlUploadHandler.ashx" type="Telerik.Sitefinity.Configuration.Web.Services.AsyncToolsetXmlUploadHandler, Telerik.Sitefinity"/>
      <add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" validate="false"/>
      <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" validate="false"/>
      <add verb="*" path="Telerik.ReportViewer.axd" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms"/>
    </httpHandlers>
    <httpModules>
      <remove name="FormsAuthentication"/>
      <remove name="RoleManager"/>
      <add name="ClaimsPrincipalHttpModule" type="Microsoft.IdentityModel.Web.ClaimsPrincipalHttpModule, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add name="SitefinityClaimsAuthenticationModule" type="Telerik.Sitefinity.Security.Claims.SitefinityClaimsAuthenticationModule, Telerik.Sitefinity"/>
      <add name="Sitefinity" type="Telerik.Sitefinity.Web.SitefinityHttpModuleIIS6, Telerik.Sitefinity"/>
      <add name="SessionAuthenticationModule" type="Telerik.Sitefinity.Security.Claims.SitefinitySessionAuthenticationModule, Telerik.Sitefinity"/>
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/>
      <add name="SitefinityAnalyticsModule" type="Telerik.Sitefinity.Analytics.Server.DependencyResolution.Module.DependencyRegistrarHttpModule, Telerik.Sitefinity.Analytics.Server.DependencyResolution"/>
    </httpModules>
  </system.web>
  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="basicHttpBinding" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647">
          <security mode="None"/>
        </binding>
        <!-- note: To enable https/SSL support for the Analytics module, uncomment this binding -->
        <!--<binding name="webBinding" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647">
          <security mode="Transport">
            <transport clientCredentialType="None"/>
          </security>
        </binding>-->
      </basicHttpBinding>
    </bindings>
    <behaviors>
      <endpointBehaviors>
        <behavior name="SitefinityWebApp.Sitefinity.Services.Content.EventsAspNetAjaxBehavior">
          <enableWebScript/>
        </behavior>
      </endpointBehaviors>
      <serviceBehaviors>
        <behavior>
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="true"/>
          <!--<openAccessWorkflowTracking applicationName="/workflow" />-->
        </behavior>
        <behavior name="Telerik.Sitefinity.Analytics.Infrastructure.Services.AnalyticsPermissionsServiceBehavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
        <behavior name="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.Services.AccountsServiceBehavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
        <behavior name="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.DashboardDataBehavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
        <behavior name="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.MapDataServiceBehavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
        <behavior name="Telerik.Sitefinity.Web.Services.LocalizationBehavior"/>
      </serviceBehaviors>
    </behaviors>
    <services>
      <service name="SitefinityWebApp.Sitefinity.Services.Content.Events">
        <endpoint address="" behaviorConfiguration="SitefinityWebApp.Sitefinity.Services.Content.EventsAspNetAjaxBehavior" binding="webHttpBinding" contract="SitefinityWebApp.Sitefinity.Services.Content.Events"/>
      </service>
      <service behaviorConfiguration="Telerik.Sitefinity.Analytics.Infrastructure.Services.AnalyticsPermissionsServiceBehavior" name="Telerik.Sitefinity.Analytics.Infrastructure.Services.AnalyticsPermissionsService">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding" contract="Telerik.Sitefinity.Analytics.Infrastructure.Services.AnalyticsPermissionsService"/>
        <!-- note: To enable https/SSL support for the Analytics module, uncomment this endpoint -->
        <!--<endpoint address=""
                  binding="basicHttpBinding"
                  bindingConfiguration="webBinding"
                  contract="Telerik.Sitefinity.Analytics.Infrastructure.Services.AnalyticsPermissionsService"/>-->
      </service>
      <service behaviorConfiguration="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.Services.AccountsServiceBehavior" name="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.Services.AccountsService">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding" contract="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.Services.AccountsService"/>
        <!-- note: To enable https/SSL support for the Analytics module, uncomment this endpoint -->
        <!--<endpoint address=""
                  binding="basicHttpBinding"
                  bindingConfiguration="webBinding"
                  contract="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.Services.AccountsService"/>-->
      </service>
      <service behaviorConfiguration="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.DashboardDataBehavior" name="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.DashboardData">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding" contract="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.DashboardData"/>
        <!-- note: To enable https/SSL support for the Analytics module, uncomment this endpoint -->
        <!--<endpoint address=""
                  binding="basicHttpBinding"
                  bindingConfiguration="webBinding"
                  contract="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.DashboardData"/>-->
      </service>
      <service behaviorConfiguration="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.MapDataServiceBehavior" name="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.MapDataService">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding" contract="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.MapDataService"/>
        <!-- note: To enable https/SSL support for the Analytics module, uncomment this endpoint -->
        <!--<endpoint address=""
                  binding="basicHttpBinding"
                  bindingConfiguration="webBinding"
                  contract="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.MapDataService" />-->
      </service>
    </services>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
  </system.serviceModel>
  <!--
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    -->
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="WebDAVModule"/>
      <remove name="UrlRoutingModule"/>
      <remove name="ScriptModule"/>
      <remove name="RadUploadModule"/>
      <remove name="Sitefinity"/>
      <remove name="SitefinityAnalyticsModule"/>
      <remove name="FormsAuthentication"/>
      <remove name="RoleManager"/>
      <add name="ClaimsPrincipalHttpModule" type="Microsoft.IdentityModel.Web.ClaimsPrincipalHttpModule, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add name="SitefinityClaimsAuthenticationModule" type="Telerik.Sitefinity.Security.Claims.SitefinityClaimsAuthenticationModule, Telerik.Sitefinity"/>
      <add name="Sitefinity" type="Telerik.Sitefinity.Web.SitefinityHttpModule, Telerik.Sitefinity"/>
      <add name="SessionAuthenticationModule" type="Telerik.Sitefinity.Security.Claims.SitefinitySessionAuthenticationModule, Telerik.Sitefinity"/>
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/>
      <add name="SitefinityAnalyticsModule" type="Telerik.Sitefinity.Analytics.Server.DependencyResolution.Module.DependencyRegistrarHttpModule, Telerik.Sitefinity.Analytics.Server.DependencyResolution"/>
    </modules>
    <handlers>
      <remove name="WebDAV"/>
      <remove name="ScriptHandlerFactory"/>
      <remove name="ScriptHandlerFactoryAppServices"/>
      <remove name="ScriptResource"/>
      <remove name="UrlRoutingHandler"/>
      <remove name="WildCard"/>
      <remove name="WildCard32"/>
      <remove name="Telerik.Web.UI.DialogHandler"/>
      <remove name="Telerik.RadUploadProgressHandler"/>
      <remove name="Telerik.Sitefinity.FilesDownloadHandler"/>
      <remove name="Telerik.Sitefinity.LibrariesRadUploadHandler"/>
      <remove name="Telerik.Sitefinity.AsyncImageUploadHandler"/>
      <remove name="Telerik.Sitefinity.AsyncFileUploadHandler"/>
      <remove name="Telerik.Sitefinity.AsyncToolsetXmlUploadHandler"/>
      <remove name="Telerik.Web.UI.SpellCheckHandler"/>
      <remove name="Telerik_Web_UI_WebResource_axd"/>
      <remove name="Telerik_Web_UI_DialogHandler_aspx"/>
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="WildCard" path="*" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv4.0,bitness64"/>
      <add name="WildCard32" path="*" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv4.0,bitness32"/>
      <add name="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.axd" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>
      <add name="Telerik.RadUploadProgressHandler" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>
      <add name="Telerik.Sitefinity.FilesDownloadHandler" path="Telerik.Sitefinity.FilesDownloadHandler.ashx" verb="*" type="Telerik.Sitefinity.Modules.Files.FilesDownloadHandler, Telerik.Sitefinity"/>
      <add name="Telerik.Sitefinity.LibrariesRadUploadHandler" path="Telerik.Sitefinity.LibrariesRadUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Modules.Libraries.Web.LibrariesRadUploadHandler, Telerik.Sitefinity"/>
      <add name="Telerik.Sitefinity.ThumbnailUploadHandler" path="Telerik.Sitefinity.ThumbnailUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Modules.Libraries.Web.ThumbnailUploadHandler, Telerik.Sitefinity"/>
      <add name="Telerik.Sitefinity.AsyncImageUploadHandler" path="Telerik.Sitefinity.AsyncImageUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Modules.Libraries.Web.AsyncImageUploadHandler, Telerik.Sitefinity"/>
      <add name="Telerik.Sitefinity.AsyncFileUploadHandler" path="Telerik.Sitefinity.AsyncFileUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Workflow.AsyncFileUploadHandler, Telerik.Sitefinity"/>
      <add name="Telerik.Sitefinity.AsyncToolsetXmlUploadHandler" path="Telerik.Sitefinity.AsyncToolsetXmlUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Configuration.Web.Services.AsyncToolsetXmlUploadHandler, Telerik.Sitefinity"/>
      <add name="Telerik.Web.UI.SpellCheckHandler" verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI"/>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" path="Telerik.Web.UI.WebResource.axd" preCondition="integratedMode" type="Telerik.Web.UI.WebResource"/>
      <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler"/>
      <add name="Telerik.ReportViewer.axd_*" verb="*" preCondition="integratedMode" path="Telerik.ReportViewer.axd" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms"/>
    </handlers>
    <staticContent>
      <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="31.00:00:00"/>
    </staticContent>
    <urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true"/>
  </system.webServer>
  <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"/>
      <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/>
      </issuerNameRegistry>
      <issuerTokenResolver type="Telerik.Sitefinity.Security.Claims.SWT.WrapIssuerTokenResolver, Telerik.Sitefinity"/>
    </service>
  </microsoft.identityModel>
  <!-- Begin telerik section  -->
  <!--<telerik>
    <sitefinity>
      <environment platform="WindowsAzure"/>
      <sitefinityConfig storageMode="Database" />
    </sitefinity>
  </telerik>-->
  <!-- End telerik section  -->
</configuration>

Posted by Community Admin on 26-Jul-2012 00:00

Hi Inna,

We will get back to you in the support ticket in order to keep the information flaw structured. After the issue is resolved you can update the forum thread.

Kind regards,
Victor Velev
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 26-Jul-2012 00:00

Victor, to keep information flaw structured is a wonderful idea, but I can't afford to wait for days for the ticket to be replied to. I have more hope for this forum, as somebody may have similar problem and will be able to help. I need to keep migrating the site. Here is exactly what happened: I migrated 3.7 site into 5.0. Everything went fine. I was adjusting the CSS, templates and a few other things. All the custom controls (there are only a few of them) where blocked. Then the support had helped me with one of the controls and told me how to install it. I suppose they know what they were doing, so that should not be a problem. Below is code they sent. Then, I upgraded to version 5.1, rebuild the site and all the hell broke loose. I began getting this message. Even when I inserted the code that Stefani sent:

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Http"
publicKeyToken="31bf3856ad364e35"
culture="neutral" />
<bindingRedirect oldVersion="2011.3.1115.40"
newVersion="2012.1.215.40"/>
</dependentAssembly>
</assemblyBinding>
</runtime>

I still get the same error message.

I thought that the master page (the support sent) could cause it, so I installed the old one, but the error still persist. Here is the code that has been sent to me:

Home.Master
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Home.master.cs" Inherits="SitefinityWebApp.App_Master.Home" %>
<%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" Assembly="Telerik.Sitefinity" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/.../xhtml1-transitional.dtd">

<html xmlns="www.w3.org/.../xhtml">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
<LINK REL="SHORTCUT ICON" HREF="/favicon.ico" />
<script type="text/javascript">    var switchTo5x = true;</script>
<script type="text/javascript" src="w.sharethis.com/.../script>
<script type="text/javascript">    stLight.options( publisher: "ce29c096-25a8-49fb-8a2b-7d5bcaac0054" ); </script>

    <sf:ResourceLinks runat="server" id="resourceLink1" UseEmbeddedThemes="false" >
<sf:ResourceFile JavaScriptLibrary="None" Name="~/scripts/jquery-1.2.1.pack.js" AssemblyInfo="" IsFromTheme="False" Static="True" />
</sf:ResourceLinks>


    <%-- <sfweb:jsfilelink id="JsFileLink4" type="text/javascript" runat="server" filename="~/scripts/jquery-easing.1.2.pack.js" /> --%>
<sf:ResourceLinks runat="server" id="resourceLink2" UseEmbeddedThemes="false" >
<sf:ResourceFile JavaScriptLibrary="None" Name="~/scripts/jquery-easing.1.2.pack.js" AssemblyInfo="" IsFromTheme="False" Static="True" />
</sf:ResourceLinks>
    <%-- <sfweb:jsfilelink id="JsFileLink5" type="text/javascript" runat="server" filename="~/scripts/jquery-easing-compatibility.1.2.pack.js" /> --%>
<sf:ResourceLinks runat="server" id="resourceLink3" UseEmbeddedThemes="false" >
<sf:ResourceFile JavaScriptLibrary="None" Name="~/scripts/jquery-easing-compatibility.1.2.pack.js" AssemblyInfo="" IsFromTheme="False" Static="True" />
</sf:ResourceLinks>
    <%-- <sfweb:jsfilelink id="JsFileLink6" type="text/javascript" runat="server" filename="~/scripts/coda-slider.1.1.1.pack.js" /> --%>
<sf:ResourceLinks runat="server" id="resourceLink4" UseEmbeddedThemes="false" >
<sf:ResourceFile JavaScriptLibrary="None" Name="~/scripts/coda-slider.1.1.1.pack.js" AssemblyInfo="" IsFromTheme="False" Static="True" />
</sf:ResourceLinks>
    <%-- <sfweb:jsfilelink id="JsFileLink7" type="text/javascript" runat="server" filename="~/scripts/swfobject_modified.js" /> --%>
<sf:ResourceLinks runat="server" id="resourceLink5" UseEmbeddedThemes="false" >
<sf:ResourceFile JavaScriptLibrary="None" Name="~/scripts/swfobject_modified.js" AssemblyInfo="" IsFromTheme="False" Static="True" />
</sf:ResourceLinks>
    <%-- <sfweb:jsfilelink id="JsFileLink8" type="text/javascript" runat="server" filename="~/scripts/featuredcontentglider.js" /> --%>

<sf:ResourceLinks runat="server" id="resourceLink6" UseEmbeddedThemes="false" >
<sf:ResourceFile JavaScriptLibrary="None" Name="~/scripts/featuredcontentglider.js" AssemblyInfo="" IsFromTheme="False" Static="True" />
</sf:ResourceLinks>


<script type="text/javascript">
    jQuery(window).bind("load", function ()
        jQuery("div#slider1").codaSlider()
        $(".homePromo").mouseover(function ()
            $(this).addClass("homePromoOver");
        ).mouseout(function ()
            $(this).removeClass("homePromoOver");
        ).click(function ()
            location.href = $(this).find("a").attr("href");
        );
    );
    </script>
</head>
<body>


    <form id="form1" runat="server">
    <asp:scriptmanager id="ScriptManager1" runat="server" />
    <div class="container">
        <div class="body">
            <div class="header">
                <asp:contentplaceholder id="SiteLogo" runat="server">
                </asp:contentplaceholder>
            </div>
            <div class="dateDepartments">
                <div class="departments">
                    <asp:dropdownlist id="lstDepartments" runat="server" autopostback="true">
                    </asp:dropdownlist>
                </div>
                <div class="date">
                     <asp:placeholder id="phDate" runat="server">
                     </asp:placeholder>
                 </div>
            </div>
            <div class="nav">
                <asp:contentplaceholder id="MainNavigation" runat="server">
                </asp:contentplaceholder>
            </div>
            <div class="search">
                <asp:contentplaceholder id="SearchBox" runat="server">
                </asp:contentplaceholder>
            </div>
            <div id="homeMain">
                <div id="homeFlash">

                <asp:contentplaceholder id="homeFlash" runat="server">
                </asp:contentplaceholder>

                <%--     <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="692" height="315" id="FlashID" title="Flash">
                        <param name="movie" value="flash/annapolis.swf" />
                        <param name="quality" value="high" />
                        <param name="wmode" value="opaque" />
                        <param name="swfversion" value="8.0.35.0" />
                        <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
                        <param name="expressinstall" value="Scripts/expressInstall.swf" />
                        <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                        <!--[if !IE]>-->
                        <object type="application/x-shockwave-flash" data="flash/annapolis.swf" width="692" height="315">
                            <!--<![endif]-->
                            <param name="quality" value="high" />
                            <param name="wmode" value="opaque" />
                            <param name="swfversion" value="8.0.35.0" />
                            <param name="expressinstall" value="Scripts/expressInstall.swf" />
                            <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                            <div>
                                <h4>
                                    Content on this page requires a newer version of Adobe Flash Player.</h4>
                                <p>
                                    <a href="www.adobe.com/.../getflashplayer">
                                        <img src="www.adobe.com/.../get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                            </div>
                            <!--[if !IE]>-->
                        </object>
                        <!--<![endif]-->
                    </object> --%>
                </div>
                <div id="homePromos">
                    <asp:contentplaceholder id="HomeNewsArea" runat="server"></asp:contentplaceholder>
                </div>
            </div>
            <div class="lowerBody">
                <div class="rightContentarea">
                    <div class="Twitter">
                        <asp:contentplaceholder id="Twitter" runat="server">
                        </asp:contentplaceholder>
                    </div>
                    <div class="RightContentHeader">
                    </div>
                   
                   
                    <div class="newsBg">
                        <div class="newsBgInnerContainer">

                            <div id="canadaprovinces" class="glidecontentwrapper">                               
                                <asp:contentplaceholder id="SlideShowNews" runat="server"></asp:contentplaceholder>
                            </div>
                           
                            <div id="p-select" class="glidecontenttoggler">
                                <asp:placeholder id="phSlideShowPrevNext" runat="server" />
                                <a href="#" class="prev">Prev</a>
                                <a href="#" class="toc">1</a>
                                <a href="#" class="toc">2</a>
                                <a href="#" class="toc">3</a>
                                <a href="#" class="toc">4</a>
                                <a href="#" class="toc">5</a>
                                <a href="#" class="toc">6</a>
                                <a href="#" class="toc">7</a>
                                <a href="#" class="toc">8</a>
                                <a href="#" class="toc">9</a>
                                <a href="#" class="next">Next</a>
                            </div>
                           
                        </div>
                    </div>
                   
                   
                    <div class="sliderJQ">
                                               
                        <noscript>
                            <p>
                                Unfortunately your browser does not hava JavaScript capabilities which are required to exploit full functionality of our site. This could be the result of two possible scenarios:</p>
                            <ol>
                                <li>You are using an old web browser, in which case you should upgrade it to a newer version. We recommend the latest version of <a href="www.getfirefox.com">Firefox</.../li>
                                <li>You have disabled JavaScript in you browser, in which case you will have to enable it to properly use our site. <a href="www.google.com/.../answer.py on enabling JavaScript</a>.</li>
                            </ol>
                        </noscript>
                       
                       
                        <div class="slider-wrap">
                            <div id="slider1" class="csw">
                                <div class="panelContainer">
                               
                                    <div class="panel" title="ANNOUNCEMENTS">
                                        <div class="wrapper">
                                            <asp:contentplaceholder id="Announcments" runat="server" />
                                            <p>
                                                <a href="#4" class="cross-link" title="Go to Forms and Permits">&#171; Previous</a> |
                                                <a href="#2" class="cross-link" title="Go to Transit">Next &#187;</a>
                                            </p>
                                        </div>
                                    </div>
                                   
                                   
                                    <div class="panel" title="TRANSIT">
                                        <div class="wrapper">
                                            <asp:contentplaceholder id="Transit" runat="server" />
                                            <p>
                                                <a href="#1" class="cross-link" title="Go to Announcements">&#171; Previous</a> |
                                                <a href="#3" class="cross-link" title="Go to Upcoming Events">Next &#187;</a>
                                            </p>
                                        </div>
                                    </div>
                                   
                                    <div class="panel" title="UPCOMING EVENTS">
                                        <div class="wrapper">
                                            <asp:contentplaceholder id="UpcomingEvents" runat="server" />
                                            <p>
                                                <a href="#2" class="cross-link" title="Go to Transit">&#171; Previous</a> |
                                                <a href="#4" class="cross-link" title="Go to Forms and Permits">Next &#187;</a>
                                            </p>
                                        </div>
                                    </div>
                                   
                                    <div class="panel" title="FORMS AND PERMITS">
                                        <div class="wrapper">
                                            <asp:contentplaceholder id="FormsPermits" runat="server" />
                                            <p>
                                                <a href="#3" class="cross-link" title="Go to Upcoming Events">&#171; Previous</a> |
                                                <a href="#1" class="cross-link" title="Go to Announcements">Next &#187;</a>
                                            </p>
                                        </div>
                                    </div>
                                   
                                </div>
                                <!-- .panelContainer -->
                            </div>
                            <!-- #slider1 -->
                        </div>
                        <!-- .slider-wrap -->
                       
                       
                       
                    </div>
                </div>
                <div class="sidenav">
                    <asp:contentplaceholder id="SideNavigation" runat="server">
                    </asp:contentplaceholder>
                </div>
            </div>
        </div>
    </div>


    <div class="footer">

       

        <asp:contentplaceholder id="FooterContent" runat="server">
        </asp:contentplaceholder>
    </div>




    <script type="text/javascript">
        <!--
        swfobject.registerObject("FlashID");
        //-->
    </script>

    </form>
   
   


</body>
</html>

Home.Master.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SitefinityWebApp.App_Master

    public partial class Home: System.Web.UI.MasterPage
   
        private SiteMapNode departmentNode = null;


        protected void Page_Load(object sender, EventArgs e)
       
            phDate.Controls.Add(new LiteralControl(DateTime.Now.ToLongDateString()));

            if (!IsPostBack)
           
                SetDepartmentNode(SiteMap.RootNode);

                if (departmentNode != null)
               
                    lstDepartments.Items.Add(new ListItem("City Departments and Offices", "0"));
                    foreach (SiteMapNode siteMapNode in departmentNode.ChildNodes)
                   
                        lstDepartments.Items.Add(new ListItem(siteMapNode.Title, siteMapNode.Url));
                   
               
                else
               
                    lstDepartments.Visible = false;
               
           
       

        private void SetDepartmentNode(SiteMapNode currentNode)
       

            if (currentNode.Title != null && currentNode.Key == "b1b4bdf3-bb01-48a9-a140-105970c7265f")
           
                departmentNode = currentNode;
           
            else
           
                foreach (SiteMapNode siteMapNode in currentNode.ChildNodes)
               
                    SetDepartmentNode(siteMapNode);
               
                return;
           
       
        protected void lstDepartments_SelectedIndexChanged(object sender, EventArgs e)
       
            if (lstDepartments.SelectedItem.Value != "0")
           
                Response.Redirect(lstDepartments.SelectedItem.Value);
           
       
   



Home.Master.designer.cs


//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace SitefinityWebApp.App_Master
   
   
    public partial class Home
       
        /// <summary>
        /// head control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder head;
       
        /// <summary>
        /// resourceLink1 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::Telerik.Sitefinity.Web.UI.ResourceLinks resourceLink1;
       
        /// <summary>
        /// resourceLink2 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::Telerik.Sitefinity.Web.UI.ResourceLinks resourceLink2;
       
        /// <summary>
        /// resourceLink3 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::Telerik.Sitefinity.Web.UI.ResourceLinks resourceLink3;
       
        /// <summary>
        /// resourceLink4 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::Telerik.Sitefinity.Web.UI.ResourceLinks resourceLink4;
       
        /// <summary>
        /// resourceLink5 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::Telerik.Sitefinity.Web.UI.ResourceLinks resourceLink5;
       
        /// <summary>
        /// resourceLink6 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::Telerik.Sitefinity.Web.UI.ResourceLinks resourceLink6;
       
        /// <summary>
        /// form1 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlForm form1;
       
        /// <summary>
        /// ScriptManager1 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.ScriptManager ScriptManager1;
       
        /// <summary>
        /// SiteLogo control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder SiteLogo;
       
        /// <summary>
        /// lstDepartments control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.DropDownList lstDepartments;
       
        /// <summary>
        /// phDate control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.PlaceHolder phDate;
       
        /// <summary>
        /// MainNavigation control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder MainNavigation;
       
        /// <summary>
        /// SearchBox control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder SearchBox;
       
        /// <summary>
        /// homeFlash control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder homeFlash;
       
        /// <summary>
        /// HomeNewsArea control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder HomeNewsArea;
       
        /// <summary>
        /// Twitter control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder Twitter;
       
        /// <summary>
        /// SlideShowNews control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder SlideShowNews;
       
        /// <summary>
        /// phSlideShowPrevNext control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.PlaceHolder phSlideShowPrevNext;
       
        /// <summary>
        /// Announcments control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder Announcments;
       
        /// <summary>
        /// Transit control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder Transit;
       
        /// <summary>
        /// UpcomingEvents control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder UpcomingEvents;
       
        /// <summary>
        /// FormsPermits control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder FormsPermits;
       
        /// <summary>
        /// SideNavigation control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder SideNavigation;
       
        /// <summary>
        /// FooterContent control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder FooterContent;
   



and here is the new config file


<?xml version="1.0"?>
<!--
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
    \Windows\Microsoft.Net\Framework\v2.x\Config
-->





<configuration>
 

 
  <configSections>
    <section requirePermission="false" name="microsoft.identityModel" type="Microsoft.IdentityModel.Configuration.MicrosoftIdentityModelSection, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    <!--<sectionGroup name="telerik">
      <section name="sitefinity" type="Telerik.Sitefinity.Configuration.SectionHandler, Telerik.Sitefinity" requirePermission="false" />
    </sectionGroup>-->
  </configSections>

  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Http"
                          publicKeyToken="31bf3856ad364e35"
                          culture="neutral" />
        <bindingRedirect oldVersion="2011.3.1115.40"
                         newVersion="2012.1.215.40"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
 
 
  <appSettings>
    <add key="TestLocalization" value="false"/>
  </appSettings>
  <system.web>
    <httpRuntime maxRequestLength="102400" requestValidationType="Telerik.Sitefinity.Security.Claims.CustomRequestValidator, Telerik.Sitefinity"/>
    <siteMap defaultProvider="SitefinitySiteMap">
      <providers>
        <add name="SitefinitySiteMap" type="Telerik.Sitefinity.Web.SitefinitySiteMap, Telerik.Sitefinity" taxonomyProvider="OpenAccessDataProvider" pageTaxonomy="Pages" rootNode="FrontendSiteMap" pageProvider="OpenAccessDataProvider"/>
      </providers>
    </siteMap>
    <roleManager enabled="false"/>
    <membership defaultProvider="Default">
      <providers>
        <clear/>
        <add name="Default" type="Telerik.Sitefinity.Security.Data.SitefinityMembershipProvider, Telerik.Sitefinity"/>
      </providers>
    </membership>
    <globalization uiCulture="auto" culture="auto" resourceProviderFactoryType="Telerik.Sitefinity.Localization.ExtendedResourceProviderFactory, Telerik.Sitefinity"/>
    <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
        -->
    <compilation debug="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
        <add assembly="WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add assembly="PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      </assemblies>
      <buildProviders>
        <remove extension=".svc"/>
        <add extension=".svc" type="System.ServiceModel.Activation.ServiceBuildProvider, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
      </buildProviders>
    </compilation>
    <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
    <authentication mode="None"/>
    <customErrors mode="Off"/>
    <!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
    <pages>
      <controls>
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
        <add tagPrefix="sitefinity" namespace="Telerik.Sitefinity.Web.UI.Fields" assembly="Telerik.Sitefinity"/>
      </controls>
    </pages>
    <httpHandlers>
      <remove verb="*" path="*.asmx"/>
      <add verb="*" validate="false" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI"/>
      <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>
      <add verb="*" path="Telerik.Sitefinity.FilesDownloadHandler.ashx" type="Telerik.Sitefinity.Modules.Files.FilesDownloadHandler, Telerik.Sitefinity"/>
      <add verb="*" path="Telerik.Sitefinity.LibrariesRadUploadHandler.ashx" type="Telerik.Sitefinity.Modules.Libraries.Web.LibrariesRadUploadHandler, Telerik.Sitefinity"/>
      <add verb="*" path="Telerik.Sitefinity.ThumbnailUploadHandler.ashx" type="Telerik.Sitefinity.Modules.Libraries.Web.ThumbnailUploadHandler, Telerik.Sitefinity"/>
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
      <add verb="*" validate="false" path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>
      <add verb="*" path="Telerik.Sitefinity.AsyncImageUploadHandler.ashx" type="Telerik.Sitefinity.Modules.Libraries.Web.AsyncImageUploadHandler, Telerik.Sitefinity"/>
      <add verb="*" path="Telerik.Sitefinity.AsyncFileUploadHandler.ashx" type="Telerik.Sitefinity.Workflow.AsyncFileUploadHandler, Telerik.Sitefinity"/>
      <add verb="*" path="Telerik.Sitefinity.AsyncToolsetXmlUploadHandler.ashx" type="Telerik.Sitefinity.Configuration.Web.Services.AsyncToolsetXmlUploadHandler, Telerik.Sitefinity"/>
      <add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" validate="false"/>
      <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" validate="false"/>
      <add verb="*" path="Telerik.ReportViewer.axd" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms"/>
    </httpHandlers>
    <httpModules>
      <remove name="FormsAuthentication"/>
      <remove name="RoleManager"/>
      <add name="ClaimsPrincipalHttpModule" type="Microsoft.IdentityModel.Web.ClaimsPrincipalHttpModule, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add name="SitefinityClaimsAuthenticationModule" type="Telerik.Sitefinity.Security.Claims.SitefinityClaimsAuthenticationModule, Telerik.Sitefinity"/>
      <add name="Sitefinity" type="Telerik.Sitefinity.Web.SitefinityHttpModuleIIS6, Telerik.Sitefinity"/>
      <add name="SessionAuthenticationModule" type="Telerik.Sitefinity.Security.Claims.SitefinitySessionAuthenticationModule, Telerik.Sitefinity"/>
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/>
      <add name="SitefinityAnalyticsModule" type="Telerik.Sitefinity.Analytics.Server.DependencyResolution.Module.DependencyRegistrarHttpModule, Telerik.Sitefinity.Analytics.Server.DependencyResolution"/>
    </httpModules>
  </system.web>
  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="basicHttpBinding" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647">
          <security mode="None"/>
        </binding>
        <!-- note: To enable https/SSL support for the Analytics module, uncomment this binding -->
        <!--<binding name="webBinding" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647">
          <security mode="Transport">
            <transport clientCredentialType="None"/>
          </security>
        </binding>-->
      </basicHttpBinding>
    </bindings>
    <behaviors>
      <endpointBehaviors>
        <behavior name="SitefinityWebApp.Sitefinity.Services.Content.EventsAspNetAjaxBehavior">
          <enableWebScript/>
        </behavior>
      </endpointBehaviors>
      <serviceBehaviors>
        <behavior>
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="true"/>
          <!--<openAccessWorkflowTracking applicationName="/workflow" />-->
        </behavior>
        <behavior name="Telerik.Sitefinity.Analytics.Infrastructure.Services.AnalyticsPermissionsServiceBehavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
        <behavior name="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.Services.AccountsServiceBehavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
        <behavior name="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.DashboardDataBehavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
        <behavior name="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.MapDataServiceBehavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
        <behavior name="Telerik.Sitefinity.Web.Services.LocalizationBehavior"/>
      </serviceBehaviors>
    </behaviors>
    <services>
      <service name="SitefinityWebApp.Sitefinity.Services.Content.Events">
        <endpoint address="" behaviorConfiguration="SitefinityWebApp.Sitefinity.Services.Content.EventsAspNetAjaxBehavior" binding="webHttpBinding" contract="SitefinityWebApp.Sitefinity.Services.Content.Events"/>
      </service>
      <service behaviorConfiguration="Telerik.Sitefinity.Analytics.Infrastructure.Services.AnalyticsPermissionsServiceBehavior" name="Telerik.Sitefinity.Analytics.Infrastructure.Services.AnalyticsPermissionsService">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding" contract="Telerik.Sitefinity.Analytics.Infrastructure.Services.AnalyticsPermissionsService"/>
        <!-- note: To enable https/SSL support for the Analytics module, uncomment this endpoint -->
        <!--<endpoint address=""
                  binding="basicHttpBinding"
                  bindingConfiguration="webBinding"
                  contract="Telerik.Sitefinity.Analytics.Infrastructure.Services.AnalyticsPermissionsService"/>-->
      </service>
      <service behaviorConfiguration="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.Services.AccountsServiceBehavior" name="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.Services.AccountsService">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding" contract="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.Services.AccountsService"/>
        <!-- note: To enable https/SSL support for the Analytics module, uncomment this endpoint -->
        <!--<endpoint address=""
                  binding="basicHttpBinding"
                  bindingConfiguration="webBinding"
                  contract="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.Services.AccountsService"/>-->
      </service>
      <service behaviorConfiguration="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.DashboardDataBehavior" name="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.DashboardData">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding" contract="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.DashboardData"/>
        <!-- note: To enable https/SSL support for the Analytics module, uncomment this endpoint -->
        <!--<endpoint address=""
                  binding="basicHttpBinding"
                  bindingConfiguration="webBinding"
                  contract="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.DashboardData"/>-->
      </service>
      <service behaviorConfiguration="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.MapDataServiceBehavior" name="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.MapDataService">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding" contract="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.MapDataService"/>
        <!-- note: To enable https/SSL support for the Analytics module, uncomment this endpoint -->
        <!--<endpoint address=""
                  binding="basicHttpBinding"
                  bindingConfiguration="webBinding"
                  contract="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.MapDataService" />-->
      </service>
    </services>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
  </system.serviceModel>
  <!--
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    -->
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="WebDAVModule"/>
      <remove name="UrlRoutingModule"/>
      <remove name="ScriptModule"/>
      <remove name="RadUploadModule"/>
      <remove name="Sitefinity"/>
      <remove name="SitefinityAnalyticsModule"/>
      <remove name="FormsAuthentication"/>
      <remove name="RoleManager"/>
      <add name="ClaimsPrincipalHttpModule" type="Microsoft.IdentityModel.Web.ClaimsPrincipalHttpModule, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add name="SitefinityClaimsAuthenticationModule" type="Telerik.Sitefinity.Security.Claims.SitefinityClaimsAuthenticationModule, Telerik.Sitefinity"/>
      <add name="Sitefinity" type="Telerik.Sitefinity.Web.SitefinityHttpModule, Telerik.Sitefinity"/>
      <add name="SessionAuthenticationModule" type="Telerik.Sitefinity.Security.Claims.SitefinitySessionAuthenticationModule, Telerik.Sitefinity"/>
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/>
      <add name="SitefinityAnalyticsModule" type="Telerik.Sitefinity.Analytics.Server.DependencyResolution.Module.DependencyRegistrarHttpModule, Telerik.Sitefinity.Analytics.Server.DependencyResolution"/>
    </modules>
    <handlers>
      <remove name="WebDAV"/>
      <remove name="ScriptHandlerFactory"/>
      <remove name="ScriptHandlerFactoryAppServices"/>
      <remove name="ScriptResource"/>
      <remove name="UrlRoutingHandler"/>
      <remove name="WildCard"/>
      <remove name="WildCard32"/>
      <remove name="Telerik.Web.UI.DialogHandler"/>
      <remove name="Telerik.RadUploadProgressHandler"/>
      <remove name="Telerik.Sitefinity.FilesDownloadHandler"/>
      <remove name="Telerik.Sitefinity.LibrariesRadUploadHandler"/>
      <remove name="Telerik.Sitefinity.AsyncImageUploadHandler"/>
      <remove name="Telerik.Sitefinity.AsyncFileUploadHandler"/>
      <remove name="Telerik.Sitefinity.AsyncToolsetXmlUploadHandler"/>
      <remove name="Telerik.Web.UI.SpellCheckHandler"/>
      <remove name="Telerik_Web_UI_WebResource_axd"/>
      <remove name="Telerik_Web_UI_DialogHandler_aspx"/>
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="WildCard" path="*" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv4.0,bitness64"/>
      <add name="WildCard32" path="*" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv4.0,bitness32"/>
      <add name="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.axd" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>
      <add name="Telerik.RadUploadProgressHandler" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>
      <add name="Telerik.Sitefinity.FilesDownloadHandler" path="Telerik.Sitefinity.FilesDownloadHandler.ashx" verb="*" type="Telerik.Sitefinity.Modules.Files.FilesDownloadHandler, Telerik.Sitefinity"/>
      <add name="Telerik.Sitefinity.LibrariesRadUploadHandler" path="Telerik.Sitefinity.LibrariesRadUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Modules.Libraries.Web.LibrariesRadUploadHandler, Telerik.Sitefinity"/>
      <add name="Telerik.Sitefinity.ThumbnailUploadHandler" path="Telerik.Sitefinity.ThumbnailUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Modules.Libraries.Web.ThumbnailUploadHandler, Telerik.Sitefinity"/>
      <add name="Telerik.Sitefinity.AsyncImageUploadHandler" path="Telerik.Sitefinity.AsyncImageUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Modules.Libraries.Web.AsyncImageUploadHandler, Telerik.Sitefinity"/>
      <add name="Telerik.Sitefinity.AsyncFileUploadHandler" path="Telerik.Sitefinity.AsyncFileUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Workflow.AsyncFileUploadHandler, Telerik.Sitefinity"/>
      <add name="Telerik.Sitefinity.AsyncToolsetXmlUploadHandler" path="Telerik.Sitefinity.AsyncToolsetXmlUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Configuration.Web.Services.AsyncToolsetXmlUploadHandler, Telerik.Sitefinity"/>
      <add name="Telerik.Web.UI.SpellCheckHandler" verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI"/>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" path="Telerik.Web.UI.WebResource.axd" preCondition="integratedMode" type="Telerik.Web.UI.WebResource"/>
      <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler"/>
      <add name="Telerik.ReportViewer.axd_*" verb="*" preCondition="integratedMode" path="Telerik.ReportViewer.axd" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms"/>
    </handlers>
    <staticContent>
      <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="31.00:00:00"/>
    </staticContent>
    <urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true"/>
  </system.webServer>
  <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"/>
      <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/>
      </issuerNameRegistry>
      <issuerTokenResolver type="Telerik.Sitefinity.Security.Claims.SWT.WrapIssuerTokenResolver, Telerik.Sitefinity"/>
    </service>
  </microsoft.identityModel>
  <!-- Begin telerik section  -->
  <!--<telerik>
    <sitefinity>
      <environment platform="WindowsAzure"/>
      <sitefinityConfig storageMode="Database" />
    </sitefinity>
  </telerik>-->
  <!-- End telerik section  -->
</configuration>

Again, as I said, I didn't implement any custom controls except the one about fixed by the support.

Posted by Community Admin on 27-Jul-2012 00:00

Hey Inna,

It's been 14hrs so not sure if Victor or Stefai already replied but sound like the problem doesn't come from the custom code or the upgrade but from "...version 5.1, rebuild the site.. ".

When you grab a Sitefinity project out of the box, there are some references which aren't working and some files not being included in the project. When you open the project and check your references you should see probably 2 exclamation marks, one for Microsoft.Http.dll and the other being Telerik.OpenAccess.Adonet2.dll.

If you can't find a local copy to set a new reference to, I've uploaded microsoft.http.dll here.

The Adonet2.dll reference can be removed. With regards to some files not being included in the project file, this is only an issue if you use Visual Studio's publish functionality. But a quick 'show all files' in your Solution Explorer will fix that.

Jochem.

Posted by Community Admin on 27-Jul-2012 00:00

Jochem, thank you. After I added microsoft.http.dll THAT error changed to THIS error:

Server Error in '/' Application.

Type "Telerik.Sitefinity.Services.Documents.DocumentService, Telerik.Sitefinity.Services.Documents.Impl" cannot be resolved.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Type "Telerik.Sitefinity.Services.Documents.DocumentService, Telerik.Sitefinity.Services.Documents.Impl" cannot be resolved.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentException: Type "Telerik.Sitefinity.Services.Documents.DocumentService, Telerik.Sitefinity.Services.Documents.Impl" cannot be resolved.]
   Telerik.Sitefinity.Utilities.TypeConverters.TypeResolutionService.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +1094
   Telerik.Sitefinity.Services.SystemManager.InitializeService(ModuleSettings settings, Boolean start) +52
   Telerik.Sitefinity.Services.SystemManager.Initialize() +721
   Telerik.Sitefinity.Abstractions.Bootstrapper.RegisterRoutes() +621
   Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +281
   Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +116
   System.Web.Routing.UrlRoutingModule.System.Web.IHttpModule.Init(HttpApplication application) +10
   System.Web.HttpApplication.InitModulesCommon() +172
   System.Web.HttpApplication.InitModules() +43
   System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +828
   System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +304
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +327


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272


Any idea what's missing now?

Posted by Community Admin on 27-Jul-2012 00:00

Hey Inna,

Sounds like you're having one hell of a week :(
It seems that even more references have taken an early weekend. Best and fastest thing you can do is as followed:

In Sitefinity project manager, create a new clean dummy v5.1 project. This will generate a new project folder with all the v5.1 files. Inside that projects /bin folder you'll find all the .dll's you'll need. (instead of us going over them one-by-one thru dropbox)

Next keep this page open and follow the steps to verify they've all been processed (http://www.sitefinity.com/documentation/documentationarticles/upgrading-the-web.config-and-the-sitefinitywebapp.csproj-files)

Half way down that page, you'll also see some other references than Services.Documents.Impl and just grab those files from your dummy project.

---
Somewhere between upgrade process and you doing a rebuild it messed things up, either because the upgrade process has 5.0 in mind or the project file wasn't upgraded correctly but I'm sure Victor will figure that out.

The two files I mentioned this morning are 'regulars' so to speak, which have been known to dissapear since v4.0. Good luck!

Jochem


Posted by Community Admin on 27-Jul-2012 00:00

Jochem, I did as instructed, still get an error, a different one, of course. I've checked and re-checked if I did everything listed on this page: www.sitefinity.com/.../upgrading-the-web.config-and-the-sitefinitywebapp.csproj-files, but still...

Here is the error I'm getting now:

Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized configuration section system.web.webPages.razor.

Source Error:

Line 15: <configuration>
Line 16: 
Line 17:   <system.web.webPages.razor>
Line 18:     <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
Line 19:     <pages pageBaseType="System.Web.Mvc.WebViewPage">

Source File: D:\AnnapolisNew\web.config    Line: 17



Only one  element allowed per config file and if present must be the first child of the root  element. (D:\AnnapolisNew\web.config line 29)
Unrecognized configuration section microsoft.identityModel. (D:\AnnapolisNew\web.config line 288)

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272


and here is my updated as instructed config file:
<?xml version="1.0"?>
<!--
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
    \Windows\Microsoft.Net\Framework\v2.x\Config
-->





<configuration>

  <system.web.webPages.razor>
    <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <pages pageBaseType="System.Web.Mvc.WebViewPage">
      <namespaces>
        <add namespace="System.Web.Mvc" />
        <add namespace="System.Web.Mvc.Ajax" />
        <add namespace="System.Web.Mvc.Html" />
        <add namespace="System.Web.Routing" />
      </namespaces>
    </pages>
  </system.web.webPages.razor>

  <configSections>
     <sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
      <section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
      <section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
    </sectionGroup>

    <section requirePermission="false" name="microsoft.identityModel" type="Microsoft.IdentityModel.Configuration.MicrosoftIdentityModelSection, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    <!--<sectionGroup name="telerik">
      <section name="sitefinity" type="Telerik.Sitefinity.Configuration.SectionHandler, Telerik.Sitefinity" requirePermission="false" />
    </sectionGroup>-->
  </configSections>

   <appSettings>
     <add key="enableSimpleMembership" value="false"/>
     <add key="TestLocalization" value="false"/>
  </appSettings>
  <system.web>

    <httpRuntime maxRequestLength="102400" maxUrlLength="102400" maxQueryStringLength="102400" requestValidationType="Telerik.Sitefinity.Security.Claims.CustomRequestValidator, Telerik.Sitefinity" />

    <siteMap defaultProvider="SitefinitySiteMap">
      <providers>
        <add name="SitefinitySiteMap" type="Telerik.Sitefinity.Web.SitefinitySiteMap, Telerik.Sitefinity" taxonomyProvider="OpenAccessDataProvider" pageTaxonomy="Pages" rootNode="FrontendSiteMap" pageProvider="OpenAccessDataProvider"/>
      </providers>
    </siteMap>
    <roleManager enabled="false"/>
    <membership defaultProvider="Default">
      <providers>
        <clear/>
        <add name="Default" type="Telerik.Sitefinity.Security.Data.SitefinityMembershipProvider, Telerik.Sitefinity"/>
      </providers>
    </membership>
    <globalization uiCulture="auto" culture="auto" resourceProviderFactoryType="Telerik.Sitefinity.Localization.ExtendedResourceProviderFactory, Telerik.Sitefinity"/>
    <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
        -->
    <compilation debug="false" targetFramework="4.0" numRecompilesBeforeAppRestart="50">

        <assemblies>
        <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
        <add assembly="WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add assembly="PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      </assemblies>
      <buildProviders>
        <remove extension=".svc"/>
        <add extension=".svc" type="System.ServiceModel.Activation.ServiceBuildProvider, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
      </buildProviders>
    </compilation>
    <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
    <authentication mode="None"/>
    <customErrors mode="Off"/>
    <!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
    <pages>
      <controls>
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
        <add tagPrefix="sitefinity" namespace="Telerik.Sitefinity.Web.UI.Fields" assembly="Telerik.Sitefinity"/>
      </controls>
    </pages>
    <httpHandlers>
      <remove verb="*" path="*.asmx"/>
      <add verb="*" validate="false" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI"/>
      <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>
      <add verb="*" path="Telerik.Sitefinity.FilesDownloadHandler.ashx" type="Telerik.Sitefinity.Modules.Files.FilesDownloadHandler, Telerik.Sitefinity"/>
      <add verb="*" path="Telerik.Sitefinity.LibrariesRadUploadHandler.ashx" type="Telerik.Sitefinity.Modules.Libraries.Web.LibrariesRadUploadHandler, Telerik.Sitefinity"/>
      <add verb="*" path="Telerik.Sitefinity.ThumbnailUploadHandler.ashx" type="Telerik.Sitefinity.Modules.Libraries.Web.ThumbnailUploadHandler, Telerik.Sitefinity"/>
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
      <add verb="*" validate="false" path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>
      <add verb="*" path="Telerik.Sitefinity.AsyncImageUploadHandler.ashx" type="Telerik.Sitefinity.Modules.Libraries.Web.AsyncImageUploadHandler, Telerik.Sitefinity"/>
      <add verb="*" path="Telerik.Sitefinity.AsyncFileUploadHandler.ashx" type="Telerik.Sitefinity.Workflow.AsyncFileUploadHandler, Telerik.Sitefinity"/>
      <add verb="*" path="Telerik.Sitefinity.AsyncToolsetXmlUploadHandler.ashx" type="Telerik.Sitefinity.Configuration.Web.Services.AsyncToolsetXmlUploadHandler, Telerik.Sitefinity"/>
      <add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" validate="false"/>
      <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" validate="false"/>
      <add verb="*" path="Telerik.ReportViewer.axd" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms"/>
    </httpHandlers>
    <httpModules>
      <remove name="FormsAuthentication"/>
      <remove name="RoleManager"/>
      <add name="ClaimsPrincipalHttpModule" type="Microsoft.IdentityModel.Web.ClaimsPrincipalHttpModule, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add name="SitefinityClaimsAuthenticationModule" type="Telerik.Sitefinity.Security.Claims.SitefinityClaimsAuthenticationModule, Telerik.Sitefinity"/>
      <add name="Sitefinity" type="Telerik.Sitefinity.Web.SitefinityHttpModuleIIS6, Telerik.Sitefinity"/>
      <add name="SessionAuthenticationModule" type="Telerik.Sitefinity.Security.Claims.SitefinitySessionAuthenticationModule, Telerik.Sitefinity"/>
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/>
      <add name="SitefinityAnalyticsModule" type="Telerik.Sitefinity.Analytics.Server.DependencyResolution.Module.DependencyRegistrarHttpModule, Telerik.Sitefinity.Analytics.Server.DependencyResolution"/>
    </httpModules>
  </system.web>
  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="basicHttpBinding" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647">
          <security mode="None"/>
        </binding>
        <!-- note: To enable https/SSL support for the Analytics module, uncomment this binding -->
        <!--<binding name="webBinding" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647">
          <security mode="Transport">
            <transport clientCredentialType="None"/>
          </security>
        </binding>-->
      </basicHttpBinding>
    </bindings>
    <behaviors>
      <endpointBehaviors>
        <behavior name="SitefinityWebApp.Sitefinity.Services.Content.EventsAspNetAjaxBehavior">
          <enableWebScript/>
        </behavior>
      </endpointBehaviors>
      <serviceBehaviors>
        <behavior>
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="true"/>
          <!--<openAccessWorkflowTracking applicationName="/workflow" />-->
        </behavior>
        <behavior name="Telerik.Sitefinity.Analytics.Infrastructure.Services.AnalyticsPermissionsServiceBehavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
        <behavior name="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.Services.AccountsServiceBehavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
        <behavior name="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.DashboardDataBehavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
        <behavior name="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.MapDataServiceBehavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
        <behavior name="Telerik.Sitefinity.Web.Services.LocalizationBehavior"/>
      </serviceBehaviors>
    </behaviors>
    <services>
      <service name="SitefinityWebApp.Sitefinity.Services.Content.Events">
        <endpoint address="" behaviorConfiguration="SitefinityWebApp.Sitefinity.Services.Content.EventsAspNetAjaxBehavior" binding="webHttpBinding" contract="SitefinityWebApp.Sitefinity.Services.Content.Events"/>
      </service>
      <service behaviorConfiguration="Telerik.Sitefinity.Analytics.Infrastructure.Services.AnalyticsPermissionsServiceBehavior" name="Telerik.Sitefinity.Analytics.Infrastructure.Services.AnalyticsPermissionsService">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding" contract="Telerik.Sitefinity.Analytics.Infrastructure.Services.AnalyticsPermissionsService"/>
        <!-- note: To enable https/SSL support for the Analytics module, uncomment this endpoint -->
        <!--<endpoint address=""
                  binding="basicHttpBinding"
                  bindingConfiguration="webBinding"
                  contract="Telerik.Sitefinity.Analytics.Infrastructure.Services.AnalyticsPermissionsService"/>-->
      </service>
      <service behaviorConfiguration="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.Services.AccountsServiceBehavior" name="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.Services.AccountsService">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding" contract="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.Services.AccountsService"/>
        <!-- note: To enable https/SSL support for the Analytics module, uncomment this endpoint -->
        <!--<endpoint address=""
                  binding="basicHttpBinding"
                  bindingConfiguration="webBinding"
                  contract="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.Services.AccountsService"/>-->
      </service>
      <service behaviorConfiguration="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.DashboardDataBehavior" name="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.DashboardData">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding" contract="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.DashboardData"/>
        <!-- note: To enable https/SSL support for the Analytics module, uncomment this endpoint -->
        <!--<endpoint address=""
                  binding="basicHttpBinding"
                  bindingConfiguration="webBinding"
                  contract="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.DashboardData"/>-->
      </service>
      <service behaviorConfiguration="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.MapDataServiceBehavior" name="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.MapDataService">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding" contract="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.MapDataService"/>
        <!-- note: To enable https/SSL support for the Analytics module, uncomment this endpoint -->
        <!--<endpoint address=""
                  binding="basicHttpBinding"
                  bindingConfiguration="webBinding"
                  contract="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.MapDataService" />-->
      </service>
    </services>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
  </system.serviceModel>
  <!--
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    -->
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="WebDAVModule"/>
      <remove name="UrlRoutingModule"/>
      <remove name="ScriptModule"/>
      <remove name="RadUploadModule"/>
      <remove name="Sitefinity"/>
      <remove name="SitefinityAnalyticsModule"/>
      <remove name="FormsAuthentication"/>
      <remove name="RoleManager"/>
      <add name="ClaimsPrincipalHttpModule" type="Microsoft.IdentityModel.Web.ClaimsPrincipalHttpModule, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add name="SitefinityClaimsAuthenticationModule" type="Telerik.Sitefinity.Security.Claims.SitefinityClaimsAuthenticationModule, Telerik.Sitefinity"/>
      <add name="Sitefinity" type="Telerik.Sitefinity.Web.SitefinityHttpModule, Telerik.Sitefinity"/>
      <add name="SessionAuthenticationModule" type="Telerik.Sitefinity.Security.Claims.SitefinitySessionAuthenticationModule, Telerik.Sitefinity"/>
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/>
      <add name="SitefinityAnalyticsModule" type="Telerik.Sitefinity.Analytics.Server.DependencyResolution.Module.DependencyRegistrarHttpModule, Telerik.Sitefinity.Analytics.Server.DependencyResolution"/>
    </modules>
    <handlers>
      <remove name="WebDAV"/>
      <remove name="ScriptHandlerFactory"/>
      <remove name="ScriptHandlerFactoryAppServices"/>
      <remove name="ScriptResource"/>
      <remove name="UrlRoutingHandler"/>
      <remove name="WildCard"/>
      <remove name="WildCard32"/>
      <remove name="Telerik.Web.UI.DialogHandler"/>
      <remove name="Telerik.RadUploadProgressHandler"/>
      <remove name="Telerik.Sitefinity.FilesDownloadHandler"/>
      <remove name="Telerik.Sitefinity.LibrariesRadUploadHandler"/>
      <remove name="Telerik.Sitefinity.AsyncImageUploadHandler"/>
      <remove name="Telerik.Sitefinity.AsyncFileUploadHandler"/>
      <remove name="Telerik.Sitefinity.AsyncToolsetXmlUploadHandler"/>
      <remove name="Telerik.Web.UI.SpellCheckHandler"/>
      <remove name="Telerik_Web_UI_WebResource_axd"/>
      <remove name="Telerik_Web_UI_DialogHandler_aspx"/>
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="WildCard" path="*" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv4.0,bitness64"/>
      <add name="WildCard32" path="*" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv4.0,bitness32"/>
      <add name="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.axd" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>
      <add name="Telerik.RadUploadProgressHandler" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>
      <add name="Telerik.Sitefinity.FilesDownloadHandler" path="Telerik.Sitefinity.FilesDownloadHandler.ashx" verb="*" type="Telerik.Sitefinity.Modules.Files.FilesDownloadHandler, Telerik.Sitefinity"/>
      <add name="Telerik.Sitefinity.LibrariesRadUploadHandler" path="Telerik.Sitefinity.LibrariesRadUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Modules.Libraries.Web.LibrariesRadUploadHandler, Telerik.Sitefinity"/>
      <add name="Telerik.Sitefinity.ThumbnailUploadHandler" path="Telerik.Sitefinity.ThumbnailUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Modules.Libraries.Web.ThumbnailUploadHandler, Telerik.Sitefinity"/>
      <add name="Telerik.Sitefinity.AsyncImageUploadHandler" path="Telerik.Sitefinity.AsyncImageUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Modules.Libraries.Web.AsyncImageUploadHandler, Telerik.Sitefinity"/>
      <add name="Telerik.Sitefinity.AsyncFileUploadHandler" path="Telerik.Sitefinity.AsyncFileUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Workflow.AsyncFileUploadHandler, Telerik.Sitefinity"/>
      <add name="Telerik.Sitefinity.AsyncToolsetXmlUploadHandler" path="Telerik.Sitefinity.AsyncToolsetXmlUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Configuration.Web.Services.AsyncToolsetXmlUploadHandler, Telerik.Sitefinity"/>
      <add name="Telerik.Web.UI.SpellCheckHandler" verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI"/>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" path="Telerik.Web.UI.WebResource.axd" preCondition="integratedMode" type="Telerik.Web.UI.WebResource"/>
      <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler"/>
      <add name="Telerik.ReportViewer.axd_*" verb="*" preCondition="integratedMode" path="Telerik.ReportViewer.axd" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms"/>
    </handlers>
    <staticContent>
      <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="31.00:00:00"/>
    </staticContent>

    <urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="false" />

  </system.webServer>
  <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"/>
      <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/>
      </issuerNameRegistry>
      <issuerTokenResolver type="Telerik.Sitefinity.Security.Claims.SWT.WrapIssuerTokenResolver, Telerik.Sitefinity"/>
    </service>
  </microsoft.identityModel>
  <!-- Begin telerik section  -->
  <!--<telerik>
    <sitefinity>
      <environment platform="WindowsAzure"/>
      <sitefinityConfig storageMode="Database" />
    </sitefinity>
  </telerik>-->
  <!-- End telerik section  -->

  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Http"
                          publicKeyToken="31bf3856ad364e35"
                          culture="neutral" />
        <bindingRedirect oldVersion="2011.3.1115.40"
                         newVersion="2012.1.215.40"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
 
</configuration>

Posted by Community Admin on 27-Jul-2012 00:00

Hey Inna, we're getting there no ? :)

Two things seem different than a 'standard' web.config from a new project, the
<sytem.web.webPages.razor> </sytem.web.webPages.razor>is between the </appsettings>and the <system.web> lines.

And at the bottom you shouldn't need the <runtime></runtime> section no more since you're referring to the latest one (either from my dropbox or the dummy project but they're both 5.1.3210).

Big question is, did you rebuild after adding all the references and files from the documentation step ?

Jochem.


Posted by Community Admin on 27-Jul-2012 00:00

Jochem, ok, I deleted in the config file this code:
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Http" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
        <bindingRedirect oldVersion="2011.3.1115.40" newVersion="2012.1.215.40"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>


And, yes, before I ran the site, I rebuilt it.
You said:


Two things seem different than a 'standard' web.config from a new project, the
<sytem.web.webPages.razor> </sytem.web.webPages.razor>is between the </appsettings>and the <system.web> lines.

The instructions on this page  www.sitefinity.com/.../upgrading-the-web.config-and-the-sitefinitywebapp.csproj-files says:

Under section <configuration>, add the following:
<system.web.webPages.razor>
    <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <pages pageBaseType="System.Web.Mvc.WebViewPage">
      <namespaces>
        <add namespace="System.Web.Mvc" />
        <add namespace="System.Web.Mvc.Ajax" />
        <add namespace="System.Web.Mvc.Html" />
        <add namespace="System.Web.Routing" />
      </namespaces>
    </pages>
  </system.web.webPages.razor>

I guess, you mean I have to relocate this code, and so I did, now it looks like that:

 <appSettings>
    <add key="enableSimpleMembership" value="false"/>
    <add key="TestLocalization" value="false"/>
  </appSettings>
  <system.web.webPages.razor>
    <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <pages pageBaseType="System.Web.Mvc.WebViewPage">
      <namespaces>
        <add namespace="System.Web.Mvc"/>
        <add namespace="System.Web.Mvc.Ajax"/>
        <add namespace="System.Web.Mvc.Html"/>
        <add namespace="System.Web.Routing"/>
      </namespaces>
    </pages>
  </system.web.webPages.razor>
  <system.web>
    <httpRuntime maxRequestLength="102400" maxUrlLength="102400" maxQueryStringLength="102400" requestValidationType="Telerik.Sitefinity.Security.Claims.CustomRequestValidator, Telerik.Sitefinity"/>
    <siteMap defaultProvider="SitefinitySiteMap">
      <providers>
        <add name="SitefinitySiteMap" type="Telerik.Sitefinity.Web.SitefinitySiteMap, Telerik.Sitefinity" taxonomyProvider="OpenAccessDataProvider" pageTaxonomy="Pages" rootNode="FrontendSiteMap" pageProvider="OpenAccessDataProvider"/>
      </providers>
    </siteMap>
..................................

The error message I am getting now is this:

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'SitefinityWebApp.App_Master.Home'.

Source Error:

Line 1:  <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Home.master.cs" Inherits="SitefinityWebApp.App_Master.Home" %>
Line 2:  <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" Assembly="Telerik.Sitefinity" %>
Line 3:  

Source File: /App_Master/Home.master    Line: 1


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272


The Home master page has been re-done by the sitefinity support and they said they tested it and it worked on their end.

Here are the 3 files involved into the master page build:

Home.Master

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Home.master.cs" Inherits="SitefinityWebApp.App_Master.Home" %>
<%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" Assembly="Telerik.Sitefinity" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/.../xhtml1-transitional.dtd">

<html xmlns="www.w3.org/.../xhtml">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
<LINK REL="SHORTCUT ICON" HREF="/favicon.ico" />
<script type="text/javascript">    var switchTo5x = true;</script>
<script type="text/javascript" src="w.sharethis.com/.../script>
<script type="text/javascript">    stLight.options( publisher: "ce29c096-25a8-49fb-8a2b-7d5bcaac0054" ); </script>

    <sf:ResourceLinks runat="server" id="resourceLink1" UseEmbeddedThemes="false" >
<sf:ResourceFile JavaScriptLibrary="None" Name="~/scripts/jquery-1.2.1.pack.js" AssemblyInfo="" IsFromTheme="False" Static="True" />
</sf:ResourceLinks>


    <%-- <sfweb:jsfilelink id="JsFileLink4" type="text/javascript" runat="server" filename="~/scripts/jquery-easing.1.2.pack.js" /> --%>
<sf:ResourceLinks runat="server" id="resourceLink2" UseEmbeddedThemes="false" >
<sf:ResourceFile JavaScriptLibrary="None" Name="~/scripts/jquery-easing.1.2.pack.js" AssemblyInfo="" IsFromTheme="False" Static="True" />
</sf:ResourceLinks>
    <%-- <sfweb:jsfilelink id="JsFileLink5" type="text/javascript" runat="server" filename="~/scripts/jquery-easing-compatibility.1.2.pack.js" /> --%>
<sf:ResourceLinks runat="server" id="resourceLink3" UseEmbeddedThemes="false" >
<sf:ResourceFile JavaScriptLibrary="None" Name="~/scripts/jquery-easing-compatibility.1.2.pack.js" AssemblyInfo="" IsFromTheme="False" Static="True" />
</sf:ResourceLinks>
    <%-- <sfweb:jsfilelink id="JsFileLink6" type="text/javascript" runat="server" filename="~/scripts/coda-slider.1.1.1.pack.js" /> --%>
<sf:ResourceLinks runat="server" id="resourceLink4" UseEmbeddedThemes="false" >
<sf:ResourceFile JavaScriptLibrary="None" Name="~/scripts/coda-slider.1.1.1.pack.js" AssemblyInfo="" IsFromTheme="False" Static="True" />
</sf:ResourceLinks>
    <%-- <sfweb:jsfilelink id="JsFileLink7" type="text/javascript" runat="server" filename="~/scripts/swfobject_modified.js" /> --%>
<sf:ResourceLinks runat="server" id="resourceLink5" UseEmbeddedThemes="false" >
<sf:ResourceFile JavaScriptLibrary="None" Name="~/scripts/swfobject_modified.js" AssemblyInfo="" IsFromTheme="False" Static="True" />
</sf:ResourceLinks>
    <%-- <sfweb:jsfilelink id="JsFileLink8" type="text/javascript" runat="server" filename="~/scripts/featuredcontentglider.js" /> --%>

<sf:ResourceLinks runat="server" id="resourceLink6" UseEmbeddedThemes="false" >
<sf:ResourceFile JavaScriptLibrary="None" Name="~/scripts/featuredcontentglider.js" AssemblyInfo="" IsFromTheme="False" Static="True" />
</sf:ResourceLinks>


<script type="text/javascript">
    jQuery(window).bind("load", function ()
        jQuery("div#slider1").codaSlider()
        $(".homePromo").mouseover(function ()
            $(this).addClass("homePromoOver");
        ).mouseout(function ()
            $(this).removeClass("homePromoOver");
        ).click(function ()
            location.href = $(this).find("a").attr("href");
        );
    );
    </script>
</head>
<body>


    <form id="form1" runat="server">
    <asp:scriptmanager id="ScriptManager1" runat="server" />
    <div class="container">
        <div class="body">
            <div class="header">
                <asp:contentplaceholder id="SiteLogo" runat="server">
                </asp:contentplaceholder>
            </div>
            <div class="dateDepartments">
                <div class="departments">
                    <asp:dropdownlist id="lstDepartments" runat="server" autopostback="true">
                    </asp:dropdownlist>
                </div>
                <div class="date">
                     <asp:placeholder id="phDate" runat="server">
                     </asp:placeholder>
                 </div>
            </div>
            <div class="nav">
                <asp:contentplaceholder id="MainNavigation" runat="server">
                </asp:contentplaceholder>
            </div>
            <div class="search">
                <asp:contentplaceholder id="SearchBox" runat="server">
                </asp:contentplaceholder>
            </div>
            <div id="homeMain">
                <div id="homeFlash">

                <asp:contentplaceholder id="homeFlash" runat="server">
                </asp:contentplaceholder>

                <%--     <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="692" height="315" id="FlashID" title="Flash">
                        <param name="movie" value="flash/annapolis.swf" />
                        <param name="quality" value="high" />
                        <param name="wmode" value="opaque" />
                        <param name="swfversion" value="8.0.35.0" />
                        <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
                        <param name="expressinstall" value="Scripts/expressInstall.swf" />
                        <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                        <!--[if !IE]>-->
                        <object type="application/x-shockwave-flash" data="flash/annapolis.swf" width="692" height="315">
                            <!--<![endif]-->
                            <param name="quality" value="high" />
                            <param name="wmode" value="opaque" />
                            <param name="swfversion" value="8.0.35.0" />
                            <param name="expressinstall" value="Scripts/expressInstall.swf" />
                            <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                            <div>
                                <h4>
                                    Content on this page requires a newer version of Adobe Flash Player.</h4>
                                <p>
                                    <a href="www.adobe.com/.../getflashplayer">
                                        <img src="www.adobe.com/.../get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                            </div>
                            <!--[if !IE]>-->
                        </object>
                        <!--<![endif]-->
                    </object> --%>
                </div>
                <div id="homePromos">
                    <asp:contentplaceholder id="HomeNewsArea" runat="server"></asp:contentplaceholder>
                </div>
            </div>
            <div class="lowerBody">
                <div class="rightContentarea">
                    <div class="Twitter">
                        <asp:contentplaceholder id="Twitter" runat="server">
                        </asp:contentplaceholder>
                    </div>
                    <div class="RightContentHeader">
                    </div>
                   
                   
                    <div class="newsBg">
                        <div class="newsBgInnerContainer">

                            <div id="canadaprovinces" class="glidecontentwrapper">                               
                                <asp:contentplaceholder id="SlideShowNews" runat="server"></asp:contentplaceholder>
                            </div>
                           
                            <div id="p-select" class="glidecontenttoggler">
                                <asp:placeholder id="phSlideShowPrevNext" runat="server" />
                                <a href="#" class="prev">Prev</a>
                                <a href="#" class="toc">1</a>
                                <a href="#" class="toc">2</a>
                                <a href="#" class="toc">3</a>
                                <a href="#" class="toc">4</a>
                                <a href="#" class="toc">5</a>
                                <a href="#" class="toc">6</a>
                                <a href="#" class="toc">7</a>
                                <a href="#" class="toc">8</a>
                                <a href="#" class="toc">9</a>
                                <a href="#" class="next">Next</a>
                            </div>
                           
                        </div>
                    </div>
                   
                   
                    <div class="sliderJQ">
                                               
                        <noscript>
                            <p>
                                Unfortunately your browser does not hava JavaScript capabilities which are required to exploit full functionality of our site. This could be the result of two possible scenarios:</p>
                            <ol>
                                <li>You are using an old web browser, in which case you should upgrade it to a newer version. We recommend the latest version of <a href="www.getfirefox.com">Firefox</.../li>
                                <li>You have disabled JavaScript in you browser, in which case you will have to enable it to properly use our site. <a href="www.google.com/.../answer.py on enabling JavaScript</a>.</li>
                            </ol>
                        </noscript>
                       
                       
                        <div class="slider-wrap">
                            <div id="slider1" class="csw">
                                <div class="panelContainer">
                               
                                    <div class="panel" title="ANNOUNCEMENTS">
                                        <div class="wrapper">
                                            <asp:contentplaceholder id="Announcments" runat="server" />
                                            <p>
                                                <a href="#4" class="cross-link" title="Go to Forms and Permits">&#171; Previous</a> |
                                                <a href="#2" class="cross-link" title="Go to Transit">Next &#187;</a>
                                            </p>
                                        </div>
                                    </div>
                                   
                                   
                                    <div class="panel" title="TRANSIT">
                                        <div class="wrapper">
                                            <asp:contentplaceholder id="Transit" runat="server" />
                                            <p>
                                                <a href="#1" class="cross-link" title="Go to Announcements">&#171; Previous</a> |
                                                <a href="#3" class="cross-link" title="Go to Upcoming Events">Next &#187;</a>
                                            </p>
                                        </div>
                                    </div>
                                   
                                    <div class="panel" title="UPCOMING EVENTS">
                                        <div class="wrapper">
                                            <asp:contentplaceholder id="UpcomingEvents" runat="server" />
                                            <p>
                                                <a href="#2" class="cross-link" title="Go to Transit">&#171; Previous</a> |
                                                <a href="#4" class="cross-link" title="Go to Forms and Permits">Next &#187;</a>
                                            </p>
                                        </div>
                                    </div>
                                   
                                    <div class="panel" title="FORMS AND PERMITS">
                                        <div class="wrapper">
                                            <asp:contentplaceholder id="FormsPermits" runat="server" />
                                            <p>
                                                <a href="#3" class="cross-link" title="Go to Upcoming Events">&#171; Previous</a> |
                                                <a href="#1" class="cross-link" title="Go to Announcements">Next &#187;</a>
                                            </p>
                                        </div>
                                    </div>
                                   
                                </div>
                                <!-- .panelContainer -->
                            </div>
                            <!-- #slider1 -->
                        </div>
                        <!-- .slider-wrap -->
                       
                       
                       
                    </div>
                </div>
                <div class="sidenav">
                    <asp:contentplaceholder id="SideNavigation" runat="server">
                    </asp:contentplaceholder>
                </div>
            </div>
        </div>
    </div>


    <div class="footer">
        <asp:contentplaceholder id="FooterContent" runat="server">
        </asp:contentplaceholder>
    </div>
   
    <script type="text/javascript">
        <!--
        swfobject.registerObject("FlashID");
        //-->
    </script>

    </form>
   
</body>
</html>


Home.Master.cs


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SitefinityWebApp.App_Master

    public partial class Home: System.Web.UI.MasterPage
   
        private SiteMapNode departmentNode = null;


        protected void Page_Load(object sender, EventArgs e)
       
            phDate.Controls.Add(new LiteralControl(DateTime.Now.ToLongDateString()));

            if (!IsPostBack)
           
                SetDepartmentNode(SiteMap.RootNode);

                if (departmentNode != null)
               
                    lstDepartments.Items.Add(new ListItem("City Departments and Offices", "0"));
                    foreach (SiteMapNode siteMapNode in departmentNode.ChildNodes)
                   
                        lstDepartments.Items.Add(new ListItem(siteMapNode.Title, siteMapNode.Url));
                   
               
                else
               
                    lstDepartments.Visible = false;
               
           
       

        private void SetDepartmentNode(SiteMapNode currentNode)
       

            if (currentNode.Title != null && currentNode.Key == "b1b4bdf3-bb01-48a9-a140-105970c7265f")
           
                departmentNode = currentNode;
           
            else
           
                foreach (SiteMapNode siteMapNode in currentNode.ChildNodes)
               
                    SetDepartmentNode(siteMapNode);
               
                return;
           
       
        protected void lstDepartments_SelectedIndexChanged(object sender, EventArgs e)
       
            if (lstDepartments.SelectedItem.Value != "0")
           
                Response.Redirect(lstDepartments.SelectedItem.Value);
           
       
   


Home.Master.designer.cs

//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace SitefinityWebApp.App_Master
   
   
    public partial class Home
       
        /// <summary>
        /// head control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder head;
       
        /// <summary>
        /// resourceLink1 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::Telerik.Sitefinity.Web.UI.ResourceLinks resourceLink1;
       
        /// <summary>
        /// resourceLink2 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::Telerik.Sitefinity.Web.UI.ResourceLinks resourceLink2;
       
        /// <summary>
        /// resourceLink3 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::Telerik.Sitefinity.Web.UI.ResourceLinks resourceLink3;
       
        /// <summary>
        /// resourceLink4 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::Telerik.Sitefinity.Web.UI.ResourceLinks resourceLink4;
       
        /// <summary>
        /// resourceLink5 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::Telerik.Sitefinity.Web.UI.ResourceLinks resourceLink5;
       
        /// <summary>
        /// resourceLink6 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::Telerik.Sitefinity.Web.UI.ResourceLinks resourceLink6;
       
        /// <summary>
        /// form1 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlForm form1;
       
        /// <summary>
        /// ScriptManager1 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.ScriptManager ScriptManager1;
       
        /// <summary>
        /// SiteLogo control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder SiteLogo;
       
        /// <summary>
        /// lstDepartments control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.DropDownList lstDepartments;
       
        /// <summary>
        /// phDate control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.PlaceHolder phDate;
       
        /// <summary>
        /// MainNavigation control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder MainNavigation;
       
        /// <summary>
        /// SearchBox control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder SearchBox;
       
        /// <summary>
        /// homeFlash control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder homeFlash;
       
        /// <summary>
        /// HomeNewsArea control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder HomeNewsArea;
       
        /// <summary>
        /// Twitter control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder Twitter;
       
        /// <summary>
        /// SlideShowNews control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder SlideShowNews;
       
        /// <summary>
        /// phSlideShowPrevNext control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.PlaceHolder phSlideShowPrevNext;
       
        /// <summary>
        /// Announcments control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder Announcments;
       
        /// <summary>
        /// Transit control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder Transit;
       
        /// <summary>
        /// UpcomingEvents control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder UpcomingEvents;
       
        /// <summary>
        /// FormsPermits control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder FormsPermits;
       
        /// <summary>
        /// SideNavigation control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder SideNavigation;
       
        /// <summary>
        /// FooterContent control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.ContentPlaceHolder FooterContent;
   


What is the problem now?

Posted by Community Admin on 27-Jul-2012 00:00

Hey Inna,

First of all, congrats - at least we're down to a parser error and no longer a server error, which means Sitefinity itself should be without issues.



I'll go over the code in the morning ok? It's 10pm here already...



Jochem

Posted by Community Admin on 28-Jul-2012 00:00

Hey Inna,

This error is caused because you're configured to run Sitefinity as a 'website' and not a 'web application'.

On the first-line you have:

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Home.master.cs" Inherits="SitefinityWebApp.App_Master.Home" %>

A website has 'CodeFile' and a webapplication has 'CodeBehind'.  The simplest way to describe the difference is that a codebehind gets compiled into the /bin folder, where a codefile gets compiled on runtime.

If you change CodeBehind  to CodeFile everything should work for this Masterpage. But perhaps better would be to switch the entire project in visual studio from a website to a web application.

Just right-click your solution inside VisualStudio's solution Explorer and choose 'convert to web application'. Then a pop-up will tell you that it will add designer files (which you already have ofcourse) and 30sec later and your done.

Rebuild the project and all should be smooth again.

---

@Victor
Just as a heads up, but Inna's comment get displayed really strange on the latest Chrome (dl.dropbox.com/.../forum-layout-issue.PNG) where it partially flows to the right side. However when using ctrl - to zoom out, it suddenly snaps into place again.

Jochem.

Posted by Community Admin on 30-Jul-2012 00:00

Jochem, thank you. Here is what's happening when I follow your instructions:
1. If I just change CodeBehind to CodeFile, the site is running, but the functionality that the code in master.cs should provide is not there. Specifically, if you look at the functional site www.annapolis.gov, in the upper right corner you'll see the drop-down with the departments to select from. I'm migrating this site into 5.1, and the development version of the site (that doesn't work) is here: gov.annapolis.gov. As you see, the drop-down is not on the migrated version.

Then, as you recommended, I tried to switch from a website to a web application. Although, when I began a new project for the migration, it has been set up as an application. Not sure what had happened. So, I clicked "convert..." and got this message "Converted the selected items to web application format." Then when I try to re-build I get this: Error    7    Metadata file 'D:\AnnapolisNew\bin\SitefinityWebApp.dll' could not be found    SitefinityWebApp

What do I do now?

Posted by Community Admin on 30-Jul-2012 00:00

Hey Inna,

I tried to look at the development site but seems like you've switched to 'CodeBehind' again. Anyway, you've set the solution to convert no? not just some items?

The message "converted the selected items..." seems odd. Normally an Error 7 metadata file means you've got a reference to that file somewhere.
Any change you've got several projects in the solution and one is depending on SitefinityWebApp but it set to build before Sitefinity? Or perhaps refresh references and see if there's something not lining up?

If that's no help - perhaps if you can switch back to 'CodeFile', perhaps we can discover why the dropdown isn't rendering...

Jochem.

Posted by Community Admin on 30-Jul-2012 00:00

Jochem, I switched back to the CodeFile (now you can view gov.annapolis.gov), ran it as a web app, build the solution. The drop-down is not there. I still don't get how I ended up with the website instead of the app. I have and always had the solution file and the way I open the app in VS is by right clicking on SitefinityWebApp.sln file and choosing the "open in VS" option. So, the CodeBehind should work, but it doesn't. I looks like I ended up with a  weird mixture of a site and and app.

Posted by Community Admin on 30-Jul-2012 00:00

Another thing I, perhaps,   should add is this: when I re-build the solution, it says "all failed" and give this error: "Error    7    Metadata file 'D:\AnnapolisNew\bin\SitefinityWebApp.dll' could not be found    SitefinityWebApp"

Also, since CodeFile is  used for a WebSite and "Codebehind  for a Web Application Project, do I have to change manually e all CodeFile occurences to CodeBehind? When I converted my Web app (I still believe it was a web app) into yet another one web app, I still have "CodeFile" in the declaration. The conversion also didn't generate the designer file for my other master page. So for my home master page I have 3 files and for my default master page I have only 2 files. Very strange.

Posted by Community Admin on 31-Jul-2012 00:00

Hey Inna,

Sounds strange indeed with your project setup being half website and half web application. Thanks for changing your development site, I took a peak and noticed some .js are missing - could they be the cause of the dropdown not showing up?

After the last few days I'm guessing you're getting pretty frustrated, if you'd like you're more than happy to .zip your solution up in a dropbox file and send it over to jbokkers [at] live.nl so I can see what's causing the application/website issues and try and solve it.

One other thing you could do is not open the .sln but open the .csproj file for SitefinityWebApp convert it again to web application and then save the new .sln file perhaps somewhere during the conversion a glitch happened...

Jochem.

Posted by Community Admin on 31-Jul-2012 00:00

Jochem,

I put all the proj in the drop box, hope you got the notification. I also opened, as advised, the .csproj file. Then converted it to Web App. Got the message again that "Converted the selected items to Web Application format." And, again, when I rebuild the solution, I am getting this error.

"Error    1    Metadata file 'D:\AnnapolisNew\bin\SitefinityWebApp.dll' could not be found    SitefinityWebApp"

But, when I just build it, it says the build succeeded with 1 warning: "Warning    1    Could not resolve this reference. Could not locate the assembly "SitefinityWebApp". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.    SitefinityWebApp"

The Javascript code is blocked like this

 <%-- <sfweb:jsfilelink id="JsFileLink4" type="text/javascript" runat="server" filename="~/scripts/jquery-easing.1.2.pack.js" /> --%>

because unblocking it caused an error. please let me know what you found in the code...

thank you

Posted by Community Admin on 01-Aug-2012 00:00

Hey Inna,

Just to confirm, I've fixed/updated the solution file and converted the solution to a 'web application'.
After doing so and cleaning up a few tidbit errors, it builds/cleans and rebuilds like it should and runs locally.

I've sent the changed files back through Dropbox.

Jochem.

This thread is closed