It seems your project on localhost:44393 is not running therefore it could not send any HTTP request. Please ensure the project on localhost:44393 is running and try again.
Please check the appsettings.secrets.json
file is exists in the directory of your web project and the file has a section named AbpLicenseCode:
{
"AbpLicenseCode": "<your-license-code>"
}
Program.cs
file and check the .AddAppSettingsSecretsJson()
is used in the main method:public class Program
{
public async static Task<int> Main(string[] args)
{
//logging configurations ...
try
{
Log.Information("Starting web host.");
var builder = WebApplication.CreateBuilder(args);
builder.Host
.AddAppSettingsSecretsJson() //ensure this line is exist
.UseAutofac()
.UseSerilog();
//...
}
//...
}
}
Not sure why but after having reinstalled Visual Studio, the migration problem seemed to go away.
It's nice to hear the DB context problem is fixed.
We never really bothered with angular for this sample, but it seems it is using Angular 11 in the samples so I guess it hasn't been updated in a while.
Todo App sample is in the v5.0.0 right now, we try to keep our samples up to date and we usually update our samples after the stable releases. Thanks for your suggestion, we'll upgrade it asap.
Hi @vincent.goh, have you tried it?
Hi @mukremin, I've created an application with v5.1.4 and successfully generate CRUD pages so i could not reproduce your problem.
Can you check does your *.domain project has a reference to the Volo.Abp.Commercial.SuiteTemplates
package?
If not, please add and rebuild your project. You can follow the below steps:
*.Domain.csproj
,<ItemGroup>
<PackageReference Include="Volo.Abp.Commercial.SuiteTemplates" Version="5.1.4" />
</ItemGroup>
*DomainModule
class:using Volo.Abp.Commercial.SuiteTemplates;
[DependsOn(
//... other modules ...
typeof(VoloAbpCommercialSuiteTemplatesModule), //add this line
)]
public class MyAppDomainModule : AbpModule
{
}
Rebuild your application and try to generate CRUD pages, it should work.
Hi @improwise, I've just created an angular application and followed the steps that you've provided, but I didn't get any error and I could successfully create a migration even without specifying -Context
parameter on Package Manager Console.
And also I could successfully run the Angular side by following the documentation.
Did you upgrade your application to v5.1.4 and what is your ng version?
Thanks for the information, I'll test and write you back asap.
Can you try to upgrade the source-map package? You can add a resolutions section to your package.json file as below:
"resolutions": {
"source-map": "0.7.3"
}
and then run the abp install-libs
command again.
Hi @mukremin, what is the ABP version of your application?
I've shared the solution with you via mail and it should fix your problem. So, I close the question, if you encounter a problem please feel free to re-open the question.
Best regards.