Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950
This is the forum to discuss the Wrox book ASP.NET MVC Website Programming Problem Design Solution by Nicholas Berardi, Al Katawazi, and Marco Bellinaso; ISBN: 9780470410950
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 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
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 22nd, 2009, 04:43 AM
Registered User
 
Join Date: Oct 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Difficulties with "web.config" and "ASPNETDB"

Hi,

Thank you for this great book that's advancing my knowledge in MVC. I have got two quesions, a specific one and general one.

1. Specific question.

On the very top of the page 116, it is said:

Quote:
...you will also need to create a user for your application to use in order to access the newly created database. To do this, expand the Security folder, right-click the Logins folder, and select New Login...
Here is what I did. When the "New login" dialog box appeared, I wrote "TheBeerHouse" in the login name textbox. Then I went to the UserMapping page and gave the user the db_datareader and db_datawriter rights. When I run it, I get the following exception:

Quote:
An object or column name is missing or empty. For SELECT INTO statements, verify each column has a name. For other statements, look for empty alias names. Aliases defined as "" or [] are not allowed. Change the alias to a valid name. (Microsoft SQL Server, Error: 1038)
How and when theBeerHouse was created????! Could you be more specific either by giving the steps or by pointing me to some ressources that can help me.

2. General question

I remember that to create ASPNETDB in webforms, I just need to run a page that has on it a control, suah as CreateUserWizard. Also, if I decide to use the built in security module of MVC, I just need to create a new user to get the ASPNETDB appear under the App_Data folder.

In TheBeerHouse sample:
-We add the appropriate entries in the "web.config"
-We create TheBeerHouse DataBase

So, when do we get our DB be populated with tables??? When we run the application???? How TheBeerHouseUser was created????

I've been struggling with these concepts for days now. Any help will really jumpstart my MVC learning.

Thank you for helping me.
  #2 (permalink)  
Old October 24th, 2009, 11:09 AM
Registered User
 
Join Date: Oct 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I was expecting some helps. That's ok, I was able to solve the problem using my other books.

Thanks anyway
  #3 (permalink)  
Old July 3rd, 2010, 11:19 AM
Authorized User
 
Join Date: Dec 2008
Location: , , Greece.
Posts: 56
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via MSN to fh84
Default

CFRham i've got the same problem with you!

Could anyone please give more instructions how to import the schema in Visual Studio?

when i run aspnet_regsql.exe run without any error, but when i check in the visual studio does not seems to be loaded!

could anyone please give some answers?

thank you in advanced!!!!
 


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
How to theme the "Browse" button of "FileUpload" control? varunbwj BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 October 14th, 2009 02:22 AM
Add a CheckBox DataColumn to my DataGridView, Null format: "" or "True" but Error: F ismailc C# 2005 0 September 25th, 2009 05:56 AM
Code not going as planned: "icicle" vs "savedinstancestate" joopthecat BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 3 May 3rd, 2009 04:09 PM
App_Code folder in "Web Application Project" member4953 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 March 24th, 2009 06:03 PM



All times are GMT -4. The time now is 08:35 PM.


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