Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB 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 4th, 2014, 02:39 PM
Authorized User
 
Join Date: Nov 2013
Posts: 10
Thanks: 3
Thanked 0 Times in 0 Posts
Default Error adding ADO.NET model

Hi Imar,

Thanks for helping out in understanding more about ASP.NET through your book.

I seems to have a lot of problems in connecting the database.

At the moment, I am starting chapter 14 and trying to create the ADO.NET model, but got stuck with the following error:

"An error occur while connecting to the database. The database might be unavailable. Operating system error 5 (5 access is denied)

A database with the same name exists, or specified file cannot be opened, or it is located on UNC share"

I have checked the windows administration authorization and I do have full control for the database. Would you please help me understand what happen and how to fix this please?

Thanks
 
Old April 5th, 2014, 02:59 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

HI there,

Is any of the three options in the error message correct? Check that the account you use has read/write permissions to the App_Data folder. Also, make sure you haven't also attached the database in SQL Server. You can SQL Server Management Studio to see if you have any databases attached.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 14 - ADO.NET Entity Data Model Sean1980 BOOK: Beginning ASP.NET 4 : in C# and VB 3 July 15th, 2011 12:24 PM
confusing in ADO.NET Entity Data Model,Linq to sql angelboy ADO.NET 5 November 21st, 2008 05:01 PM
graphical model of ADO.NET zdu Visual Basic 2005 Basics 0 March 31st, 2008 05:41 AM
.NET model vs. pre .NET model. raychoudhury BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 0 January 11th, 2007 06:11 AM
Adding a New Table to a Database with ADO.NET Aaron Edwards ADO.NET 4 December 26th, 2004 03:04 AM





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