Starts in:
0 DAY
22 HRS
5 MIN
7 SEC
Starts in:
0 D
22 H
5 M
7 S
Open Closed

Failed to create module #3114


User avatar
0
15937823 created
  • ABP Framework version: v5.3.0.rc.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:

Could not find a part of the path 'E:\BMSNext\IWIT.Framework\aspnet-core\modules\IWIT.BMSNext.Dictionary\test\IWIT.BMSNext.Dictionary.MongoDB.Tests\IWIT.BMSNext.Dictionary.MongoDB.Tests.csproj'.


   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
   at System.IO.File.InternalReadAllText(String path, Encoding encoding)
   at Volo.Abp.Cli.ProjectModification.NugetPackageToLocalReferenceConverter.ConvertToLocalReference(String folder, List`1 nugetPackageList, String localPathPrefix, String sourceFile, String modulePrefix) in D:\ci\Jenkins\workspace\abp-commercial-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\NugetPackageToLocalReferenceConverter.cs:line 31
   at Volo.Abp.Cli.ProjectModification.NugetPackageToLocalReferenceConverter.Convert(ModuleWithMastersInfo module, String solutionFile, String modulePrefix) in D:\ci\Jenkins\workspace\abp-commercial-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\NugetPackageToLocalReferenceConverter.cs:line 22
   at Volo.Abp.Cli.ProjectModification.SolutionModuleAdder.AddAsync(String solutionFile, String moduleName, String version, Boolean skipDbMigrations, Boolean withSourceCode, Boolean addSourceCodeToSolutionFile, Boolean newTemplate, Boolean newProTemplate) in D:\ci\Jenkins\workspace\abp-commercial-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\SolutionModuleAdder.cs:line 135
   at Volo.Abp.Cli.Commands.AddModuleCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-commercial-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\AddModuleCommand.cs:line 68
   at Volo.Abp.Suite.Controllers.AbpSuiteController.CreateModuleAsync(CreateModuleInput input)

  • Steps to reproduce the issue:"

SETUP1. Create solution:IWIT.Framework (Angular / EF Core ) successful!

SETUP2. Open Solution:IWIT.Framework Create the first module successful!

SETUP3. Create the second module fail. The error is shown above


11 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    this exists?

    E:\BMSNext\IWIT.Framework\aspnet-core\modules\IWIT.BMSNext.Dictionary\test\IWIT.BMSNext.Dictionary.MongoDB.Tests\IWIT.BMSNext.Dictionary.MongoDB.Tests.csproj
    

    if not you can write a correct path in the Suite's DB %UserProfile%\.abp\suite\appsettings.json

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    I guess it is related with the naming but i couldn't reproduce.

    Can you type the module names?

    main solution: IWIT.BMSNext first module: IWIT.BMSNext.Dictionary ? second module: ?

  • User Avatar
    0
    15937823 created

    IWIT.BMSNext.Dictionary

    IWIT.BMSNext.Basic

  • User Avatar
    0
    15937823 created

    this exists?

    E:\BMSNext\IWIT.Framework\aspnet-core\modules\IWIT.BMSNext.Dictionary\test\IWIT.BMSNext.Dictionary.MongoDB.Tests\IWIT.BMSNext.Dictionary.MongoDB.Tests.csproj 
    

    if not you can write a correct path in the Suite's DB %UserProfile%\.abp\suite\appsettings.json

    The main solution uses EF core (MSSqlServer), which has nothing to do with mongodb.

    This error will occur when the module is created continuously and the second module is created.

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    I've created an internal issue about this.

    We'll try to reproduce this problem and inform you.

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi,

    I can't reproduce the problem.

    1. Created a project. (IWIT.BMSNext)
    2. Added a new module (IWIT.BMSNext.Dictionary)
    3. Added an another new module (IWIT.BMSNext.Basic)

    It worked successfuly and i could build the whole solution.

  • User Avatar
    0
    15937823 created

    Hi,

    I can't reproduce the problem.

    1. Created a project. (IWIT.BMSNext)
    2. Added a new module (IWIT.BMSNext.Dictionary)
    3. Added an another new module (IWIT.BMSNext.Basic)

    It worked successfuly and i could build the whole solution.

    I have upgraded to 5.3 Rc-2, there is still this error on my computer, but it can be used normally only after closing ABP suite and entering again.

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Could you try the same process with CLI?

    run this command to create the project:

    abp new IWIT.BMSNext -u angular --separate-identity-server --preview

    then move to aspnet-core folder and run:

    abp add-module IWIT.BMSNext.Dictionary --new -t module-pro --add-to-solution-file

    abp add-module IWIT.BMSNext.Basic --new -t module-pro --add-to-solution-file

  • User Avatar
    0
    15937823 created

    Could you try the same process with CLI?

    run this command to create the project:

    abp new IWIT.BMSNext -u angular --separate-identity-server --preview

    then move to aspnet-core folder and run:

    abp add-module IWIT.BMSNext.Dictionary --new -t module-pro --add-to-solution-file

    abp add-module IWIT.BMSNext.Basic --new -t module-pro --add-to-solution-file

    There will be no error prompt, but it has not ended normally.

  • User Avatar
    0
    15937823 created

    Could you try the same process with CLI?

    run this command to create the project:

    abp new IWIT.BMSNext -u angular --separate-identity-server --preview

    then move to aspnet-core folder and run:

    abp add-module IWIT.BMSNext.Dictionary --new -t module-pro --add-to-solution-file

    abp add-module IWIT.BMSNext.Basic --new -t module-pro --add-to-solution-file

    There will be no error prompt, but it has not ended normally.

    After waiting for more than 10 minutes, the error message is still prompted.

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    This is very interesting. See the source code https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/NugetPackageToLocalReferenceConverter.cs#L33

    We use Directory.GetFiles(...) to find csproj files, and when we try to read one of them we shouldn't receive DirectoryNotFoundException. I don't understand why you are facing this issue.

    However, i placed a File.Exist(...) check before reading a csproj file. See https://github.com/abpframework/abp/pull/12768

    I'm closing the issue since it will be resolved with that pull request. If you continue to face this issue after stable 5.3 release, you can re-open.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06