Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 April 27th, 2008, 11:10 AM
Authorized User
 
Join Date: Apr 2008
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Imar
 Hi aspcoder,

What do you mean with copy the files to the root? Do you want to run PlanetWrox under IIS?

IIS is by default set up to serve files from C:\inetpub\wwwroot. So, a file like C:\inetpub\wwwroot\Test.aspx can be requested as http://localhost/Test.aspx. IIS maps Test.aspx to a file in C:\inetpub\wwwroot and serves that file.

But have you confirmed IIS is set up OK? Are you sure you mean to request .asp files as the book deals with ASPX files.

Can you explain a bit more about your problem, your setup and what you already have in place?

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
IIS is set up OK. For exmaple. If i have a file in wwwroot called, default.aspx and i request it in my browser by typing the following in the location bar "localhost/default.aspx, it throws an error. Is there some setting im not aware of, as I'm mainly familiar with apache.

 
Old April 27th, 2008, 11:30 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

What error does it give you? Take a look here: http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=264 to get the most detailed error information.

BTW, no need to quote the entire post. This Wrox forum is threaded by design so it's already easy to see who posted what. Quoting the entre previous post makes it more difficult to focus on any new content....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old April 27th, 2008, 12:29 PM
Authorized User
 
Join Date: Apr 2008
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Default

when i type localhost/default.aspx in my location bar here is the error message Imar:

(the file is in the wwwroot folder)

HTTP Error 404.3 - Not Found

Description: The page you are requesting cannot be served because of the Multipurpose Internet Mail Extensions (MIME) map policy that is configured on the Web server. The page you requested has a file name extension that is not recognized, and is not allowed.

 
Old April 27th, 2008, 12:50 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Does this apply: http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=254

Also, are you sure IIS is setup correctly to use ASP.NET?

To ensure IIS is aware of ASP.NET, reinstall ASP.NET (after you installed IIS) or try this:

1. Open up a command prompt

2. Browse to the .NET Framework folder under C:\Windows\Microsoft.NET\Framework\v2.0.50727

3. run aspnet_regiis -i

That registers ASP.NET with IIS which should fix the problems...

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old April 27th, 2008, 01:42 PM
Authorized User
 
Join Date: Apr 2008
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Default

trying that now Imar. Thanks for your patience and help.

 
Old April 27th, 2008, 01:49 PM
Authorized User
 
Join Date: Apr 2008
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That worked perfectly. Thanks.

Now to my understanding, didn't that install v2.0 and not 3.5?

 
Old April 27th, 2008, 01:54 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Nope. The 3.5 version doesn't come with a new run-time. "All" it does is add new functionality in the form of a lot of DLLs (simplifying things a bit here).

What this means is that the run-time is still the same; for an ASP.NET 3.5 (indicated through configuration), it just loads other DLLs and uses a different compiler. If you check out the ASP.NET tab in IIS you see you only have versions up to 2.0 to choose from.

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old April 27th, 2008, 03:25 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Quote:
quote:Originally posted by aspcoder
 Now to my understanding, didn't that install v2.0 and not 3.5?

Just to clarify: running the aspnet_regiis program doesn't really "install" anything. All it's really doing (unless I'm missing something big) is setting up the MIME type mappings for ASP.NET files (.aspx, ascx, .asmx, .config, etc) to the ASP.NET runtime ASAPI. .NET and ASP.NET are already installed as part of the framework, this just hooks IIS to it. It does do some other stuff, but the extension mapping is the important part that we are concerned with.

-Peter
peterlanoie.blog
 
Old April 27th, 2008, 05:50 PM
Authorized User
 
Join Date: Apr 2008
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the clarifications :-)



 
Old April 27th, 2008, 09:49 PM
Authorized User
 
Join Date: Jan 2007
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Actually Imar, I happen to have a very good self image. My response to what Jim originally wrote was really in defense to the person who spoke unfairly about your book (and who knows his real motive of writing it). Even Jim takes some responsibility since he edited it. I make no apologies for my response to Jim and take nothing back.

Mentioning my self image was meant as a joke. Had I responded to a Canadian friend of mine in a forum, he would have had a good laugh. Don’t take things so seriously. People don’t normally admit problems with their self image over the internet unless it’s a joke. By reading previous post, you should be able to see that I joke a lot. Read it again, laugh, and enjoy the rest of your day.

Thanks for letting me know about the rules and hijacking. This is the only forum I participate in. I thought the forum was topic based, not person-topic based. I appreciate it.

Terry
PS. laugh






Similar Threads
Thread Thread Starter Forum Replies Last Post
Imar! help me shankhan Dreamweaver (all versions) 1 March 20th, 2005 05:45 PM
Hi IMAR, clear question dhol General .NET 3 January 1st, 2005 12:37 AM
Imar - Please look at this larry Javascript How-To 4 July 8th, 2004 12:28 PM
To Imar: Re: Sub Main shadowpug VB.NET 2002/2003 Basics 1 July 26th, 2003 02:54 PM





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