DEV Community

Discussion on: Blazor Server CRUD App Using Visual Studio Code

Collapse
pcoganwu profile image
pcoganwu

Thanks Rinesh for this tutorial. I am have problem starting the API project, it giving me an exception of type 'System.ArgumentNullException'. I ran the project using Visual Studio and it is working find in Visual Studio. See the attached image for the error details. Any suggesting from your end will help. I am using .Net5.0

Collapse
rineshpk profile image
rinesh Author

The project is in .Net Core 3.1. If you are using .Net5.0, there may be some compatibility issues. Also, I couldn't see any images attached, for the issue details. Let me check with .Net5 and I will update you.

Collapse
pcoganwu profile image
pcoganwu

Thanks Rinesh. I also ran the project in .Net Core 3.1, I had the same issue. I will upload the file again. When trying to load the Employee data from the API, it is saying the connection string from the appsettings.json is null. The file is uploaded to this link dev-to-uploads.s3.amazonaws.com/i/...

Thread Thread
rineshpk profile image
rinesh Author

Did you checked appsettings.json?. It should contain a DefaultConnection sting as shown here dev-to-uploads.s3.amazonaws.com/i/...

Thread Thread
pcoganwu profile image
pcoganwu

Yes my appsettings.json have a DefaultConnection. See the link dev-to-uploads.s3.amazonaws.com/i/...