Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Professional ASP.NET MVC 2
BOOK: Professional ASP.NET MVC 2
This is the forum to discuss the Wrox book Professional ASP.NET MVC 2 by Jon Galloway, Scott Hanselman, Phil Haack, Scott Guthrie, Rob Conery; ISBN: Professional ASP.NET MVC 2
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET MVC 2 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 October 14th, 2011, 10:02 AM
Registered User
Join Date: Oct 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Namespace not generated in startup project

Hi all,
I'm going through the VS2010 6-in-1 book, and I'm trying to create my first MVC application, using VB not C#.

In the book, the examples are C#, but in general I can follow it. So I created a new MVC app in VS2010 and right off the bat as I look at the examples shown in the book (They called the app "AcmeLibrary"), when I look at the VB files, there is no Namespace declaration at the top of the file, or any Imports statements.

For Example, the code listing in the book for the global.asax.cs starts out:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace AcmeLibrary
Shouldn't the VB equivalent have the similar "Imports" statements and a Namespace? The initial global.asax.vb just starts with:
Public Class MvcApplication
Same goes for code I try to follow in the book, the controller classes, when created, there is no "Namepsace AcmeLibrary.Controllers" in the header.

It's causing none of the new stuff I add (following the book step-by-step) to work.
Can anyone help me with this please?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 22: Introduction to Project Management... Project Program integration chrisa BOOK: Professional Application Lifecycle Management with Visual Studio 2010 1 September 15th, 2010 03:28 PM
error CS0234: The type or namespace name 'Xml' does not exist in the namespace 'Syste shailesh_kumar C# 2008 aka C# 3.0 8 August 20th, 2009 03:11 AM
Need to convert an existing namespace and add new namespace to the SOAP xml Prabeen XSLT 10 April 28th, 2009 10:18 AM
Startup in VBA mrgoodtrips Access VBA 2 July 9th, 2004 09:15 AM

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