Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

VPP Migration Tool issues

Vote:
 

Hi,

I am upgrading from 7.1 to 7.5 CMS version,
I am facing issues while running the VPP Migration tool utility. I have made sure to add Media folder which includes three cs files

GenericMedia.cs
ImageFile.cs
VideoFile.cs

When I run the tool, and connect it to my website, after sometime, it generates the following error.

Exception has been thrown by the target of an invocation.

I will appreciate a quick response.

at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at EPiServer.PlugIn.PlugInRuntime.Call(TypesWithState typeWithState, String methodName)
at EPiServer.PlugIn.PlugInRuntime.Call(String methodName)
at EPiServer.PlugIn.PlugInRuntime.Start(Boolean reset)
at EPiServer.Initialization.PlugInInitialization.Initialize(InitializationEngine context)
at EPiServer.Framework.Initialization.ModuleNode.Execute(Action a, String key)
at EPiServer.Framework.Initialization.InitializationEngine.InitializeModules()
at EPiServer.Framework.Initialization.InitializationEngine.Initialize(HostType hostType)
at EPiServer.Framework.Initialization.InitializationModule.Initialize(HostType hostType)
at EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType)
at VppMigrationTool.Util.SiteProxy.InitalizeEPiServer(String webConfigPath) in d:\Builds\132\EPiServerCMS Modules\VppMigrationTool\Sources\C\TFS\VppMigrationTool\Util\SiteProxy.cs:line 52
at VppMigrationTool.Util.SiteProxy.Initialize(String destinationPath, String virtualDirectory) in d:\Builds\132\EPiServerCMS Modules\VppMigrationTool\Sources\C\TFS\VppMigrationTool\Util\SiteProxy.cs:line 129
at VppMigrationTool.Util.SiteProxy.Initialize(String destinationPath, String virtualDirectory)
at VppMigrationTool.Converter.get_RuntimeProxyWrapper() in d:\Builds\132\EPiServerCMS Modules\VppMigrationTool\Sources\C\TFS\VppMigrationTool\Converter.cs:line 52
at VppMigrationTool.Converter.FillSiteData() in d:\Builds\132\EPiServerCMS Modules\VppMigrationTool\Sources\C\TFS\VppMigrationTool\Converter.cs:line 101


--- Inner exception ---


Exception has been thrown by the target of an invocation.


at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at EPiServer.PlugIn.PagePlugInAttribute.Start()--- Inner exception ---


An error occurred creating the configuration section handler for linkhtmlrewriter: Could not load type 'Sigma.CitizensAdvice.Web.Business.HTMLRewrite.LinkHTMLRewriterConfigSection' from assembly 'System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. (C:\EPiServer\Sites\CAB-Episerver-Live-Test5\Solutions\Sigma.CitizensAdvice.Web\web.config line 19)


at System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at Sigma.CitizensAdvice.Web.Business.HTMLRewrite.LinkHTMLRewriter.Initialize(Int32 optionFlag) in c:\EPiServer\Sites\CAB-Episerver-Live-Test5\Solutions\Sigma.CitizensAdvice.Web\Business\Initialization\LinkHTMLRewriter.cs:line 54--- Inner exception ---


Could not load type 'Sigma.CitizensAdvice.Web.Business.HTMLRewrite.LinkHTMLRewriterConfigSection' from assembly 'System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.


at System.Configuration.TypeUtil.GetTypeWithReflectionPermission(IInternalConfigHost host, String typeString, Boolean throwOnError)
at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.Init(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.InitWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
at System.Configuration.RuntimeConfigurationRecord.CreateSectionFactory(FactoryRecord factoryRecord)
at System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)

Thanks,

#121357
May 07, 2015 13:32
Vote:
 

Hi,

You need to make sure your site is running before trying VPP Migration tool.

From the exception:

Could not load type 'Sigma.CitizensAdvice.Web.Business.HTMLRewrite.LinkHTMLRewriterConfigSection' from assembly 'System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

It looks like there is a misconfiguration somewhere in your web.config. Check if there's any mention to LinkHTMLRewriter/LinkHTMLRewriterConfigSection in it.

Regards.

/Q

#121371
May 07, 2015 15:26
Vote:
 

Hi Quan,

I commented out that code from the initialisation module, and the VPP worked, thanks very much. Though, i am not sure why this was creating an issue.
Another issue, but I will create a new thread as it is related to Gadgets.

Cheers,

Naz

#121377
May 07, 2015 16:49
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.