just to close the loop on my earlier post, I went back to my original project and ran dotnet ef database update and now it works. I no longer get the 500 Internal Server Error on the /GetAll endpoint, I see the login page when I go to <a class="postlink" href="http://localhost:4200/">http://localhost:4200/</a> and I am able to login with the default admin credentials.
Hope this helps others! -Brian
I think I may have figured it out. I downloaded a new gemplate and went back to the instructions page here: <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Zero/Startup-Template-Angular">https://aspnetboilerplate.com/Pages/Doc ... te-Angular</a>
and made sure I followed the steps as closely as possible. I think previously I had skipped this step:
"In order to create your database, open command prompt and move to root folder of EntityFramework project in your solution. Then run "dotnet ef database update" command.""
so I ran that first. then I went into my appsettings.json and update my connectionString from localhost to localhost\sqlexpress
Then continued on with the angular ui project, running "npm install" and then "npm start", and now I see the expected login page here: <a class="postlink" href="http://localhost:4200/account/login">http://localhost:4200/account/login</a>
and checking the Network tab in the Chrome Developer Tools, for the previous /GetAll endpoint request that was failing, I now see a successful 200 response.
and I am able to login successfully with the default admin credentials.
the only other potential step I took that was different was that I made sure that every time I opened Visual Studio, that I opened with Administrator privileges (I need to set that up to open automatically)
sunilpaul033 - confirm that you ran the dotnet ef database update command noted in the setup instructions. That appears to be the step that I had forgotten previously. I am going to go back to the first project I downloaded and see if running that command fixes my error.
Hi - I am also encountering the same issue. I compile and start the asp.net core server and the Swagger UI starts. I then compile and start the angular UI using npm start, and then then I browse to <a class="postlink" href="http://localhost:4200/">http://localhost:4200/</a>, I immediately encounter an "internal server error" message in the browser.
Aside from modifying the connectionString to use localhost\sqlexpress, I haven't changed anything else.
I am following the instructions documented here: <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Zero/Startup-Template-Angular">https://aspnetboilerplate.com/Pages/Doc ... te-Angular</a>
also to note - I am also seeing an Internal Server Error response when I attempt to test the Token Based Authentication per the documentation. using the Restlet Client Chrome Extension, and submitting a POST request to localhost:21021/api/TokenAuth/Authenticate with the correct Content-Type and request body, I get the same response:
and lastly - I don't see anything in the log4net logs or in the Visual Studio 2017 console output.
Thanks for any help you can offer. -Brian