I am new to web developing and some how managed to create one web page with SQL database. Now I would like to deploy my website in localhost server by that users who are having access to that server can use the website. I did some search and deployed website in development computer by creating an application in IIS server inetmgr
however I don't know how to deploy in production system. Please guide me with possible and effective method by that I can proceed further.Deployment to test
Asked
Active
Viewed 1,221 times
1
-
Unfortunately, this is just to broad for SO. It sounds like you need to do some research and maybe read some tutorials. There are lots of guides for doing this exact thing using Microsoft development tools. – Mar 08 '19 at 15:11
-
2Thanks for your response, yes i spent more time in locating exact article to follow but it ends up in confusion, please suggest me some useful links to follow – Mar 08 '19 at 15:18
-
SO is not a good tutorial site. If you want help you need to tell us what research you have done, and the exact problem you are having. But as it stands, this is just not on topic for SO. To see why, you can take the [tour]. – Mar 08 '19 at 15:20
1 Answers
1
Right-click your project, select Publish.
- Create a profile name
- On Connection tab, set the Deploy method to File System
- Put the file location you want to publish to
- On Settings tab, put in the database connection strings if necessary
- Save
- Right-click project, Publish
- Go to the place where your site was published.
- Copy all files in that folder and paste it in the IIS web server's virtual directory where your app will be located.

Charles Owen
- 2,403
- 1
- 14
- 25
-
2Thanks @Charles Owen, how could the database be accessed. I am using database first method – Mar 11 '19 at 10:31
-
You need to have the connection string to the database and an EntityFramework context defined in your web.config. I'm assuming your database exists remotely on the network. While you could create a local db in your project and publish that, I think you're much better off with the remote database. I'll post an example tomorrow. – Charles Owen Mar 16 '19 at 02:42