Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 Search this Thread Display Modes
  #1 (permalink)  
Old December 8th, 2005, 04:30 PM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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


  #2 (permalink)  
Old December 8th, 2005, 04:32 PM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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>



  #3 (permalink)  
Old December 8th, 2005, 06:07 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

Bruce, error discription is suggesting you to configure
your virtual directory as an application, did you try that?
  #4 (permalink)  
Old December 8th, 2005, 06:42 PM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


  #5 (permalink)  
Old December 8th, 2005, 06:58 PM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


  #6 (permalink)  
Old December 9th, 2005, 05:02 AM
Authorized User
 
Join Date: Dec 2003
Location: , , United Kingdom.
Posts: 46
Thanks: 0
Thanked 1 Time in 1 Post
Default

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

  #7 (permalink)  
Old January 18th, 2006, 12:24 PM
Registered User
 
Join Date: Jan 2006
Location: Nashville, TN, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to cmcdavid
Default

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

  #8 (permalink)  
Old January 20th, 2006, 07:44 AM
Wrox Author
 
Join Date: Jun 2004
Location: Liskeard, Cornwall, United Kingdom.
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 


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

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
window.opener working .... not working alyeng2000 Javascript How-To 5 January 5th, 2007 08:05 AM
Web.Config..Working or Not Working peace95 ASP.NET 1.0 and 1.1 Basics 1 September 18th, 2006 06:53 AM
Local COM working , but not working at Web Serv nagen111 .NET Web Services 3 February 19th, 2005 04:22 AM
problems working two person on same project debuajm General .NET 5 June 11th, 2004 01:37 PM
Working over the network, any problems? xgbnow VS.NET 2002/2003 0 January 23rd, 2004 04:52 PM



All times are GMT -4. The time now is 11:38 PM.


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