简体   繁体   English

如何使用Visual Studio 2008部署asp.net应用程序

[英]How can I deploy an asp.net application using Visual Studio 2008

我正在尝试使用IIS发布一个网站,我创建了一个虚拟目录,并在此目录中添加了所有网页并配置了虚拟目录,但我仍然无法运行我的Web应用程序。

Here is the step by step method to deploy an asp.net application 以下是部署asp.net应用程序的分步方法

http://www.15seconds.com/issue/030806.htm http://www.15seconds.com/issue/030806.htm

Please post any error message 请发布任何错误消息

确保您正在运行正确的asp.net版本...检查是否在asp.net选项卡中是否为v 1将其更改为v2

你能不能让我知道错误信息。(检查最小设置,如startUp页面,版本,尝试使用向导发布等)

In Visual studio, click on project , Properties , Web . 在Visual Studio中,单击项目属性Web Under Servers , select Use local IIS Web server , then on Create virtual Directory . 服务器下 ,选择“ 使用本地IIS Web服务器” ,然后选择“ 创建虚拟目录” Now, when you debug, the page should open in IIS, and Visual studio has taken care of most of the grudge work of setting up the IIS, all you will probably have to change is the security settings under IIS. 现在,当你调试时,页面应该在IIS中打开,并且Visual Studio已经处理了设置IIS的大部分怨恨工作,你可能需要改变的只是IIS下的安全设置。 Hope this helps. 希望这可以帮助。

If it is IIS7 check that your application has enough permissions to run: 如果是IIS7,请检查您的应用程序是否具有足够的运行权限:

IIS Actions Pane: IIS操作窗格:

  1. Basic Settings 基本设置
  2. Connect as (be sure to log in with Admin account first to test, then create you own specific user. Least Privilege Principle) 连接为(请务必先使用管理员帐户登录进行测试,然后创建自己的特定用户。最低权限原则)
  3. Test Settings (Authorization and Authentication is Green!) 测试设置(授权和身份验证为绿色!)
  4. Test your webisite 测试您的网站

The question doesn't say what exactly the error is but you mentioned that you just created the virtual directory. 问题并没有说明错误是什么,但你提到你刚刚创建了虚拟目录。 Did you make it an web application? 你有没有把它变成一个Web应用程序? For IIS 6 follow this link - Create and Configure Local ASP.NET Web Sites . 对于IIS 6 ,请单击链接 - “创建和配置本地ASP.NET网站” In IIS7 just right click on it and convert it to application. 在IIS7中,只需右键单击它并将其转换为应用程序。

If its already a website, did you choose the correct framework? 如果它已经是一个网站,你选择了正确的框架吗? normally when you create a website it ill be assigned the default app-pool. 通常当你创建一个网站时,它会被分配默认的应用程序池。 If you have installed multiple dotnet then you might check which framework is in default app-pool. 如果您已经安装了多个dotnet,那么您可以检查哪个框架在默认应用程序池中。 Then change the default app-pool to the correct version that is required by your website, or create a new app-pool. 然后将默认应用程序池更改为您的网站所需的正确版本,或创建新的应用程序池。

There can be multiple reasons so if you could provide the error message then it would be easier to resolve the problem. 可能有多种原因,如果您可以提供错误消息,那么解决问题会更容易。

Thanks. 谢谢。

暂无
暂无

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

相关问题 如何使用.net 3.5在Visual Studio 2008,asp.net Web应用程序中生成QR码? - How to generate QR code in visual studio 2008,asp.net web application using .net 3.5? 我们如何使用Visual Studio 2008发布asp.net网站? - How can we publish an asp.net website with Visual Studio 2008? 我可以在.net 4中部署我的ASP.NET MVC 4应用程序吗? - Can I deploy my ASP.NET MVC 4 application in .net 4 使用Visual Studio 2012在ASP.NET上运行WPF应用程序 - Run WPF application on ASP.NET using Visual Studio 2012 在Windows Server 2008中部署ASP.net应用程序 - Deploy an ASP.net application in windows server 2008 如何使用Visual Studio 2005轻松地将.Net Windows窗体应用程序转换为Asp.net应用程序? - How can I easily turn a .Net Windows Form app into an Asp.net app using Visual Studio 2005? 我们如何在 Visual Studio Code 中调试 ASP.NET MVC Web 应用程序? - How can we debug ASP.NET MVC web application in Visual Studio Code? ASP.NET - 如何使用 Visual Studio 2010 检查我的代码执行所需的毫秒数 - ASP.NET - How can I check how many milliseconds my codes takes to execute, using Visual Studio 2010 如何在不使用 Visual Studio 的情况下直接在 Dockers 容器上运行 ASP.NET Core Web 应用程序 - How to run an ASP.NET Core Web Application on Dockers container directly without using Visual Studio 在Visual Studio 2008中远程调试ASP.NET Web服务 - Remote debugging ASP.NET Web Service in Visual Studio 2008
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM