 |
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
|
|
|
|
|

June 10th, 2009, 05:18 PM
|
|
Authorized User
|
|
Join Date: Jun 2009
Posts: 66
Thanks: 22
Thanked 0 Times in 0 Posts
|
|
I have vista, IIS 7 But can't load ASP.NET codes in browser
I have vista, IIS 7 But can't load ASP.NET codes in browser!!!!!!
Please help. It says
Server Error in '/hiv' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The file '/hiv/includes/Controls/UtilNavMenu.ascx' does not exist.
Source Error:
Line 1: <%@ Register TagPrefix="HIVControl" TagName="UtilNavMenu" Src="Controls/UtilNavMenu.ascx" %>
Line 2: <%@ Register TagPrefix="HIVControl" TagName="NavMenu" Src="Controls/NavMenu.ascx" %>
Line 3: <%@ Register TagPrefix="HIVControl" TagName="NavSubMenu" Src="Controls/NavSubMenu.ascx" %>
Source File: /hiv/includes/controls.inc Line: 1
Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074
|
|

June 10th, 2009, 06:04 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
This isn't related to the book Beginning ASP.NET 3.5 is it? If it's not, can you please move this thread to one of the generic beginning ASP.NET forum categories here at P2P.wrox.com? Makes things a lot easier for everyone. You can move a thread by choosing Thread Tools | Move Thread.
That said, the error message seems to suggest a file is missing. Check under your site in IIS and look for the folder structure that gets mentioned. Maybebe you placed the root of the site in IIS one level too high or too deep?
BTW: is there a good reason do still have files called .inc? That's quite old-fashioned. A better alternative would be to use nested user controls or other .NET reusability mechanisms.
Hope this helps,
Imar
Last edited by Imar; June 10th, 2009 at 06:08 PM..
|
|

June 11th, 2009, 10:55 AM
|
|
Authorized User
|
|
Join Date: Jun 2009
Posts: 66
Thanks: 22
Thanked 0 Times in 0 Posts
|
|
I didn't get you when you said "A better alternative would be to use nested user controls or other .NET reusability mechanisms."
and I understand that the error message seems to suggest a file is missing. :) I have also Checked under my site in IIS and looked for the folder structure that was mentioned. So where do you suggest I should place the root of the site in IIS? The name of my application folder is hiv. And I have it both in C:\hiv and under C:\inetpub\wwwroot\hiv as well.
If you could provide me with a step wise direction on how to get an ASP.NET web application up and running in IIS 7 that'd be great. I am sorry that I am asking such dumb questions.
I didn't understand where should I put the thread. So I chose this one.... I don't see any button where I can click to move this thread to the place you have asked for. I am sorry. I am really new to this.
Thank you a lot.
Skhan
|
|

June 11th, 2009, 11:37 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
At the top of this thread there's a Thread Tools menu option that should allow you to move the thread.
Quote:
|
A better alternative would be to use nested user controls or other .NET reusability mechanisms."
|
.inc files are pretty much an old-skool technology. There were very popular in ASP, but not needed in ASP.NET. Look into to Master Pages and User Controls for "modern" techniques for reusing code.
Quote:
|
If you could provide me with a step wise direction on how to get an ASP.NET web application up and running in IIS 7 that'd be great
|
Take a look at Chapter 18 of my book; it deals with this in full detail.
The folder in IIS should be the parent folder of the hiv folder so you end up with virtual folders and files like /hiv/includes
Cheers,
Imar
|
|
The Following User Says Thank You to Imar For This Useful Post:
|
|
|

June 12th, 2009, 12:57 PM
|
|
Authorized User
|
|
Join Date: Jun 2009
Posts: 66
Thanks: 22
Thanked 0 Times in 0 Posts
|
|
Thank you all for your support
Thank you all for all of your support and time..... The problem is solved now.... :)
I have copied and pasted the missing files into the folder that the error was mentioning. And refreshed the browser and it worked....I have also done the setup according to http://www.codeproject.com/KB/aspnet/IIS7ASPNet.aspx
that's an awesome thing to follow.....but more or less they say the things that others have said as well.....
I have one more question though.....if I modify the codes now.....as they are converted to VS 2008, will be be usable in the older versions.....or when I upload in the real server?...... When I was publishing/converting the web application, it said that it won't be converted to the old version anymore....does that mean it'll become unusable in the older version as well??? cause the server runs the older version which I can't change.
Thank you.
Skhan
|
|

June 12th, 2009, 02:10 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
It depends..... (it always does ;-) )
WIth VS 2008 you can target the .NET 2,0 run-time (in fact, the .NET 2.0 runtime is used for 2005 and 2008 projects. However, if you se .NET 3.5 specific features (Linq for example) it won't run on a server without 3.5.
When you create a new project in VS 2008 you can choose the target platform in the New Project dialog. You can change this later through the project's Properties dialogs.
A project created in VS 2008 cannot be opened directly in 2005. However, the underlying files are still compatible (provided, again, you're not using .NET 3.5 specific features)
HtH,
Imar
|
|

June 12th, 2009, 03:12 PM
|
|
Authorized User
|
|
Join Date: Jun 2009
Posts: 66
Thanks: 22
Thanked 0 Times in 0 Posts
|
|
Thank you
Thank you 
|
|
 |