DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Could not load file or assembly 'DotNetNuke.HttpModules' or one of its dependencies.

Sort:
You are not authorized to post a reply.





New Around Here





    Hello, I'm new to DNN and upgrading our platform ultimately to 9.10. But I am recieving thebelow error when upgrading from 9.7.0 to 9.8.0 or 9.9.1. The binding in IIS seems to be poitning to the correct place, and I made previous upgrades from 9.2 to 9.7 without issue. It seems the upgrade from 9.7 to 9.8.0 or 9.9.1 (I've tried both) cause this error. Any thoughts on what it might be? 

    Server Error in '/DesktopModules/CompanyName/API-Storefront' Application.

    Could not load file or assembly 'DotNetNuke.HttpModules' 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 'DotNetNuke.HttpModules' 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 'DotNetNuke.HttpModules' 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 'DotNetNuke.HttpModules' or one of its dependencies. The system cannot find the file specified.]
       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) +96
       System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +65
       System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +59
       System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +49
    
    [ConfigurationErrorsException: Could not load file or assembly 'DotNetNuke.HttpModules' or one of its dependencies. The system cannot find the file specified.]
       System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +515
       System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, Boolean checkAptcaBit) +29
       System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName, String propertyName, ConfigurationElement configElement) +60
       System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) +68
       System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +221
       System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1153
       System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +139
       System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +168
       System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +277
       System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369
    
    [HttpException (0x80004005): Could not load file or assembly 'DotNetNuke.HttpModules' or one of its dependencies. The system cannot find the file specified.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +724
    
     

     


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

     

     






    Veteran Member





      Did the upgrade complete successfully, and then this error appeared?
      Joe Craig
      DNN MVP
      Patapsco Research Group





      New Around Here





        Yes, correct. The update does successfully complete 






        Veteran Member





          This looks like a problem with a 3rd party component (API-Storefront). Did you make sure, you are having a module version installed, which is compatible with latest version of DNN?





          Veteran Member





            I had a similar problem with another assembly. Maybe this idea helps:

            Upgrade DNN 9.9.1 to 9.10.x - DNN Open Source Community - Forums (dnncommunity.org)

            Happy DNNing!
            Michael

            Michael Tobisch
            DNN★MVP

            dnnWerk Austria
            DNN Connect





            New Around Here





              Thanks for reply, API-Storefront is a virtual directory we are using to point to our storefront services folder. I do not beelive any 3rd pary modules are beign used here but I can confirm this and follow up 






              New Around Here





                Thanks Michael, I did try using a system.web.http file version 5.2.7 in the bin directory, no luck either here. 






                Veteran Member





                  I said "the idea". In your case it should be a file called "DotNetNuke.HttpModules.dll" with the same version number as your DNN installation (to get the version number of an assembly, right click the file, choose "Properties" and go to "Details").

                  Happy DNNing!
                  Michael

                  Michael Tobisch
                  DNN★MVP

                  dnnWerk Austria
                  DNN Connect
                  You are not authorized to post a reply.

                  These Forums are dedicated to the discussion of DNN Platform.

                  For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

                  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
                  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
                  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
                  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
                  5. No Flaming or Trolling.
                  6. No Profanity, Racism, or Prejudice.
                  7. Site Moderators have the final word on approving / removing a thread or post or comment.
                  8. English language posting only, please.

                  Would you like to help us?

                  Awesome! Simply post in the forums using the link below and we'll get you started.

                  Get Involved