You need to publish it first by selecting your project in Visual studio. After that, you need to create a site on IIS. In some cases, you may find it difficult to display your database, for which you need to add permission on the database server.
source share