Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

The program does not warn after having the path length error - "Message: The destination path length cannot exceed 259 characters."  #751

Description

@turalarda

I successfully assessed my project. After the assessment, I tried to port it to another folder but the application (porting assistant) did not successfully do it. In the log files, I realized that the length of the destination path was too long. A shorter path solved the problem. It would be better for the program to show the error on a pop-up.

[2023-02-10 00:03:41.285] [error] Error occurred in handler for 'copyDirectory': {
  ClassName: '[System.IO](http://system.io/).PathTooLongException',
  Message: 'The destination path length cannot exceed 259 characters. Please try a location that has a shorter path.',
  Data: null,
  InnerException: null,
  HelpURL: null,
  StackTraceString: '   at PortingAssistant.Common.Utils.PortingAssistantUtils.CopyDirectory(String solutionPath, String destinationPath) in C:\\codebuild\\tmp\\output\\src680297959\\src\\[github.com](http://github.com/)\\aws\\porting-assistant-dotnet-ui\\packages\\csharp\\PortingAssistant\\PortingAssistant.Common\\Utils\\PortingAssistantUtils.cs:line 55\r\n' +
    '   at PortingAssistant.Api.Application.<SetupConnection>b__8_1(CopyDirectoryRequest request) in C:\\codebuild\\tmp\\output\\src680297959\\src\\[github.com](http://github.com/)\\aws\\porting-assistant-dotnet-ui\\packages\\csharp\\PortingAssistant\\PortingAssistant.Api\\Application.cs:line 83\r\n' +
    '   at ElectronCgi.DotNet.Connection.<>c__DisplayClass24_0`1.<On>b__0(T args)\r\n' +
    '   at ElectronCgi.DotNet.RequestHandler`1.HandleRequestAsync(Guid requestId, Object arguments)\r\n' +
    '   at ElectronCgi.DotNet.RequestExecutor.<>c__DisplayClass6_0.<<ExecuteAsync>b__0>d.MoveNext()',
  RemoteStackTraceString: null,
  RemoteStackIndex: 0,
  ExceptionMethod: null,
  HResult: -2147024690,
  Source: 'PortingAssistant.Common',
  WatsonBuckets: null

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions