SmarterTrack Upgrade from 7.x to 14.x IIS 10

Discussion in 'Third-party applications' started by manlyboy, Jul 3, 2018.

Tags:
  1. Hi,

    I'm trying to upgrade my current 7.x version of SmarterTrack to 14.x and Winhost have migrated me to IIS10.

    7.x worked fine but now I've "upgraded" I get the following errors:

    [TypeLoadException: Could not load type 'SmarterTrack.MRS.HelperClasses.HTTPModules.UrlRewriter' from assembly 'SmarterTrack.HelperClasses'.]
    System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0
    System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) +70
    System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +40
    System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +37
    System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +65
    System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +38

    [ConfigurationErrorsException: Could not load type 'SmarterTrack.MRS.HelperClasses.HTTPModules.UrlRewriter' from assembly 'SmarterTrack.HelperClasses'.]
    System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +353
    System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, Boolean checkAptcaBit) +21
    System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName, String propertyName, ConfigurationElement configElement) +39
    System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) +42
    System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +160
    System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1068
    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +82
    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +173
    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336
    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

    [HttpException (0x80004005): Could not load type 'SmarterTrack.MRS.HelperClasses.HTTPModules.UrlRewriter' from assembly 'SmarterTrack.HelperClasses'.]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10043444
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95
    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254


    There's a Stack-overflow comment that the above may be caused by the need to have URL RE-write module updated :

    https://stackoverflow.com/questions...worked-under-iis-7-5-doesnt-work-under-iis-10

    Has anyone got any suggestions?

    Thanks ...
     
  2. Elshadriel

    Elshadriel Winhost Staff

    Looks more like an assembly for SmarterTrack is missing in your /bin folder.
     
  3. Thanks for the suggestion.

    SmarterTools haven't got back to me yet but I'm getting this error:

    [2018-07-05 10:04:21 PM]
    Could not get current user
    The ConnectionString property has not been initialized.
    System.InvalidOperationException: The ConnectionString property has not been initialized.
    at System.Data.SqlClient.SqlConnection.PermissionDemand()

    All other functions are working fine and the self diagnostic returns no errors.
     
  4. Elshadriel

    Elshadriel Winhost Staff

    I would check the connection string in your web.config file. If you updated the database password recently, you need to update the connection string as well.
     
  5. I'm 99% certain that SmarterTrack can't be hosted on a IIS 10 shared server. Downgraded to IIS 8, moved the same installation to that server and all works fine.
     

Share This Page