如何更改ASP.NET网站以使用Cassini服务器? [英] How do you change an ASP.NET website to use Cassini server?

查看:198
本文介绍了如何更改ASP.NET网站以使用Cassini服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个ASP.NET网站,由于某种原因,它不使用Visual StudioCassini迷你服务器,但需要安装和设置IIS。它运行为http:// localhost。

I am working on an ASP.NET web site that for some reason does not use the Visual Studio "Cassini" mini-server but requires that IIS be installed and set up. It runs as "http://localhost".

我想更改此信息,但无法找到有关如何更改信息的信息。某个地方有房产吗?我查看了项目的Property Pages,但它只显示了两个服务器选项:Default Server和Custom Server。默认服务器被选中,自定义服务器显示为灰色。

I would like to change this, but can't find information as to how to change it. Is there a property somewhere? I looked in the Property Pages of the project, but it just shows two options for server : Default Server and Custom Server. Default Server is selected and Custom Server is grayed out.

我注意到我的其他网站项目,使用Cassini,也检查了默认服务器,所以不是它。

I notice that my other web site projects, that DO use Cassini, also have Default Server checked, so that's not it.

这是一个在Visual Studio 2010中运行的.NET 3.5项目,所以它不是一个非常古老的项目。此外,它似乎没有项目文件。

It's a .NET 3.5 project that runs in Visual Studio 2010, so it's not a really old project. Also, it doesn't seem to have a project file.

我只是想知道是否有人知道这个功能最初是如何设置/未设置的。

I am just wondering if anyone knows how this feature is originally set/unset.

推荐答案

在Visual Studio中,如果右键单击项目,并查看属性,则应该看到Web部分。在这里,您可以选择使用Visual Studio开发服务器选项。

In Visual Studio, if you right click your project, and look at Properties, you should see a Web section. In here, you can select the option "Use Visual Studio Development Server".

另请注意,在此处您可以选择使用IIS或使用自定义Web服务器。

Also note that in here you can choose to use IIS, or use a Custom Web Server.

您是否看到这些选项?如果没有,则可能是您有一个Web站点项目而不是Web应用程序项目。

Are you seeing these options? If not then it's likely you have a Web Site project and not a Web Application project.

您的项目也可能构建到映射到IIS中的虚拟目录的目录中。在这种情况下,Visual Studio将尝试使用IIS - 请参阅 http:// msdn。 microsoft.com/en-us/library/ckk1e6z4.aspx

It's also possible that your project is being built to a directory that maps onto a Virtual Directory in IIS. In this instance, Visual Studio will attempt to use IIS - see http://msdn.microsoft.com/en-us/library/ckk1e6z4.aspx

这篇关于如何更改ASP.NET网站以使用Cassini服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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