Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > BOOK: ASP.NET Website Programming Problem-Design-Solution
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 16th, 2004, 01:05 AM
Registered User
 
Join Date: Jan 2004
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Frustrations with setting up site in VS.NET!!!

I both love and hate this book. It covers so many pertinent topics on how to build a scaleable site using ASP.NET, but totally leaves you in the deep end of the pool when it comes to setting up the site in Visual Studio.NET. The coding examples are excellent, but the nuances of namespaces, directory structure, and how they all inter-relate with a VS.Net solution is totally left out.

For example, in chapter 2 they create hierarchical namespace schema, and then suggest creating a folder structure that mimics it. So, how do you implement that folder structure into VS.NET??

Later in chapter 2 they create the Core project, but never tell you how it is suppose to be integrated into the overall structure (i.e. in the sample code the project is located in C:\wrox\ThePhile\Modules\Core). I am confused on why some of the projects in the sample code are on the top level, and some are in folders, or even how they got projects to reside in folders. And come to think of it, they also never create the main “ThePile” ASP.NET Web App -Arrrrgh!

I cannot believe they just assumed everyone one would understand how to create this complex VS.Net solution without some guidance. They need to post a FAQ message that explains how to correctly get started creating the solution in VS.NET, and provide a couple of examples on how to add projects to the solution (like the Core for example), and give a better understanding how the namespace scheme relates to all of this. I know I am not the only one having trouble with this.

Reply With Quote
  #2 (permalink)  
Old January 16th, 2004, 11:25 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,413
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I don't have this book, but I have a lot of experience building complex VS.net solutions, so perhaps I can explain a little bit about them.

One of my current projects is a photobrowser that I am building under the namespace of my main website (geekdork.com). Its solution contains 4 projects that are scattered throughout my namespace hierarchy. The main solution file is GeekDork.PhotoBrowser.Website.sln and it contains the following projects:
- GeekDork.Core.csproj
- GeekDork.Core.Util.csproj
- GeekDork.PhotoBrowser.Website.csproj
- GeekDork.Web.Util.csproj

The projects are organized physically to match the namespace heirachry. Here is the storage and namespace organization underneath my main code directory. Directories are in bold and namespace hierarchy is in italics:
Code:
\GeekDork
 +--\Core
 |   +--\GeekDork.Core
 |   |   +---GeekDork.Core.csproj
 |   +--\Util
 |       +--\GeekDork.Core.Util
 |           +---GeekDork.Core.Util.csproj
 +--\PhotoBrowser
 |   +--\Website
 |       +--\GeekDork.PhotoBrowser.Website
 |       |   +---GeekDork.PhotoBrowser.Website.csproj
 |       +---GeekDork.PhotoBrowser.Website.sln
 +--\Web
     +--\Util
         +--\GeekDork.Web.Util
             +---GeekDork.Web.Util.csproj

When you have these projects in a solution, all the project references are "back referenced" with the "..\" syntax so the whole source code tree is portable. You have to implement this structure manually when you create each project.

I took this structure from the Microsoft white paper on Team Development with Visual Studio .NET and Visual SourceSafe. It works pretty well. One of the problems I have is that when you create a solution VS will create a sub directory for the solution automatically. There is a checkbox to disable this but the checkbox is always disabled, still haven't cracked that one. Usually this isn't that big of a deal because you don't create that many solution files. So you have to just move it back one directory to get everything lined up. You could very easily just leave the solution where it is and let it live adjacent to a project file.

Peter
------------------------------------------------------
Work smarter, not harder.
Reply With Quote
  #3 (permalink)  
Old January 16th, 2004, 05:59 PM
Registered User
 
Join Date: Jan 2004
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for taking the time to respond with such a detailed message, I really appreciate it. Just so I am clear, bold is for directories, and italic is for the namespace hierarchy, so bold-italic is where the directories and namespaces match? Also, thanks for the link to the MSoft technote, it was very informative.

For others who are having trouble running the examples, I googled and found an old post by one of the editors who said that you cannot run the examples by following the book. They purposely left out steps to make the book "Easier to carry around". Wish the would have been up front about this. Still would have bought the book, but would not have banged my head against the wall trying to run the examples.



Reply With Quote
  #4 (permalink)  
Old January 17th, 2004, 12:18 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,413
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Yes, bold-italics are where the namespace and directory structure match. The bolded directories just above the projects happen to also be the root namespace of the projects. That's really the important part of it all. You need to specify the right root namespace in the project to maintain the hierarchy.

Peter
------------------------------------------------------
Work smarter, not harder.
Reply With Quote
  #5 (permalink)  
Old January 19th, 2004, 02:04 PM
Registered User
 
Join Date: Jan 2004
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by buzzterrier
 Thank you for taking the time to respond with such a detailed message, I really appreciate it. Just so I am clear, bold is for directories, and italic is for the namespace hierarchy, so bold-italic is where the directories and namespaces match?  Also, thanks for the link to the MSoft technote, it was very informative.

For others who are having trouble running the examples, I googled and found an old post by one of the editors who said that you cannot run the examples by following the book. They purposely left out steps to make the book "Easier to carry around". Wish the would have been up front about this. Still would have bought the book, but would not have banged my head against the wall trying to run the examples.
Could you give the URL of the post or the string you used to search within google, please? I have banged my head against my desk for too long trying to get this app to run withe the 1.1 framework and vs.net

thanks

Reply With Quote
  #6 (permalink)  
Old January 20th, 2004, 01:02 AM
Registered User
 
Join Date: Jan 2004
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here is how I was able to get the examples running (at least through chapter 5)

The authors created a sophisticated multi-project solution in VS.NET. This type of solution is not directly supported by VS.NET, and you need to take specific steps to create it properly. Here is a link to a microsoft tech note that accurately describes the process:

http://support.microsoft.com/default...;EN-US;Q307467

This, along with the errata notes dealing with problem on chapter 3 allowed me to work through the examples and create my own solution (with a lot of referring back to the sample app code).

I am still getting my arms around the whole namespace/assembly concept. I have to say that while these .Net features no doubt add power, I am not sure it is worth the confusion they cause. Java, with jars, and packages is a lot more straight forward.

Here is a short tutorial on namespaces that I found enlightening:
http://builder.com.com/5100-6373-1045329.html

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
output frustrations, please help! mellan XSLT 1 August 22nd, 2005 11:10 AM
Setting up a Site hosted on a IIS6 in Dreamweaver deanphilpin Dreamweaver (all versions) 1 November 4th, 2003 11:42 AM
Setting Up Site with MSDE on W2K Pro?? TimRogers BOOK: ASP.NET Website Programming Problem-Design-Solution 5 August 10th, 2003 10:08 PM



All times are GMT -4. The time now is 09:27 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.