Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 18th, 2005, 03:16 PM
Registered User
 
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I ran aspnet_regiis.exe -i (once I found where it was) and the cmd window popped up and said it was starting asp.net. I thought to myself, why is it starting now? Anyway, after awhile the cmd window disappeared and I tried running my aspx file and ... it worked! Thanks Greg!!

Still, I wonder why i had to do that? I thought ASP.NET was already running after booting up. I guess that means I have to run that after I boot, whenever I do ASP.NET development.

Btw, I think I remember re-installing .net framework 1.1 and the .net sdk 1.1 after installing IIS, because I did in fact do the reverse (reverse being IIS after .NET), but like I said, it still didn't work until I ran aspnet_regiis.exe -i.

Again, thanks a ton!!

 
Old March 18th, 2005, 03:36 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

It is because once you install IIS you setup the links between the extentsions and IIS, by installing .Net first you don't have the ASP.Net mappings as the install can't locate IIS to install the pointers in, which is basically all the re-reg function does.

In the same way you can't open a .DOC file on a new PC until you install Office although it is still a Windows PC.

<caveat> I know the example is not 'strictly' true, but you get the idea </caveat>
 
Old March 22nd, 2005, 10:25 PM
Registered User
 
Join Date: Mar 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey greg,
   Thanks for the info. I shall try it on my system at work and shall let u know what happened.
    Femina.

Femina
 
Old March 26th, 2005, 07:26 AM
Authorized User
 
Join Date: Mar 2005
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey thanks Greg and Imar who directed me to this page. I had exactly the same problems and when I ran aspnet_regiis.exe -i the scripts ran perfectly. Thanks alot guys.



 
Old March 28th, 2005, 11:53 AM
Registered User
 
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm a complete and total idiot, so could someone explain a bit more how to run this command? Do I just go the command line and type it? Currently, I'm using Web Matrix to write and run my code, but I'd love to skip that step and this sounds like it might be the way to do it.
 
Old March 28th, 2005, 01:21 PM
Authorized User
 
Join Date: Mar 2005
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I would type aspnet_regiis.exe in google and you should come up with some Mircosoft pages. That's what I done. I had to go into the Dos windows

 
Old April 1st, 2005, 05:09 AM
Registered User
 
Join Date: Apr 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Femmina
i got the same problem running a 2003server box have the frame work installed and i still get the page cannot be found error? dont know why. ill attach the documentation from microsoft:)


The following command installs the script maps pointing to the ASP.NET version associated with Aspnet_regiis.exe to the SampleApp1 application and all its sub-applications.

Aspnet_regiis -s W3SVC/1/ROOT/SampleApp1
The following command only updates the script maps for the SampleApp1 application, without affecting applications in subdirectories.

Aspnet_regiis -sn W3SVC/1/ROOT/SampleApp1
The following command installs the ASP.NET version associated with the tool and updates the script maps of all existing ASP.NET applications. Note that only applications that are currently mapped to an earlier version of ASP.NET are affected.

Aspnet_regiis -i
The following command installs the ASP.NET version associated with the tool, but does not update the script maps of existing ASP.NET applications

Aspnet_regiis -ir
The following command displays the status and installation path of all versions of ASP.NET installed on the computer.

Aspnet_regiis -lv


 
Old April 1st, 2005, 05:39 AM
Registered User
 
Join Date: Apr 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok i got it. hope this works for you too
in iis goto your web service extensions and enable asp.net
as well as doing the aspnet_regiis -i this should fix it
best of luck


 
Old April 16th, 2005, 12:32 PM
Registered User
 
Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Everyone.

I have a question regarding ASP. I am writing a page that simply takes in information in an html textarea, and through ASP, checks the data against an ms-access database table. If the information is correct, the asp page redirects you to another page, otherwise it goes to a page stating an incorrect password was provided.

I have IIS installed on my OS (Windows XP Pro). I have created a virtual directory pointing to the directory I have my html and asp files in. When I try and enter information into the password area, instead of processing the code and opening a connection to the DB, the entire asp page (both html and asp code) are displayed. Any suggestions as to what I'm doing wrong?

 
Old April 16th, 2005, 01:01 PM
Registered User
 
Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Guys, don't worry about my last post, I figured it out.







Similar Threads
Thread Thread Starter Forum Replies Last Post
Developing pages with IIS Clem BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 1 November 25th, 2008 12:02 AM
Cannot view asp pages with Win XP Pro (IIS 5.1) amonte Classic ASP Basics 6 January 23rd, 2005 06:16 PM
Hosting ASP .NET pages outside IIS sureshsundar007 General .NET 6 June 9th, 2004 12:09 AM
IIS Problem with ASP Pages rodmcleay Classic ASP Basics 2 April 18th, 2004 08:47 PM
Problems displaying web pages using IIS kathryne Classic ASP Professional 1 November 14th, 2003 12:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.