简体   繁体   English

使用IIS7 Windows 7托管ASP.NET网站

[英]Hosting ASP.NET Web site using IIS7 Windows 7

I have made a small ASP.NET web site using VB 2010 and SQL 2008. 我使用VB 2010和SQL 2008创建了一个小型ASP.NET网站。

But I don't know how to host it on local PC. 但是我不知道如何在本地PC上托管它。

The target PC is running windows 8. 目标PC正在运行Windows 8。

All other PC's are connected it through LAN 所有其他PC通过LAN连接

The system is offline. 系统离线。

But before trying to host my web site on target PC (Windows 8) i want to make sure everything is ok with my site. 但是在尝试将我的网站托管在目标PC(Windows 8)上之前,我想确保我的网站一切正常。

Hence I am first trying to host it on my PC (Windows 7). 因此,我首先尝试将其托管在PC(Windows 7)上。

I don't know anything about hosting on Windows 8 OS. 我对在Windows 8 OS上托管一无所知。

But I tried little bit on Windows 7 OS. 但是我在Windows 7 OS上做了一些尝试。

All I know is I am going to host my site on IIS7. 我所知道的是,我将在IIS7上托管我的网站。

I already enabled IIS7 on my PC (Windows 7). 我已经在PC(Windows 7)上启用了IIS7。

And I pasted all contents in my project folder to C:\\inetpub\\wwwroot 然后将项目文件夹中的所有内容粘贴到C:\\inetpub\\wwwroot

My default page is C:\\inetpub\\wwwroot\\index.aspx 我的默认页面是C:\\inetpub\\wwwroot\\index.aspx

Now how do I add my website to IIS7 and attach database to it. 现在如何将我的网站添加到IIS7并将数据库附加到它。

Do I need to install VB 2010 and SQL 2008 on target PC (Windows 8)? 我是否需要在目标PC(Windows 8)上安装VB 2010和SQL 2008?

Thank you. 谢谢。

Where is the database supposed to live in the end? 数据库到底应该放在哪里? If it is on the Target PC then yes it will need SQL 2008 but not if there is another server that is going to be the database server. 如果它在目标PC上,则是的,它将需要SQL 2008,但是如果有另一台服务器将成为数据库服务器,则不需要。 You aren't clear about whether the site is supposed to all run on one server or if you have a multi-server set up where there is a web server and a separate database server. 您不清楚该站点是否应该全部在一台服务器上运行,或者您是否设置了多服务器(其中有Web服务器和单独的数据库服务器)。

Which version of the .Net Framework does the site use and is that registered with IIS? 该网站使用哪个版本的.Net Framework,并且该版本已在IIS中注册?

Those would be my initial questions as you shouldn't have to install VB 2010 but you would need the Framework to be installed and configured to have this work. 这些将是我最初的问题,因为您不必安装VB 2010,但需要安装和配置Framework才能完成此工作。


EDIT: You will have to install and configure SQL Server 2008 on the machine. 编辑:您将必须在计算机上安装和配置SQL Server 2008。 IIS can use .Net 2.0 or 4.0 and thus be aware of what configuration you want to run so that you don't wind up having issues. IIS可以使用.Net 2.0或4.0,因此请注意要运行的配置,以免出现问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM