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 June 18th, 2005, 02:28 PM
Registered User
 
Join Date: Jun 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Setting up Virtual Dir in IIS

Hello,
I followed the Beginning ASP.NET with C# book to setup my Virtual Directory. However when I tried viewing the pages using IE, none of the *.aspx pages don't work. The first example doesn't show the time. What I noticed on my IIS window is that the icon of my BegASPNET virtual folder is different than what's in the book. Below is the screen shot:

https://www.suratman.net/ISS_ScreenShot.jpg

In the book, the icon of the BegASPNET folder looks like the icon of _vti_bin folder on my screen shot. What did I miss here? Help please.
Thanks.



 
Old June 18th, 2005, 02:30 PM
Registered User
 
Join Date: Jun 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

mis-type on the website address:
http://www.suratman.net/IIS_ScreenShot.jpg

 
Old June 19th, 2005, 08:57 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

My experience says that your IIS display is correct. It should look like that. That's the icon for a virtual application.

Are you sure you have .NET install correctly?

When you say your ASPX pages don't work, what is actually happening?

-Peter
 
Old June 19th, 2005, 11:34 PM
Registered User
 
Join Date: Jun 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Peter,
Thanks for the reply.

You're right my .NET was not installed correctly. When I load this .aspx file, the time was not displayed:

<script language="c#" runat="server">
void Page_Load()
{
  time.Text=DateTime.Now.Hour.ToString() + ":" +
             DateTime.Now.Minute.ToString() + ":" +
             DateTime.Now.Second.ToString();
}
</script>

<html>
<head><title>The Punctual Web Server</title></head>
<body>
  <h1>Welcome</h1>
  In WebServerLand the time is currently:
<asp:label id="time" runat="server" />
</body>
</html>

I don't know what was wrong, but I just reinstalled it, and now it
WORKS :).

The only difference is the path where I installed .NET. Before it was installed in C:\Program Files\Microsoft.NET\SDK, now it is in C:\Program Files\Microsoft.NET\FrameworkSDK. This shouldn't cause problems, should it?

Thanks once again.

 
Old June 20th, 2005, 07:57 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

It shouldn't cause a problem. The actual framework should be in c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322.

The directory you showed is the software development kit directory. You may have first installed a different version and MS changed the default path between versions.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
setting up virtual studio MarkNorton ASP.NET 2.0 Basics 4 March 22nd, 2007 05:44 AM
Setting up IIS dfrancis BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 12 November 5th, 2006 03:36 PM
Cant open WroxUnited Virtual Dir bcr212 ASP.NET 2.0 Basics 3 May 11th, 2006 05:48 AM
iis virtual directory management snap in mattock ASP.NET 2.0 Basics 1 March 16th, 2006 08:19 AM
adsi and iis virtual directories gnubar General .NET 0 February 24th, 2005 11:16 AM





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