Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nadia 45 posts 122 karma points
    Nov 30, 2017 @ 02:58
    Nadia
    0

    Error installing Forms

    I am trying to install forms on a project. It is a long running project that has been through many upgrades and currently on 7.7.6.

    It might have had old version of forms installed in the past but was partially removed awhile ago. I have gone through and removed any files I believe belong to old forms version.

    However, whenever I install the latest Umbraco Forms 6.0.5 from Nuget I get the following error. Any idea where to look to prevent this from happening?

    Method not found: 'System.String Umbraco.Forms.Core.Configuration.GetVersion()'.
    
    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.MissingMethodException: Method not found: 'System.String Umbraco.Forms.Core.Configuration.GetVersion()'.
    
    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: 
    
    
    [MissingMethodException: Method not found: 'System.String Umbraco.Forms.Core.Configuration.GetVersion()'.]
       Umbraco.Forms.Web.Installer.InstallMarkers.NeedsCdfUpdate() +0
       Umbraco.Forms.Web.Installer.UpdateClientDependancy.Run() +10
    
    [InvalidOperationException: The pre-application start initialization method Run on type Umbraco.Forms.Web.Installer.UpdateClientDependancy threw an exception with the following error message: Method not found: 'System.String Umbraco.Forms.Core.Configuration.GetVersion()'..]
       System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +851
       System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +162
       System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +130
       System.Web.Compilation.BuildManager.ExecutePreAppStart() +170
       System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +878
    
    [HttpException (0x80004005): The pre-application start initialization method Run on type Umbraco.Forms.Web.Installer.UpdateClientDependancy threw an exception with the following error message: Method not found: 'System.String Umbraco.Forms.Core.Configuration.GetVersion()'..]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +525
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +124
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +700
    
  • Marc Goodson 2155 posts 14408 karma points MVP 9x c-trib
    Dec 27, 2017 @ 11:10
    Marc Goodson
    0

    Hi Nadia

    Yes, just had this error on a site...

    Contour had been installed a few years before and partially removed.

    Installing Umbraco Forms... triggered the same error message above.

    Removing absolutely all references to the old Contour, particularly the dlls from the bin folder, makes the GetVersion() error go away!

    Files to remove:

    and references to Contour in the web.config:

    eg remove:

      <add name="ContourFormBuilderHttpModule" type="Umbraco.Forms.CodeFirst.ContourFormBuilderHttpModule, Umbraco.Forms.CodeFirst" />
    

    and applications.config and trees.config in the /config folder

    and for good measure details of package installation in:

    /app_data/packages/installed/installedpackages.config

Please Sign in or register to post replies

Write your reply to:

Draft