如何在本地运行 ASP.NET C# Web 应用程序?

3

本文介绍了如何在本地运行 ASP.NET C# Web 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

对于一个 Web 应用程序,我正在使用 ASP.NET C#(OS-Windows7、.NET 4)并且任务已经完成.但我不知道如何在 Windows7 以及 Server 2008 中本地运行它(.NET 4 和 IIS 安装在服务器 2008 中).而且我必须在两个平台中运行它.所以请提供任何帮助.非常感谢.

For a web application I am using ASP.NET C# (OS- Windows7, .NET 4) and the task has done. But I don't know how to run it locally in Windows7 as well as in Server 2008(.NET 4 and IIS installed in server 2008). And I have to run it in both the platfrom. So any help please. Thanks a lot.

推荐答案

如果你的 Win 7 机器上安装了 IIS 7,那么:

If you have IIS 7 installed on your Win 7 machine, then:

  1. 在 VS.NET 中打开你的项目
  2. 在解决方案资源管理器中右键单击项目节点并选择属性"
  3. 切换到网络"标签.
  4. 选择单选使用本地 IIS 网络服务器"
  5. 点击创建虚拟目录"按钮

这负责让您的应用程序使用 IIS 运行.您还可以像这样开发/调试 ASP.NET 应用程序.

That takes care of getting your application to run using IIS. You can also develop/debug ASP.NET applications like this.

关于部署 ASP.NET 应用程序,请确保已安装所有先决条件.您需要使用 IIS 管理器创建网站并将该网站与应用程序池相关联.

As regards, deploying your ASP.NET application, after making sure all pre-requisites are installed. You'll need to use IIS Manager to create a website and associate that website to an application pool.

这篇关于如何在本地运行 ASP.NET C# Web 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

C# 中的多播委托奇怪行为?
Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)...
2023-11-11 C#/.NET开发问题
6

参数计数与调用不匹配?
Parameter count mismatch with Invoke?(参数计数与调用不匹配?)...
2023-11-11 C#/.NET开发问题
26

如何将代表存储在列表中
How to store delegates in a List(如何将代表存储在列表中)...
2023-11-11 C#/.NET开发问题
6

代表如何工作(在后台)?
How delegates work (in the background)?(代表如何工作(在后台)?)...
2023-11-11 C#/.NET开发问题
5

没有 EndInvoke 的 C# 异步调用?
C# Asynchronous call without EndInvoke?(没有 EndInvoke 的 C# 异步调用?)...
2023-11-11 C#/.NET开发问题
2

Delegate.CreateDelegate() 和泛型:错误绑定到目标方法
Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)...
2023-11-11 C#/.NET开发问题
14