473,394 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Configuring ASP.NET 2.0 Application Folders in IIS 5.0

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
Jun 27 '07 #1
11 1588
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

Jun 27 '07 #2

* 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.
Jun 27 '07 #3
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.
Jun 27 '07 #4
I've never had to do that for anywebsite.

..
"Jad" <ja***@newsgroup.nospamwrote in message news:D9**********************************@microsof t.com...
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.

Jun 27 '07 #5
Hi Jad,

For ASP.NET and ASP, they can work together side by side in the same IIS
application virtual directory since they're using the different ISAPI
extensions. And for IIS5, ASP.NET requests will be executed in a dedicated
aspnet_wp.exe process after forwarded from IIS process while ASP requests
are still being processed in IIS process(depend on the isolation level of
the virtual directory). Here is a web article describe the process model
and configuration mapping for ASP.NET application in IIS:

#ASP.NET Internals ¨C IIS and the Process Model
http://dotnetslackers.com/articles/i...heProcessModel.
aspx

For your problem, you got 404 error when visiting the ASP.NET page, I think
you can check the following things:

** Create some other virtual directory(application) under the default SITE
to see whether you can make ASP.NET page working in it.

** check the problem virtual directory's application extension
mappings(through the home directory tab's "configuration" button), you can
refer to the above article.

In addition, since you mentioned that the asp.net page can work before you
make the virtual directory an "application", you can change it back to a
normal virtual directory and test it again. If that still work, try
comparing the upper level(site root)'s ASP.NET extension mapping or other
setting to see whether there is anything different.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.



Jun 28 '07 #6
Hi Jad,

How you doing? Have you got progress on this issue or does the sugestion in
previous messages help you some? If there is anything else need help,
please feel free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 2 '07 #7
Thanks for checking back. I am actually having to work the issue with a
server admin. We are altogether stumped. Unfortunately, I won't know if
we've made any progress until the admin has more time to sit down with me and
work the issue.

Thanks again for all of your feedback.
--
- Jad
"Steven Cheng[MSFT]" wrote:
Hi Jad,

How you doing? Have you got progress on this issue or does the sugestion in
previous messages help you some? If there is anything else need help,
please feel free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 2 '07 #8
Hi Jad,

Thanks for the reply and if you have any new update later or anything we
can help, welcome to discuss here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 3 '07 #9
RH
I just struggled with this issue and found this posting. I had already
followed the suggested steps listed above. The solution for me was to
enable the web extensions for both ASP and ASP.netV2.0 in inetmgr.exe.

*** Sent via Developersdex http://www.developersdex.com ***
Jul 6 '07 #10
Thank you for your input RH,

Yes, for IIS 6, the "web service extension" is a possible cause. However,
for IIS5, there is no web service extension setting. Anyway, there does
exists something in IIS we need to take care for such scenario.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 9 '07 #11


thanks all of family of .net

*** Sent via Developersdex http://www.developersdex.com ***
Jul 18 '07 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Ed Stevens | last post by:
A tale of woe, and a question . . . Last week my boss said to me "we've installed DB2 Connect on this Solaris box. Make it work." Now, I've barely seen DB2 Connect on Windows, having fumbled...
5
by: Robert Magnusson | last post by:
Hi All, This is sure to be an easy question. I am wondering what the accepted standard is for referencing a sub-folder below the application.exe folder? In VB6 you simply used App.Path and...
3
by: Joe | last post by:
Hi, I am new to creating .asp web sites and have a basic question. I have a website with .html pages running on an IIS server with .Net installed. I also have a couple of forms on the website....
1
by: gh0st54 | last post by:
Hi I would like to know how to configure an application folder from .net code I would like for my site ( asp.net in c# ) to be able to create a folder from asp.net (this part i know)...
2
by: | last post by:
Hello, I have an ASP.Net c# web application which contains 4 separate folders, each of these folders contains a default.aspx page, I am pointing several domains to different sections of this...
6
by: Martin Bischoff | last post by:
Hi, I'm creating temporary directories in my web app (e.g. ~/data/temp/temp123) to allow users to upload files. When I later delete these directories (from the code behind), the application...
3
by: Ray Booysen | last post by:
In our application, we merge documents for our clients. The directory structure is as follows: webroot ->bin ->Documents ->Company -> Company X
4
by: - HAL9000 | last post by:
When un-installing an application... Is it normal practice to write a special program that erases all the files and folders for all the users of an application that reads and writes to...
5
markrawlingson
by: markrawlingson | last post by:
Hey guys, Having a bit of a complicated issue here so please bare with me while I explain. I'm also not a system admin and don't know a whole lot about IIS, so i apologize in advance. I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.