在localhost iis上托管网站 [英] Host website on localhost iis

查看:114
本文介绍了在localhost iis上托管网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我开发了一个asp.net并使用mssql服务器作为后台。

现在我想托管它我的朋友笔记本电脑IIS.So请告诉我有没有必要在笔记本电脑上安装visual studio和sql server。

请帮助我。

Hi,

I have developed a asp.net and used mssql server for background.
Now I want to host it on my friend laptop IIS.So pls tell me is there any need to install visual studio and sql server on there laptop.
Pls help me.

推荐答案

您永远不需要安装Visual Studio。为了您的信息,您不仅可以在没有Visual Studio的情况下运行应用程序,而且不需要它来构建您的解决方案。 C#和VB.NET编译器提供了(可自由重新分发).NET Framework,这是你需要的。



对于SQL服务器,它取决于。您知道它基于客户端 - 服务器技术吗?因此,如果您的应用程序与远程服务器一起使用,那么它已经安装好了。在其他情况下,您也需要提供它。 SQL Server Express怎么样?它也是免费下载和分发的:

http://en.wikipedia.org/wiki/SQL_Server_Express [ ^ ]。



-SA
You never need to install Visual Studio. For your information, not only you can run applications without Visual Studio, but you don't need it to build your solutions. The C# and VB.NET compilers are supplied with (freely re-distributable) .NET Framework, which is what you need.

As to SQL server, it depends. Do you know that it's based on the client-server technology? So, if your application works with the remote server, it is, well… is already installed. In other cases, you need to provide it, too. How about SQL Server Express? It is also freely downloadable and distributable:
http://en.wikipedia.org/wiki/SQL_Server_Express[^].

—SA


你好



你需要在下面安装软件

- IIS

- 与开发应用程序相关的框架(2.0 / 4.0)

- SQL服务器,如果你使用数据库



前进!! :)



谢谢
Hello

U need to install below software
- IIS
- Framework(2.0/4.0) related to develop your application
- SQL server if u used the database

Go Ahead !! :)

Thanks


Hi Nira,



First你需要发布带有发布配置的网站。

然后你需要在朋友的笔记本电脑上安装IIS。要在Windows 7上安装IIS,请按照以下步骤操作:

1.转到控制面板>程序和功能。

2.在左侧窗格中单击打开或关闭Windows功能

3.在列出的功能中查看Internet信息服务和互联网信息服务主机Web核心。

4.只需保留默认配置并单击确定。



现在您已经安装了IIS。

安装您的网站支持的Sql Server版本。

现在将发布网站放在任何驱动器中。

记住不需要安装目标机器上的整个Visual Studio只需安装开发您网站的.net框架版本(注意:您需要明确安装未安装.net框架默认配置的插件。)



现在,是时候在IIS中托管你的网站。

1.转到IIS。

2.选择默认网站。右键点击它然后选择添加应用程序。

3.为网站提供别名,选择应用程序池和物理您网站的路径。

4.现在点击connect as>选择特定用户>提供用户名和密码> OK

5.登录测试设置。如果两个条件都通过,那么您就可以在目标计算机上浏览网站了。



希望这有帮助!
Hi Nira,

First you need to publish the website with release configuration.
Then you need to install the IIS on your friend's laptop. To intall IIS on windows 7 follow these steps.
1. Go to Control panel > Programs and features.
2. In left pane click on Turn windows features on or off.
3. In the Listed features check Internet Information Services and Internet Information Services Hostable Web Core.
4. Just leave the default configuration and click on Ok.

Now you have installed the IIS.
Install Sql Server version that your website supports.
Now place the publish website in any drive.
Remember do not need to install the whole Visual Studio on target machine just install the .net framework version in which your website is developed(note: you need to install addins explicitly that are not installed with .net framework default configuration.)

Now, its time to host your website in IIS.
1.Go to IIS.
2.Select Default website.Right Click on it and select Add Application.
3. Provide Alias for website, choose application pool and physical path of your website.
4. Now click on connect as > select the Specific User > provide username and password >OK
5. Clik on Test Settings.If both condition is passed, then your are ready to browse website on target machine.

Hope this helps!


这篇关于在localhost iis上托管网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆