 |
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
 | This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 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
|
|
|
|
|

July 8th, 2009, 11:03 AM
|
|
Authorized User
|
|
Join Date: Dec 2007
Posts: 48
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
Files in Online Diary (Chapter One)
I am studying Online Diary, but can't get the ASPNETDB and DiaryDB to install into sql. What am I doing wrong?
Also, when a run Online Diary, I get the error ' generating a user instance in SQL is disabled'. At this point in time, I'm not as knowledgeable about SQL as I would like to be. Please help!
__________________
Thomas G Magaro
Last edited by flashmanTom; July 8th, 2009 at 12:56 PM..
Reason: Left out part of the problem
|
|

July 9th, 2009, 05:03 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Can you define " can't get the ASPNETDB and DiaryDB to install into sql" in detail? Hard to say something useful without a lot more information.
The application assumes you have SQL Express installed. If that's the case, it should "just work" out of the box.
Cheers,
Imar
|
|

July 10th, 2009, 09:52 AM
|
|
Authorized User
|
|
Join Date: Dec 2007
Posts: 48
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
Thanks for the reply
Hi Imar,
Thanks for replying.
I do have SQL Express installed, however, somehow or another the two files have become associated with Word Pad, so SQL won't attach them.
How do I remove the association?
Thanks,
Tom
__________________
Thomas G Magaro
|
|

July 10th, 2009, 10:29 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Tom,
You can remove the association in Windows Explorer under Tools | Extra.
However, for SQL it doesn't matter. You don't have to attach them to SQL. They'll be attached on-the-fly based on the connection string in web.config.
Just open the project in Visual Web Developer, hit Ctrl+F5 and you should be good to go....
Imar
|
|

July 10th, 2009, 12:04 PM
|
|
Authorized User
|
|
Join Date: Dec 2007
Posts: 48
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
No Go
Hi Imar,
Thanks again for the reply.
I tried running the project straight from the cd, but still get the following error:
Generating user instances in SQL Server is disabled. Use sp_configure 'user instances enabled' to generate user instances
What else can I do?
Thanks,
Tom
__________________
Thomas G Magaro
|
|

July 10th, 2009, 12:42 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
"straight from the cd" as in opening it from the CD directly or did you copy it local?
In the former case, copy the files to your local drive first as SQL needs to be able to write to the database....
Imar
|
|

July 10th, 2009, 01:51 PM
|
|
Authorized User
|
|
Join Date: Dec 2007
Posts: 48
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
Already copied to local
Hi Imar,
When I first submitted the question, I was referring to a local copy
__________________
Thomas G Magaro
|
|

July 10th, 2009, 06:36 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Yet, but then you said you were trying to attach them instead of simply using them at run-time... ;-)
Anyway, have you Googled for the error message? Maybe something is wrong with your Express setup? On default installations user instances are supported but you can turn them on and off. Searching Google brings up stuff like:
http://forums.asp.net/p/1035148/1429516.aspx
Alternatively, you can indeed attach the databases to SQL Server and then change the connection string. Maybe this provides more information:
http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=395
Personally, I'd go for the first option though. Having a well configured Express edition is always useful....
Hope this helps,
Imar
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| OnLine Diary- Mobile Version |
snbelani |
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 |
3 |
September 1st, 2008 01:32 AM |
| OnLine Diary conversion to C# |
trent |
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 |
7 |
August 5th, 2008 10:46 AM |
| Online Diary Problems |
gsrai31 |
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 |
2 |
April 17th, 2008 09:44 AM |
| Online Diary - Profiles (Chapter 1) |
alineurope |
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 |
4 |
January 17th, 2007 06:05 PM |
| Online Diary - works! |
mpremji |
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 |
0 |
April 19th, 2006 06:13 PM |
|
 |