locked
Could not load type 'Microsoft.LightSwitch.WebHost.Implementation.RedirectToHttpsModule' RRS feed

  • Question

  • I updated my server from Beta1 to Beta2 using the Platform Installer. 

    I created a new Beta 2 applicaiton, works ok in debug from dev machine, published to server, pubished ok. 

    When i try to access the application on the server i get the following error, Any Ideas on How to fix this? 

    Could not load type 'Microsoft.LightSwitch.WebHost.Implementation.RedirectToHttpsModule' from assembly 'Microsoft.LightSwitch.Server.Internal,Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

    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.TypeLoadException: Could not load type 'Microsoft.LightSwitch.WebHost.Implementation.RedirectToHttpsModule' from assembly 'Microsoft.LightSwitch.Server.Internal,Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

    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:

    [TypeLoadException: Could not load type 'Microsoft.LightSwitch.WebHost.Implementation.RedirectToHttpsModule' from assembly 'Microsoft.LightSwitch.Server.Internal,Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.]
      System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0
      System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +314
      System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +95
      System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +124
      System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +76
    
    [ConfigurationErrorsException: Could not load type 'Microsoft.LightSwitch.WebHost.Implementation.RedirectToHttpsModule' from assembly 'Microsoft.LightSwitch.Server.Internal,Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.]
      System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +11360108
      System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName, String propertyName, ConfigurationElement configElement) +69
      System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) +62
      System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +301
      System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1332
      System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +149
      System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +325
      System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407
      System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375
    
    [HttpException (0x80004005): Could not load type 'Microsoft.LightSwitch.WebHost.Implementation.RedirectToHttpsModule' from assembly 'Microsoft.LightSwitch.Server.Internal,Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.]
      System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11529072
      System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
      System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4784373
    

    Thursday, March 17, 2011 8:02 PM

Answers

  • I updated my server from Beta1 to Beta2 using the Platform Installer. 

    I created a new Beta 2 applicaiton, works ok in debug from dev machine, published to server, pubished ok. 

    When i try to access the application on the server i get the following error, Any Ideas on How to fix this? 

    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.TypeLoadException: Could not load type 'Microsoft.LightSwitch.WebHost.Implementation.RedirectToHttpsModule' from assembly 'Microsoft.LightSwitch.Server.Internal,Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

    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:

    [TypeLoadException: Could not load type 'Microsoft.LightSwitch.WebHost.Implementation.RedirectToHttpsModule' from assembly 'Microsoft.LightSwitch.Server.Internal,Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.]
    
     System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0
    
     System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +314
    
     System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +95
    
     System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +124
    
     System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +76
    
    
    
    [ConfigurationErrorsException: Could not load type 'Microsoft.LightSwitch.WebHost.Implementation.RedirectToHttpsModule' from assembly 'Microsoft.LightSwitch.Server.Internal,Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.]
    
     System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +11360108
    
     System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName, String propertyName, ConfigurationElement configElement) +69
    
     System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) +62
    
     System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +301
    
     System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1332
    
     System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +149
    
     System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +325
    
     System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407
    
     System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375
    
    
    
    [HttpException (0x80004005): Could not load type 'Microsoft.LightSwitch.WebHost.Implementation.RedirectToHttpsModule' from assembly 'Microsoft.LightSwitch.Server.Internal,Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.]
    
     System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11529072
    
     System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
    
     System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4784373
    
    

    Could not load type 'Microsoft.LightSwitch.WebHost.Implementation.RedirectToHttpsModule' from assembly 'Microsoft.LightSwitch.Server.Internal,Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

    you MUST uninstall the beta 1 VSLS server pre-reqs before installing the beta 2 server package.

    Thursday, March 17, 2011 8:14 PM

All replies

  • I updated my server from Beta1 to Beta2 using the Platform Installer. 

    I created a new Beta 2 applicaiton, works ok in debug from dev machine, published to server, pubished ok. 

    When i try to access the application on the server i get the following error, Any Ideas on How to fix this? 

    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.TypeLoadException: Could not load type 'Microsoft.LightSwitch.WebHost.Implementation.RedirectToHttpsModule' from assembly 'Microsoft.LightSwitch.Server.Internal,Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

    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:

    [TypeLoadException: Could not load type 'Microsoft.LightSwitch.WebHost.Implementation.RedirectToHttpsModule' from assembly 'Microsoft.LightSwitch.Server.Internal,Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.]
    
     System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0
    
     System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +314
    
     System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +95
    
     System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +124
    
     System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +76
    
    
    
    [ConfigurationErrorsException: Could not load type 'Microsoft.LightSwitch.WebHost.Implementation.RedirectToHttpsModule' from assembly 'Microsoft.LightSwitch.Server.Internal,Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.]
    
     System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +11360108
    
     System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName, String propertyName, ConfigurationElement configElement) +69
    
     System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) +62
    
     System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +301
    
     System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1332
    
     System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +149
    
     System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +325
    
     System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407
    
     System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375
    
    
    
    [HttpException (0x80004005): Could not load type 'Microsoft.LightSwitch.WebHost.Implementation.RedirectToHttpsModule' from assembly 'Microsoft.LightSwitch.Server.Internal,Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.]
    
     System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11529072
    
     System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
    
     System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4784373
    
    

    Could not load type 'Microsoft.LightSwitch.WebHost.Implementation.RedirectToHttpsModule' from assembly 'Microsoft.LightSwitch.Server.Internal,Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

    you MUST uninstall the beta 1 VSLS server pre-reqs before installing the beta 2 server package.

    Thursday, March 17, 2011 8:14 PM
  • Thanks that worked! I made the wrong assumption that the web platform installer would upgrade the existing installation.

    Thanks for the quick response!

    Thursday, March 17, 2011 11:36 PM