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

Forums / Bugs & Issues / System.Reflection.ReflectionTypeLoadException

System.Reflection.ReflectionTypeLoadException

13 posts, 1 answered
  1. Aaron
    Aaron avatar
    24 posts
    Registered:
    15 Feb 2008
    22 Apr 2011
    Link to this post
    4.1 random error .
    app. worked fine for a while, can't get past this error now.
    Fresh installation will no longer load. We have not made any customizations.

    Server Error in '/' Application.
    Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
    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.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
     
    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:
     
    [ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
       DynamicModule.ns.Wrapped_OpenAccessMetaDataProvider_bf07d5eecfd44ca9858c1826cc19bda8.Initialize(String providerName, NameValueCollection config, Type managerType) +283
       Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager) +2706
       Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, ExceptionPolicyName policy, ManagerBase`1 manager) +117
       Telerik.Sitefinity.Data.ManagerBase`1.SetProvider(String providerName, String transactionName) +407
       Telerik.Sitefinity.Data.ManagerBase`1..ctor(String providerName, String transactionName) +249
       Telerik.Sitefinity.Data.ManagerBase`1..ctor() +37
       Telerik.Sitefinity.Data.Metadata.MetadataManager..ctor() +28
     
    [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) +123
       Telerik.Sitefinity.Data.ManagerBase`1.GetManager() +72
       Telerik.Sitefinity.Data.Metadata.MetadataManager.GetManager() +27
       Telerik.Sitefinity.Services.SystemManager.Initialize() +196
       Telerik.Sitefinity.Abstractions.Bootstrapper.RegisterRoutes(RouteCollection routes) +319
       Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +234
       Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +42
       System.Web.Routing.UrlRoutingModule.System.Web.IHttpModule.Init(HttpApplication application) +10
       System.Web.HttpApplication.InitModulesCommon() +80
       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.1


    web.config
    <?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>
            <sectionGroup name="madam">
                <section requirePermission="false" name="formsAuthenticationDisposition" type="Telerik.Sitefinity.Utilities.MS.Madam.FormsAuthenticationDispositionSectionHandler, Telerik.Sitefinity.Utilities"/>
                <section requirePermission="false" name="basicAuthentication" type="Telerik.Sitefinity.Utilities.MS.Madam.FormsAuthenticationDispositionSectionHandler, Telerik.Sitefinity.Utilities"/>
                <section requirePermission="false" name="userSecurityAuthority" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
            </sectionGroup>
        </configSections>
        <appSettings>
            <add key="TestLocalization" value="false"/>
        </appSettings>
        <system.web>
            <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="Forms"/>
            <customErrors mode="Off"></customErrors>
            <!--
                            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.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"/>
            </httpHandlers>
            <httpModules>
                <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add name="Sitefinity" type="Telerik.Sitefinity.Web.SitefinityHttpModuleIIS6, Telerik.Sitefinity"/>
                <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"/>
                <add name="SitefinityAtompubModule" type="Telerik.Sitefinity.Security.SitefinityAtompubModule, Telerik.Sitefinity"/>
            </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"></behavior>
                </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="SitefinityAtompubModule"/>
                <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add name="Sitefinity" type="Telerik.Sitefinity.Web.SitefinityHttpModule, Telerik.Sitefinity"/>
                <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"/>
                <add name="SitefinityAtompubModule" type="Telerik.Sitefinity.Security.SitefinityAtompubModule, Telerik.Sitefinity"/>
            </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.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.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"/>
            </handlers>
        </system.webServer>
        <madam>
            <userSecurityAuthority realm="Sitefinity" provider="Telerik.Sitefinity.Utilities.MS.Madam.FormsUserSecurityAuthority" exposeClearTextPassword="false "/>
            <formsAuthenticationDisposition>
                <discriminators all="1">
                    <!-- This discriminator helps detect redirection to the Forms login page. -->
                    <discriminator inputExpression="Response.RedirectLocation" pattern="login.aspx\?returnurl\=" type="Telerik.Sitefinity.Utilities.MS.Madam.RegexDiscriminator"/>
                    <discriminator type="Telerik.Sitefinity.Utilities.MS.Madam.Discriminator" all="false">
                        <discriminator inputExpression="Request.Url" pattern="atompub/.*" type="Telerik.Sitefinity.Utilities.MS.Madam.RegexDiscriminator"/>
                    </discriminator>
                </discriminators>
            </formsAuthenticationDisposition>
            <basicAuthentication>
                <discriminators all="1">
                    <discriminator type="Telerik.Sitefinity.Utilities.MS.Madam.Discriminator" all="false">
                        <discriminator inputExpression="Request.Url" pattern="atompub/.*" type="Telerik.Sitefinity.Utilities.MS.Madam.RegexDiscriminator"/>
                    </discriminator>
                </discriminators>
            </basicAuthentication>
        </madam>
    </configuration>

  2. HRC
    HRC avatar
    44 posts
    Registered:
    16 Mar 2009
    22 Apr 2011
    Link to this post
    I ran into this as well.  Initial install went well, the site loaded within the Project Manager.  But then when I loaded it within VS 2010 and built it, 2 of the DLLs in the bin were actually deleted!

    The only option that I could figure out was to copy the dlls back to the bin from C:\Program Files (x86)\Telerik\Sitefinity 4.1\_EmptyProject\bin.

    The DLLs that VS 2010 wants to get rid of are:

    - Facebook.dll
    - Newtonsoft.Json.dll

    Another TIP:  DON'T "CLEAN" the solution at any time or you will wipe out all of the DLLs that are clearly necessary to run the project.

    @Telerik - is there something that can be done around this behaviour?   Any tips surrounding working with the project within VS 2010 and especially around what files to add to Source Control?

    Chris.
    Answered
  3. Aaron
    Aaron avatar
    24 posts
    Registered:
    15 Feb 2008
    22 Apr 2011
    Link to this post
    Thanks that seemed to do the trick!

    Why does vs remove those dlls?
  4. HRC
    HRC avatar
    44 posts
    Registered:
    16 Mar 2009
    22 Apr 2011
    Link to this post
    That's the big mystery right now.  The DLLs are all very necessary - as we've seen.  So is the Solution file that Sitefinity Creates messed up?  Is there some incompatibility between those DLLs and .NET 4.0?  I don't have the answers to this.
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    27 Apr 2011
    Link to this post
    Hi,

    When you perform a rebuild the dlls from the bin are cleared and then the project cannot find them to make the proper references. Possible solution would be creating a reference folder that you can use to put the dlls and recover them during the build.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

  6. Richard
    Richard avatar
    77 posts
    Registered:
    24 Oct 2007
    05 May 2011
    Link to this post
    Hi,

    Is this an issue that will be resolved in the future or do I have to add it to the PITS list?

    Thanks

    R
  7. Shawn
    Shawn avatar
    79 posts
    Registered:
    26 Sep 2012
    06 May 2011
    Link to this post
    I ran into this issue too.  As a quick workaround I just added a reference to Facebook.dll and Newtonsoft.Json from the SitefinityWebApp project.  Now when you rebuild or clean VS doesn't delete the dlls.  I would also like to know why this is happenining.  It seems like VS is trying to clean up dlls that it thinks are needed.  I assume it's trying to find a list of referenced assemblies and remove all unreferenced assemblies. Maybe how Sitefinity does IoC is confusing VS???
  8. Steve
    Steve avatar
    16 posts
    Registered:
    14 Jul 2010
    26 Oct 2011
    Link to this post
    I'm getting the same error in Sitefinity 4.2.  Fresh install, everything seemed fine, then opened the project in VS2010 and rebuilt, and receive the same error.  This answer didn't work for me because Facebook.dll and Newtonsoft.Json.dll *are* in my bin folder and referenced in the project.  Is it possible there are other files in 4.2 which may have been deleted during rebuild?

    thanks,
    Steve

    error:

    Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

  9. Richard
    Richard avatar
    77 posts
    Registered:
    24 Oct 2007
    26 Oct 2011
    Link to this post
    Hey Steve,

    This is what I do whenever I run in to a problem where library files have somehow gone "AWOL"...

    I create a new project from scratch using the Project Manager wizard and then I go in to my broken project and re-reference the files located in the bin folder of the new project.  Build and the problem should be gone.  Try avoiding to hit "rebuild"!

    I find just adding the files to the bin do not work.

    Goodluck!
    R
  10. Steve
    Steve avatar
    16 posts
    Registered:
    14 Jul 2010
    26 Oct 2011
    Link to this post
    Okay cool, looks like I may have fixed it in Sitefinity 4.2 using the same technique that worked for 4.1.

    Comparing the DLL's between the _EmptyProject\Bin and my project\bin showed a that my build was missing Microsoft.Http.dll and Telerik.Sitefinity.MigrationContracts.dll.  So I copied those back into my \bin folder and then added a reference to them in VS2010.  Now whenever it rebuilds the application all the necessary files remain.

    Hope this helps!
    Steve
  11. Viktor
    Viktor avatar
    22 posts
    Registered:
    01 Nov 2011
    09 Nov 2011
    Link to this post
    Hi Steve, this should probably be an answer. I had other DLLs missing, but the point remains - VS has removed something on build or clean, which cost me few hours of troubleshooting. Thank you.
  12. Eric
    Eric avatar
    60 posts
    Registered:
    24 Feb 2011
    13 Feb 2012
    Link to this post
    I get this every time I rebuild, but then I immediately build, and its fine... is there something I can do to stop this?

    Eric
  13. Steve
    Steve avatar
    1 posts
    Registered:
    28 Aug 2012
    29 Aug 2012
    Link to this post
    Easy solution:

    Add the following as a pre-build event to your project, this will allow you to use rebuild as necessary or desired and prevent any accidental click problems.

    robocopy ..\..\..\_EmptyProject\bin . /E /XC /XN /XO
    echo copied missing DLLS
13 posts, 1 answered