I rookie, the first release of the Web site, search on the internet for a long time also did not find more detailed about the VS2010 publishing site of the post, through a combination of online the great God of the post himself, and now successfully deployed in the server, the following on my experience and share with you.
Development tools for mysql+vs2010, the following to develop this machine as an example of how to use this machine as a server, the site published on the computer. Published on the server will be described in detail in the next post.
A: Make sure that your computer has IIS installed, if not, please install first, the specific installation steps on the Internet there are many, there is not much to say.
Two: Open vs, open the project you want to publish, in the solution Manager you can see the following structure
Select the Web, right-click Regenerate, regenerate and continue right-click to publish, the following interface will appear (I used the three layer model, do not need to tube the other, just to regenerate the web, the other files will be in the way of intermediate price DLL in the published site)
Publish method Select the file system, the target location can be selected to any place on your computer, and then click on the release, after the successful release will be in the corresponding folder to generate the following files
Three. Here, the website is published, next configure IIS, I use IIS7.0
Open IIS, click the Web site folder, right-click on the site, add site
Website Name: You can have the name you want.
Application pool: The best choice of classic application pool, why I do not know, hey.
Physical path: Select the folder you just posted the site to: mine is f:/website.
IP address: With this machine on the line, the port default 80, if necessary can also be changed to another port
Hostname: That is, the domain name, if there can be filled, no words for empty can also
After filling in OK, ok a website has been posted in your computer, through the browser input just typed IP address can be accessed.
Note: There may be some problems after the release, there are answers on the Internet, you can give me a message, hey, I met a 64-bit issue, and finally saw the online great God's post to solve the problem, I hope this article can help you!
Visual Studio2010 Publishing Site (i)