How can I connect a SQL database to a webhosted site with IIS on the web?

I am building a test web application in asp.net core and I have hosted my site from laptop. Everything seems good but when I go to access any database related page the page just loads for a bit until it gives me an error and prompts me to go developer mode to see more relevant information(which I can’t because the site is not on localhost it is on the web). I tried to change my connection string to different iterations it did not work, the site works locally with IIS express. Frankly I do not know what to do the documentation seems to be not existent so I would appreciate your help. You can test the website at http://digital60.ddnsking.com/.

Compare password of current user with model property?

This might be a really dumb question (I’m new to ASP.NET). Anyways, I’m making a web application for practice that will manage students and their courses of a school. The information of the student’s courses, student id number, name, grade etc. will be stored on Student objects in the database. When an admin adds a … Read more

How to assign default value to a foreign key using fluent api?

I created two models using fluent api in my dbcontext(ToDo, Category) what I want to achieve is that whenever I create a new ToDo object, the default value for CategoryId is specified as an id for the ‘Default’ category that I successfully created previously, I still need that relationship to be non optional to be able to use cascade deletion, but so that if not specified in a request body, the value of categoryid always assigns to 1.