p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > C# and C > C# 2008 > BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8
This is the forum to discuss the Wrox book Professional C# 2008 by Christian Nagel, Bill Evjen, Jay Glynn, Morgan Skinner, Karli Watson; ISBN: 9780470191378

Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 3rd, 2009, 02:24 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 5%
Activity: 5% Activity: 5% Activity: 5%
 
Join Date: Nov 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't get "ASP.NET configuration" to work in the examples.

[Disclaimer: I'm not sure where this question should go. I think it's really more about ASP.NET, but I'm running into the problem in trying to work out the examples in this book.]

I'm trying to run the PCSDemoSite in Chapter 38, I try to log in as instructed on Page 1318. (This is a souped up, slicked-up version of the Meeting Room Booker example introduced earlier, which includes security features and other features, hence the login.).

But the login fails because a "network related or instance specific error" occurs. As it happens, I have never been able to find the database to download that I'm expected to use, so to work through the earlier Meeting Room Booker example I simply set up my own tables on a SQL Server 2008 database which I already had. Naturally I didn't expect PCSDemoSite to work correctly from the get go, since I understood that whatever tables or other provisions for storing security settings have not been created on my database, but I thought I would at least be able to figure out from the code what it needs. But the actual code which handles the authentication process seems to be altogether hidden. I can't find it anywhere.

I thought it would help if I understood security better, so I tried to work through PCSAuthenticationDemo example on Page 1332. I created the project and compiled it, and then went to ASP.NET Configuration as instructed, to get to the Security Setup Wizard. No luck. The error message I now get is


The following information may be helpful in diagnosing the problem. Error creating a connection to the server. In attempting to connect to SQL Server 2005 this can be caused by the fact that in standard configuration, SQL Server 2005 cannot accept remote connections. (Provider: SQL Network Interfaces, error 26 - Error locating server/instance specified)


Like I said, I didn't expect this to work straight away. But I did change the connection string in Web.config to point to my database which in fact does exist, hoping therefore to narrow the error down to a missing table and then to be able to figure out what table or tables I needed to add to my database.

I note also that the error message specifically says SQL Server 2005 which seems strange. Should I not be using SS2008 here?

I have followed the steps to enable remote access to my database, but I don't have an easy way of checking it. I also can't make any sense of the Website Configuration Tool, with which I attempted to direct the application where I wanted it to look for verification. Why is the only provider "AspNetSqlProvider', and how can I reconfigure it, or get it to recognize my application database?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old November 3rd, 2009, 02:34 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 5%
Activity: 5% Activity: 5% Activity: 5%
 
Join Date: Nov 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The frustration in all of this is that I don't really need to know security for my present purpose, which is a school project. I don't especially want to spend the time with the Website Configuration Tool. But apparently I do have to understand this material if I want to be able to work through the Authentication example, which I need to understand to work through the PCSDemoWebsite example.

Which I need to work through the MS-Ramp Up tutorial I'm working on because it explains how to use Master pages.

Which I need for my project because I think it might be useful...

(And so on and so on)

I don't get a lot out of just reading the book. To grasp the material I really need to work through the examples myself.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Difficulties with "web.config" and "ASPNETDB" CFRham BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 1 October 24th, 2009 11:09 AM
Need code corrections "get sub or function not defined" error" bluesboytoo Excel VBA 1 October 23rd, 2009 12:12 AM
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



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


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc