Copied to clipboard

Flag this post as spam?

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


  • Dan Evans 616 posts 988 karma points
    Aug 06, 2013 @ 18:08
    Dan Evans
    0

    Error migrating data from V1 to V2

    I'm getting this error when installing the new package and attempting to migrate data from V1:

    Migrating data failed: Invalid URI: The format of the URI could not be determined. | Stacktrace: at InfoCaster.Umbraco.UrlTracker.UI.Installer.UrlTrackerInstallerService.HandleException(Exception ex) in c:\Users\kipusoep\Documents\GitHub\UrlTracker\UrlTracker\UI\Installer\UrlTrackerInstallerService.asmx.cs:line 168<br /> at InfoCaster.Umbraco.UrlTracker.UI.Installer.UrlTrackerInstallerService.MigrateData() in c:\Users\kipusoep\Documents\GitHub\UrlTracker\UrlTracker\UI\Installer\UrlTrackerInstallerService.asmx.cs:line 154<br /> at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)<br /> at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)<br /> at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)<br /> at System.Web.Script.Services.WebServiceMethodData.CallMethod(Object target, IDictionary`2 parameters)<br /> at System.Web.Script.Services.WebServiceMethodData.CallMethodFromRawParams(Object target, IDictionary`2 parameters)<br /> at System.Web.Script.Services.RestHandler.InvokeMethod(HttpContext context, WebServiceMethodData methodData, IDictionary`2 rawParams)<br /> at System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData)<br /> at System.Web.Script.Services.RestHandler.ProcessRequest(HttpContext context)<br /> at System.Web.Script.Services.ScriptHandlerFactory.HandlerWrapper.ProcessRequest(HttpContext context)<br /> at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()<br /> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)<br /> at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)<br /> at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)<br /> at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)<br /> at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)<br /> at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)<br /> at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)<br /> at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)<br /> at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)<br />

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Aug 07, 2013 @ 10:50
    Stefan Kip
    0

    It seems there's an invalid entry for the OldUrl column in the infocaster301 table... Maybe you can have a look for yourself to see if there are 'special/weird' entries?

  • Dan Evans 616 posts 988 karma points
    Aug 07, 2013 @ 10:59
    Dan Evans
    0

    There were some entries which were just #. I have deleted these but problem still occurs.

    There are some entries without a hostname and some on localhost. Would these make a difference?

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Aug 07, 2013 @ 11:03
    Stefan Kip
    0

    My guess is that this is the line where the exception occurs:

    Uri oldUri = new Uri(string.Concat(!oldUrl.StartsWith("http") ? "http://www.example.org" : string.Empty, !oldUrl.StartsWith("/") ? "/" : string.Empty, oldUrl));
    

    It is taken into account that the OldUrl can be relative or absolute, so that shouldn't be a problem... Maybe you can post the OldUrl's here so I can have a look with you? Or mail them to me; stefan [at] infocaster [dot] net if that feels better.

  • Dan Evans 616 posts 988 karma points
    Aug 07, 2013 @ 11:07
    Dan Evans
    0

    There are nearly 1000 of them. I have emailed them to you.

    Thanks

    Dan

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Aug 07, 2013 @ 12:04
    Stefan Kip
    100

    Thanks Dan, I found the bug and fixed it in v2.1.4, which I released just now.

  • Dan Evans 616 posts 988 karma points
    Aug 07, 2013 @ 12:46
    Dan Evans
    0

    That's fixed it! Thanks!.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies