A list of issues seen setting up the CSMART extension project.
Project will not load in Visual Studio
If the MarineLMSExtensions.Web.Main project does not load, open the Output window: View > Output or Ctrl + Alt + o
Right click the MarineLMSExtensions.Web.Main in the solution explorer and attempt to reload the project.
If the following error is seen in the Output window:
C:\coredev\src\MarineLMSExtensions.Web.Main\MarineLMSExtensions.Web.Main.csproj : error : The imported project "C:\coredev\src\packages\Microsoft.Bcl.Build.1.0.8\tools\Microsoft.Bcl.Build.targets" was not found. Confirm that the expression in the Import declaration "..\packages\Microsoft.Bcl.Build.1.0.8\tools\Microsoft.Bcl.Build.targets" is correct, and that the file exists on disk. C:\coredev\src\MarineLMSExtensions.Web.Main\MarineLMSExtensions.Web.Main.csprojPlace the following zip in your C:\coredev\src\packages\ folder:
Reload the project again in the solution explorer to resolve.
Deploy-app.bat Fails and Closes the cmd Prompt
Sometimes, running src\MarineLMSExtensions.Web.Main\Support\deploy-app.bat fails and closes the cmd prompt window.
Follow the steps below to fix that:
Delete all folders \src\MarineLMSExtensions.Web.Main\App\csmartv4\node_modules\webpack* and \src\MarineLMSExtensions.Web.Main\App\csmartv4\node_modules\@webpack-cli
Alternatively, remove the whole folder \src\MarineLMSExtensions.Web.Main\App\csmartv4\node_modulesOpen a new cmd prompt (run as admin) and switch to folder src\MarineLMSExtensions.Web.Main
Execute npm update inside \src\MarineLMSExtensions.Web.Main\App\csmartv4\ folder
Rerun src\MarineLMSExtensions.Web.Main\Support\deploy-app.bat
Extensions Service won’t start
There could be a number of reasons your extensions service won’t start. Check Application in the Event Viewer for errors.
IoCSetup::Shutdown[MarineLMS-Ext-Service] - Error: Service registration failed for address
Open a command prompt as Administrator and run the following command:
sc.exe config NetTcpPortSharing start= demand
Try again to start the extensions service.