 |
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8  | This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 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
|
|
|
|
|

December 8th, 2005, 04:30 PM
|
|
Registered User
|
|
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Problems getting it working
When I try to run default.aspx I get;
Line 39: Set forms authentication and define the login page
Line 40: -->
Line 41: <authentication mode="Forms">
Line 42: <forms loginUrl="Default.aspx"></forms>
Line 43: </authentication>
What am I missing??
-bruce
|
|

December 8th, 2005, 04:32 PM
|
|
Registered User
|
|
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Sorry, I should have provided complete info;
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 39: Set forms authentication and define the login page
Line 40: -->
Line 41: <authentication mode="Forms">
Line 42: <forms loginUrl="Default.aspx"></forms>
Line 43: </authentication>
|
|

December 8th, 2005, 06:07 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Bruce, error discription is suggesting you to configure
your virtual directory as an application, did you try that?
|
|

December 8th, 2005, 06:42 PM
|
|
Registered User
|
|
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I have tried that .. but, it's giving me a database login error. Not sure why that is needed -- but such instruction is not provided in the book. So, I decided to use the cassini web-server instead. I get the same error on both servers.
Maybe I'm not doing it right. Please point me in the right direction.
Thanks!!
-bruce
|
|

December 8th, 2005, 06:58 PM
|
|
Registered User
|
|
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ok, I got it working ... the pysical path where I stored the files wasn't exactly the same as prescribed. Is the path coded into the app somewhere??
Thanks!!
-bruce
|
|

December 9th, 2005, 05:02 AM
|
|
Authorized User
|
|
Join Date: Dec 2003
Posts: 46
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Bruce
There are no hard coded paths in the applications, everything is relative. The problem you experience is in using the applications through IIS, which means that the user the process runs under is different, leading to database security issues. The point of using the local .NET web server (Cassini) is that this doesn't happen, and that no configuration/setup is required.
Dave
|
|

January 18th, 2006, 12:24 PM
|
|
Registered User
|
|
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I am getting the following error and wonder if this is what you were getting when you accessed the database.
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
How do you change the default settings?
I am not being able to call up the webpage because the this error. I know this is probably something small, but it is frustrating. Cassini runs it fine.
Thanks,
Chris
Quote:
quote:Originally posted by DaveSussman
Bruce
There are no hard coded paths in the applications, everything is relative. The problem you experience is in using the applications through IIS, which means that the user the process runs under is different, leading to database security issues. The point of using the local .NET web server (Cassini) is that this doesn't happen, and that no configuration/setup is required.
Dave
|
|
|

January 20th, 2006, 07:44 AM
|
|
Wrox Author
|
|
Join Date: Jun 2004
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Chris,
OK getting it running in SQL 2005 is a bit more complex than in SQL Express. It isn't something that small, and the problems of running with SQL 2005 are discussed in the following thread:
http://p2p.wrox.com/topic.asp?TOPIC_ID=37465
The last post by myself in that thread should hopefully provide you will a solution.
Chris
Chris Ullman
Programmer/Technical Author
http://www.cuasp.co.uk
|
|
 |