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
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?
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:
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
is working on a reply...