how to load webapplication on server
I have made a web app开发者_运维知识库lication using Visual studio 2008. till now it was running on my local host..
Now i want to load it onto the server so that it can run on my company server.
How do i do that..??
Thanks
In visual studio:
- Under the Build menu, select Publish
- In the publish dialog, select a location to publish your application to ex: \\server\c$\inetpub\wwwroot
- Set your publish options. I reccomend using the "Only files needed to run this application" setting
- Click the Publish button
You will have to mark your deployment directory as an application in IIS for IIS to run your code. See this MSDN article for details on how to do this.
You just need to copy it into the IIS directory on that server, usually c:\inetpub\wwwroot. Make sure you have asp.net installed.
You can use the project menu and copy it to a remote server (specifically the machine that will host this project, in addition a web server). Or you can just go to the remote machine, add a new site and store the .aspx pages and all related images on the web servers inetpub\wwwroot folder.
精彩评论