Starts in:
1 DAY
20 HRS
19 MIN
5 SEC
Starts in:
1 D
20 H
19 M
5 S
Open Closed

Chat module not working #613


User avatar
0
shobhit created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v3.3.0
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): yes
  • Exception message and stack trace:
  • No DbContext was found in assembly 'ezpandtrial.DbMigrator'. Ensure that you're using the correct assembly and that the type is neither abstract nor generic. Couldn't find a project to run. Ensure a project exists in C:\Users\shobhit, or pass the path to the project using --project. [18:52:37 ERR] Error occured while adding the module for module name: Volo.Chat, with-source-code: True, to the solution: Ezpand - System.IO.FileNotFoundException: Could not find file 'D:\Projile\ABP-Suite\angular\projects\e2e\package.json'. File name: 'D:\Projile\ABP-Suite\angular\projects\e2e\package.json' at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle) at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) 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.AngularModuleSourceCodeAdder.GetProjectPackageNameAsync(String angularProjectsPath, String project) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\AngularModuleSourceCodeAdder.cs:line 117 at Volo.Abp.Cli.ProjectModification.AngularModuleSourceCodeAdder.AddPathsToTsConfigAsync(String angularPath, String angularProjectsPath, List`1 projects) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\AngularModuleSourceCodeAdder.cs:line 93 at Volo.Abp.Cli.ProjectModification.AngularModuleSourceCodeAdder.AddAsync(String solutionFilePath, String angularPath) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\AngularModuleSourceCodeAdder.cs:line 30 at Volo.Abp.Cli.ProjectModification.SolutionModuleAdder.AddAngularSourceCode(String modulesFolderInSolution, String solutionFilePath) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\SolutionModuleAdder.cs:line 186 at Volo.Abp.Cli.ProjectModification.SolutionModuleAdder.AddAsync(String solutionFile, String moduleName, String startupProject, String version, Boolean skipDbMigrations, Boolean withSourceCode, Boolean addSourceCodeToSolutionFile) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\SolutionModuleAdder.cs:line 99 at Volo.Abp.Cli.Commands.AddModuleCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\AddModuleCommand.cs:line 53 at Volo.Abp.Suite.Controllers.AbpSuiteController.AddModuleAsync(AddModuleInput input) Determining projects to restore... Writing C:\Users\shobhit\AppData\Local\Temp\tmp3CCE.tmp info : Adding PackageReference for package 'Volo.Chat.Application' into project 'D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.Application\ezpandtrial.Application.csproj'. info : Restoring packages for D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.Application\ezpandtrial.Application.csproj... info : Package 'Volo.Chat.Application' is compatible with all the specified frameworks in project 'D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.Application\ezpandtrial.Application.csproj'. error: Value cannot be null. (Parameter 'path1')

Usage: NuGet.CommandLine.XPlat.dll package add [options]

Options: -h|--help Show help information --force-english-output Forces the application to run using an invariant, English-based culture. --package Id of the package to be added. --version Version of the package to be added. -d|--dg-file Path to the dependency graph file to be used to restore preview and compatibility check. -p|--project Path to the project file. -f|--framework Frameworks for which the package reference should be added. -n|--no-restore Do not perform restore preview and compatibility check. The added package reference will be unconditional. -s|--source Specifies NuGet package sources to use during the restore. --package-directory Directory to restore packages in. --interactive Allow the command to block and require manual action for operations like authentication. Determining projects to restore... Writing C:\Users\shobhit\AppData\Local\Temp\tmp71D8.tmp info : Adding PackageReference for package 'Volo.Chat.Application.Contracts' into project 'D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.Application.Contracts\ezpandtrial.Application.Contracts.csproj'. info : Restoring packages for D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.Application.Contracts\ezpandtrial.Application.Contracts.csproj... info : Package 'Volo.Chat.Application.Contracts' is compatible with all the specified frameworks in project 'D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.Application.Contracts\ezpandtrial.Application.Contracts.csproj'. error: Value cannot be null. (Parameter 'path1')

Usage: NuGet.CommandLine.XPlat.dll package add [options]

Options: -h|--help Show help information --force-english-output Forces the application to run using an invariant, English-based culture. --package Id of the package to be added. --version Version of the package to be added. -d|--dg-file Path to the dependency graph file to be used to restore preview and compatibility check. -p|--project Path to the project file. -f|--framework Frameworks for which the package reference should be added. -n|--no-restore Do not perform restore preview and compatibility check. The added package reference will be unconditional. -s|--source Specifies NuGet package sources to use during the restore. --package-directory Directory to restore packages in. --interactive Allow the command to block and require manual action for operations like authentication. Determining projects to restore... Writing C:\Users\shobhit\AppData\Local\Temp\tmp9241.tmp info : Adding PackageReference for package 'Volo.Chat.Domain' into project 'D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.Domain\ezpandtrial.Domain.csproj'. info : Restoring packages for D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.Domain\ezpandtrial.Domain.csproj... info : Package 'Volo.Chat.Domain' is compatible with all the specified frameworks in project 'D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.Domain\ezpandtrial.Domain.csproj'. error: Value cannot be null. (Parameter 'path1')

Usage: NuGet.CommandLine.XPlat.dll package add [options]

Options: -h|--help Show help information --force-english-output Forces the application to run using an invariant, English-based culture. --package Id of the package to be added. --version Version of the package to be added. -d|--dg-file Path to the dependency graph file to be used to restore preview and compatibility check. -p|--project Path to the project file. -f|--framework Frameworks for which the package reference should be added. -n|--no-restore Do not perform restore preview and compatibility check. The added package reference will be unconditional. -s|--source Specifies NuGet package sources to use during the restore. --package-directory Directory to restore packages in. --interactive Allow the command to block and require manual action for operations like authentication. Determining projects to restore... Writing C:\Users\shobhit\AppData\Local\Temp\tmpB067.tmp info : Adding PackageReference for package 'Volo.Chat.Domain.Shared' into project 'D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.Domain.Shared\ezpandtrial.Domain.Shared.csproj'. info : Restoring packages for D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.Domain.Shared\ezpandtrial.Domain.Shared.csproj... info : Package 'Volo.Chat.Domain.Shared' is compatible with all the specified frameworks in project 'D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.Domain.Shared\ezpandtrial.Domain.Shared.csproj'. error: Value cannot be null. (Parameter 'path1')

Usage: NuGet.CommandLine.XPlat.dll package add [options]

Options: -h|--help Show help information --force-english-output Forces the application to run using an invariant, English-based culture. --package Id of the package to be added. --version Version of the package to be added. -d|--dg-file Path to the dependency graph file to be used to restore preview and compatibility check. -p|--project Path to the project file. -f|--framework Frameworks for which the package reference should be added. -n|--no-restore Do not perform restore preview and compatibility check. The added package reference will be unconditional. -s|--source Specifies NuGet package sources to use during the restore. --package-directory Directory to restore packages in. --interactive Allow the command to block and require manual action for operations like authentication. Determining projects to restore... Writing C:\Users\shobhit\AppData\Local\Temp\tmpC95E.tmp info : Adding PackageReference for package 'Volo.Chat.EntityFrameworkCore' into project 'D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.EntityFrameworkCore\ezpandtrial.EntityFrameworkCore.csproj'. info : Restoring packages for D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.EntityFrameworkCore\ezpandtrial.EntityFrameworkCore.csproj... info : Package 'Volo.Chat.EntityFrameworkCore' is compatible with all the specified frameworks in project 'D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.EntityFrameworkCore\ezpandtrial.EntityFrameworkCore.csproj'. error: Value cannot be null. (Parameter 'path1')

Usage: NuGet.CommandLine.XPlat.dll package add [options]

Options: -h|--help Show help information --force-english-output Forces the application to run using an invariant, English-based culture. --package Id of the package to be added. --version Version of the package to be added. -d|--dg-file Path to the dependency graph file to be used to restore preview and compatibility check. -p|--project Path to the project file. -f|--framework Frameworks for which the package reference should be added. -n|--no-restore Do not perform restore preview and compatibility check. The added package reference will be unconditional. -s|--source Specifies NuGet package sources to use during the restore. --package-directory Directory to restore packages in. --interactive Allow the command to block and require manual action for operations like authentication. Determining projects to restore... Writing C:\Users\shobhit\AppData\Local\Temp\tmpEB8C.tmp info : Adding PackageReference for package 'Volo.Chat.HttpApi' into project 'D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.HttpApi\ezpandtrial.HttpApi.csproj'. info : Restoring packages for D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.HttpApi\ezpandtrial.HttpApi.csproj... info : Package 'Volo.Chat.HttpApi' is compatible with all the specified frameworks in project 'D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.HttpApi\ezpandtrial.HttpApi.csproj'. error: Value cannot be null. (Parameter 'path1')

Usage: NuGet.CommandLine.XPlat.dll package add [options]

Options: -h|--help Show help information --force-english-output Forces the application to run using an invariant, English-based culture. --package Id of the package to be added. --version Version of the package to be added. -d|--dg-file Path to the dependency graph file to be used to restore preview and compatibility check. -p|--project Path to the project file. -f|--framework Frameworks for which the package reference should be added. -n|--no-restore Do not perform restore preview and compatibility check. The added package reference will be unconditional. -s|--source Specifies NuGet package sources to use during the restore. --package-directory Directory to restore packages in. --interactive Allow the command to block and require manual action for operations like authentication. Determining projects to restore... Writing C:\Users\shobhit\AppData\Local\Temp\tmpE66.tmp info : Adding PackageReference for package 'Volo.Chat.HttpApi.Client' into project 'D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.HttpApi.Client\ezpandtrial.HttpApi.Client.csproj'. info : Restoring packages for D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.HttpApi.Client\ezpandtrial.HttpApi.Client.csproj... info : Package 'Volo.Chat.HttpApi.Client' is compatible with all the specified frameworks in project 'D:\Projile\ABP-Suite\aspnet-core\src\ezpandtrial.HttpApi.Client\ezpandtrial.HttpApi.Client.csproj'. error: Value cannot be null. (Parameter 'path1')

Usage: NuGet.CommandLine.XPlat.dll package add [options]

Options: -h|--help Show help information --force-english-output Forces the application to run using an invariant, English-based culture. --package Id of the package to be added. --version Version of the package to be added. -d|--dg-file Path to the dependency graph file to be used to restore preview and compatibility check. -p|--project Path to the project file. -f|--framework Frameworks for which the package reference should be added. -n|--no-restore Do not perform restore preview and compatibility check. The added package reference will be unconditional. -s|--source Specifies NuGet package sources to use during the restore. --package-directory Directory to restore packages in. --interactive Allow the command to block and require manual action for operations like authentication. Couldn't find a project to run. Ensure a project exists in C:\Users\shobhit, or pass the path to the project using --project.

  • Steps to reproduce the issue:
  • 1- Run ABP Suite
  • 2- Install chat as project
  • 3- Got the error even my project is in "D:\project" drive.

15 Answer(s)
  • User Avatar
    0
    nick.pham-mwp created

    hi @shobhit,

    i followed ABP doco at https://docs.abp.io/en/commercial/latest/modules/chat and it works for me.

    • ABP Suites automatically added the Volo.Chat.* dependencies to my back-end and Angular front-end.
    • I ran DbMigrator to get the database schema for the chat feature
    • I followed https://docs.abp.io/en/commercial/latest/modules/chat#signalr-access-token-configuration-for-angular-projects to configure SignalR Access Token for Angular

    hope that helps.

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi @shobhit,

    This is a known issue and will be fixed with v4.0.0 release which will be released in several days.

  • User Avatar
    0
    shobhit created

    Confused. Should i wait or should try nick.pham-mwp solution? Please help.

  • User Avatar
    0
    nick.pham-mwp created

    Hi @shobhit,

    I implemented ABP Chat feature using ABP version v3.0.5 commercial, and it worked fine. Not sure if it still does at version 3.3.1 sorry

  • User Avatar
    0
    shobhit created

    Ok. So i will wait for latest release. when it is expected to get released?

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    @shobhit Tomorrow (3 december 2020)

  • User Avatar
    0
    shobhit created

    Hi @yekalkan, As per earlier advice now my steps are: 1- I have upgraded to 4.0.0. 2- Created a new project 3- Install "Chat' as package 4- tried to follow https://docs.abp.io/en/commercial/latest/modules/chat 5- Not sure what exactly todo in https://docs.abp.io/en/commercial/latest/modules/chat#configuration step. Please tell me in layman term as i am using ABP first time 6- I moved to https://docs.abp.io/en/commercial/latest/modules/chat#configuration step 7- Run DBMigrator but not table get created

               Can you help me from Step 5 onward
               
    
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi @shobnit

    Run DBMigrator but not table get created

    is ConfigureChat(); added to *MigrationsDbContext class OnModelCreating method?

    Not sure what exactly todo in https://docs.abp.io/en/commercial/latest/modules/chat#configuration step

    You need to add the configuration mentioned in document to *HttpApiHostModule OnApplicationInitialization method like below:

  • User Avatar
    0
    shobhit created

    Hello, Just to remove any confusion, i am now doing following steps:

          1- create new project in ABP suite 4.0
          2- Run DBMigration project
          3- All tables created successfully
          4- Install "Chat package" from ABP suite
          5- Got following error in console:
          
          ├─ yargs-parser@18.1.3
    

    ├─ yeast@0.1.2 ├─ yn@3.1.1 ├─ yocto-queue@0.1.0 └─ zone.js@0.10.3 Done in 127.17s. Build started... Build succeeded. No DbContext was found in assembly 'EzpandCC.DbMigrator'. Ensure that you're using the correct assembly and that the type is neither abstract nor generic. Couldn't find a project to run. Ensure a project exists in C:\Users\shobhit, or pass the path to the project using --project.

    *NOTE: My project is in D:\myproject. Not sure how i have to ensure project in C:\Users\shobhit. I think this is making whole process complicated.

    But in ABP suite UI i got success message:

    I think some issue with ABP Suite. If we can fix this project exist problem then i don't think we will get the issue.

  • User Avatar
    0
    shobhit created

    New Update after above step: 1- run the "abp suite" command from project root folder 2- go to "abp suite" and now click "replace package with sourc code" in chat

    D:\Projile\EzpandCC>abp suite [19:43:47 INF] ABP CLI (https://abp.io) [19:43:48 INF] Version 4.0.0 (Stable) Starting Suite v4.0.0 ... Opening http://localhost:3000 Press Ctrl+C to shut down. C:\Users\shobhit.nuget\packages\microsoft.extensions.fileproviders.embedded\5.0.0\build\netstandard2.0\Microsoft.Extensions.FileProviders.Embedded.targets(19,5): warning : GenerateEmbeddedFilesManifest was set, but no EmbeddedResource items were found that could be added to the manifest. [D:\Projile\EzpandCC\aspnet-core\modules\Volo.Chat\src\Volo.Chat.Application.Contracts\Volo.Chat.Application.Contracts.csproj] [19:45:45 INF] Started database migrations... [19:45:45 INF] Migrating schema for host database... [19:45:51 INF] Executing host database seed... [19:46:35 INF] Successfully completed host database migrations. [19:46:36 INF] Successfully completed database migrations.

    3- Looks good but chat tables not created in DB 4- NP. i run DBMigrator again. 5- DBMigrator run is successful. Oh NO. but again no tables created. 6- Something funny happening so please help me. To me Bold Highlited message seems to be issue.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Install Volo.Chat.SignalR Package to your HttpApi.Host project and add module depency.

    Open tenant management page and click Manage Host features button to enable chat feature .

  • User Avatar
    0
    shobhit created

    Just to add, Chat module have some issue which is not allowing the application to run the chat module. Finally we have to remove chat module code and use the nuget package. Please let me know when i can take the chat module code.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi, @shobhit

    We have fixed this problem. now you can add chat module as project

  • User Avatar
    0
    shobhit created

    Hello @liangshiwei, Last time when we have fixed the issue we have deleted the code so now i am not getting any option in ABP suite. What i should do to get the option.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    You can remove the project in suite and re-add to suite.

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