开发者

Loading a web site to IIS

A developer just send me a runnin开发者_StackOverflowg website files from IIS directory. I want to know if I can run the website on my PC. The file contain "Default.aspx" file, which I assume is of some importance.

I want to know if it is possible to run the website on my PC, I have installed IIS and I placed the file in the wwwroot folder, but unfortunately I dont know how to proceed from here.

Can someone please point me to the right way to continue with this task.

Thanks in advance


First time use of IIS

Now that IIS is running on your system, it should have defaulted to running on port 80. You can test this out by going to http://localhost/

The file you have placed in the wwwroot directory Default.aspx is an ASP.NET application. You need to go to IIS and convert the directory it is stored into a web application.

Now when creating web applications, it is better to create them in another folder other than your wwwroot folder, and in the case of this tutorial it is easier. Move your Default.aspx into a folder named 'webapp', or something of the like.

To convert it into an application, do the following:

  1. In the Server Manager, expand the 'Roles' item in the tree
  2. Expand the 'Web Server (IIS)' item
  3. Click on 'Internet Information Services (IIS) Manager
  4. In the window on the right hand side, you will need to open up your server. In my case, my server is called WIN2008R2. Your server name will be located inside the 'Connections' pane. Expand your server in the tree
  5. Expand the 'Sites' item
  6. Expand your newly created site. There should only be one there, and the item will have a globe next to it
  7. Now right click on your 'webapp' item which will have a folder next to it, and click 'Convert to Application'. Then leave all the properties the same in the window that comes up and click OK.

You have now created a new web application. By going to http://localhost/webapp you should see it working.


You need to configure IIS to host an ASP.NET website.

You can find information about configuring IIS here: http://msdn.microsoft.com/en-us/library/ms178477.aspx

Another option is using the Cassini web server (instead of IIS). You may find it easier to configure: http://ultidev.com/products/cassini/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜