在IIS 5.0中配置ASP.NET 2.0应用程序文件夹 [英] Configuring ASP.NET 2.0 Application Folders in IIS 5.0

查看:65
本文介绍了在IIS 5.0中配置ASP.NET 2.0应用程序文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力将一个新的.NET 2.0网页添加到目前只使用经典ASP页面的网站上,并通过IIS 5.0进行管理。服务器安装了.NET 2.0框架,我试图将ASP.NET 2.0 aspx

页面部署到网站主目录下的现有文件夹中。但是,更改文件夹的属性后,

,从而创建一个Web应用程序,当浏览到部署在那里的* .aspx文件时,我获得了一个HTTP 404

错误(无法找到资源)。


配置中的ASP.NET选项卡确实显示了Web应用程序

运行.NET 2.0框架。


以下是一些更多细节:


*网站主目录下的预先存在的文件夹是我点击属性的地方,在目录选项卡上我单击了创建按钮,以便

创建Web应用程序。

*创建Web之前在IIS中的应用程序,我将一个HelloWorld.aspx

文件复制到目标目录,并且能够成功浏览到它。

关于我可能遗漏的任何想法?


如有必要,我会提供更多细节。


-

- Jad

解决方案

1)您无法在与.NET Web应用程序相同的文件夹下运行ASP应用程序

2)为您的asp.net Web应用程序创建一个新文件夹

3)确保你的asp.net web文件夹配置为在.NET 2.0

框架下运行。


" Jad" < ja *** @ newsgroup.nospamwrote in message

news:6A *************************** ******* @ microsof t.com ...


我正在努力将一个新的.NET 2.0网页添加到一个网站上目前是b
$ b只使用经典的ASP页面,并通过IIS 5.0进行管理。服务器

安装了.NET 2.0框架,我正在尝试部署ASP.NET 2.0

aspx

页面到网站主目录下的现有文件夹。但是,更改文件夹的属性后,

,因此在浏览* .aspx文件时创建一个web

应用程序,

部署在那里,我收到HTTP 404

错误(无法找到资源)。


配置中的ASP.NET选项卡确实显示了Web应用程序是运行.NET 2.0框架的



以下是一些更多细节:


*预售在网站主目录下的现有文件夹是我点击属性的地方,在目录选项卡上我点击了创建按钮,以便

创建网络应用程序。

*在IIS中创建Web应用程序之前,我将一个HelloWorld.aspx

文件复制到目标目录,并且能够成功浏览到它。

。 br />

关于我可能遗失的任何想法?


如有必要,我会提供更多细节。

-

- Jad





*在IIS中创建Web应用程序之前,我复制了一个HelloWorld.aspx

文件到目标目录,并能够成功浏览到它。



为什么要更改文件夹的属性?


不是必需的。


因为我试图部署一个ASP.NET 2.0网页,它将执行编译成服务器上的DLL的
代码。因此,我们必须更改IIS中文件夹的

属性,创建一个Application文件夹。

-

- Jad

" Jon Paal [MSMD]"写道:


>


*在IIS中创建Web应用程序之前,我复制了一个HelloWorld。 aspx

文件到目标目录并能够成功浏览到它。



为什么要更改文件夹的属性?


不是必需的。


I''m working on adding a new .NET 2.0 web page to a web site that is currently
using only classic ASP pages and is administered via IIS 5.0. The server has
the .NET 2.0 framework installed and I am trying to deploy ASP.NET 2.0 aspx
pages to an existing folder under the web site''s home directory. However,
after changing the properties of the folder, thus creating a web application,
when browsing to the *.aspx file that is deployed there, I get an HTTP 404
error (resource cannot be found).

The ASP.NET tab in the configuration does show the web application to be
running the .NET 2.0 framework.

Here are some more details:

* The pre-existing folder under the web site home directory is where I
clicked properties and on the Directory tab I clicked the Create button to
create the web application.
* Before creating the web application in IIS, I copied a HelloWorld.aspx
file out to the target directory and was able to browse to it successfully.
Any ideas as to what I may be missing?

I''ll supply more details if necessary.

--
- Jad

解决方案

1) you cannot run an ASP app under the same folder as an .NET web app
2) create a new folder for your asp.net web app
3) make sure your asp.net web folder is configured to run under .NET 2.0
framework.


"Jad" <ja***@newsgroup.nospamwrote in message
news:6A**********************************@microsof t.com...

I''m working on adding a new .NET 2.0 web page to a web site that is
currently
using only classic ASP pages and is administered via IIS 5.0. The server
has
the .NET 2.0 framework installed and I am trying to deploy ASP.NET 2.0
aspx
pages to an existing folder under the web site''s home directory. However,
after changing the properties of the folder, thus creating a web
application,
when browsing to the *.aspx file that is deployed there, I get an HTTP 404
error (resource cannot be found).

The ASP.NET tab in the configuration does show the web application to be
running the .NET 2.0 framework.

Here are some more details:

* The pre-existing folder under the web site home directory is where I
clicked properties and on the Directory tab I clicked the Create button to
create the web application.
* Before creating the web application in IIS, I copied a HelloWorld.aspx
file out to the target directory and was able to browse to it
successfully.
Any ideas as to what I may be missing?

I''ll supply more details if necessary.

--
- Jad




* Before creating the web application in IIS, I copied a HelloWorld.aspx
file out to the target directory and was able to browse to it successfully.

why change proprties of folder ?

shouldn''t be necessary.


Because I am trying to deploy an ASP.NET 2.0 web page, it will be executing
code compiled into DLLs on the server. Therefore, we must change the
property of the folder in IIS, creating an Application folder.
--
- Jad
"Jon Paal [MSMD]" wrote:

>

* Before creating the web application in IIS, I copied a HelloWorld.aspx
file out to the target directory and was able to browse to it successfully.


why change proprties of folder ?

shouldn''t be necessary.


这篇关于在IIS 5.0中配置ASP.NET 2.0应用程序文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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