帮助部署asp.net项目 [英] Help deploying asp.net project

查看:70
本文介绍了帮助部署asp.net项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经用c#和asp.net(.net 3.5框架)开发了一个Web应用程序.我现在正在尝试将该应用程序实时"部署到我的本地计算机上,以确保其顺利运行等,然后再实际部署到实时系统上以供其他用户访问.我已经将Web安装程序项目(QuantumWeb)作为我的项目的一部分,并在QuantumWeb SetUp的Web应用程序文件夹中添加了内容文件和主输出文件.

我使用安装地址"弹出窗口的默认值(站点:默认网站/虚拟目录:QuantumWeb/应用程序池:DefualtAppPool)在本地运行了安装程序,该目录创建了以下目录:C:\ inetpub \ wwwroot \ QuantumWeb

在IIS中,我已将默认文档设置为Login.aspx,但是当我尝试通过以下方式浏览到该登录页面时:http://localhost/quantumweb/login.aspx我收到以下错误,但我不明白为什么:

"/"应用程序中的服务器错误.

找不到资源.

说明:HTTP404.您正在寻找的资源(或其依赖项之一)可能已被删除,名称更改或暂时不可用.请查看以下网址,并确保其拼写正确.

要求的网址:/login.aspx

版本信息:Microsoft .NET Framework版本:2.0.50727.4927; ASP.NET版本:2.0.50727.4927


我对此进行了一些谷歌搜索,到目前为止没有任何工作,所以我希望这里的人可以向我提供一些有洞察力的说明,例如设置等,或者为我指出解决问题的正确方向这个问题.

在此先感谢

Hi I''ve developed a web application in c# and asp.net (.net 3.5 framework). I am now trying to deploy this application ''live'' onto my local machine to ensure that it runs smoothly etc. before actually deploying onto the live system for other users to access. I''ve created web setup project(QuantumWeb) as part of my Project and added the Content files and Primary output files in the Web Application Folder of the QuantumWeb SetUp.

I''ve ran the setup on my local using the default values for the Installation Address pop-up (Site: Default Web Site / Virtual Directory: QuantumWeb / App Pool: DefualtAppPool) which creates the following directory: C:\inetpub\wwwroot\QuantumWeb

Within IIS i have set the Default Document to Login.aspx but when I try to browse to this login page via: http://localhost/quantumweb/login.aspx I am getting the following error and I do not understand why:

Server Error in ''/'' Application.

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /login.aspx

Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927


I''ve did a bit of googling on this and so far nothing has worked so i''m hoping that someone here can provide me with some insightful instructions of things to check i.e. settings etc or else point me in the right direction to resolving this issue.

thanks in advance

推荐答案

hi,

发生这种情况是因为您的默认应用程序池正在使用.net framework v 2.0
并且您的项目是使用3.5开发的.

检查.net framework 3.5是否在IIS服务器应用程序池中可用,然后对您的应用程序使用相同的池

否则,您可以在服务器上安装和注册Framework 3.5

此链接 [
hi ,

this is happen because your default application pool is using .net framework v 2.0
and your project is developed using 3.5.

check .net framework 3.5 is available in your IIS sever application pool then use the same pool for your application

otherwise you can install and register framework 3.5 on your server

this link [^] will help you


进入IIS管理器,选择目录QuantumWeb,单击功能视图,打开目录浏览"并启用它.然后重新启动IIS,然后浏览.这可能会有所帮助.让我知道它是否对您有帮助.
Go into IIS manager, select your directory QuantumWeb, click on Feature view,open ''Directory browsing'' and enabled it. then restart your IIS and then browse. it may be help. let me know if it helps you.


这篇关于帮助部署asp.net项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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