Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 2nd, 2007, 10:59 AM
Authorized User
 
Join Date: Feb 2007
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to toddw607 Send a message via Yahoo to toddw607
Default

The error also says:
  Server Error in '/' Application.
--------------------------------------------------------------------------------

Configuration Error
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.


    I think there is a problem in IIS. I am trying to configure it in Admin Tools. But it says that my directory is invalid when I try to type in //mailserver/Inetpub/wwwroot/tw . I also tried to type in the shortcut on my desktop na dthat would not work either. I think the underlining problem is that I do't really know how to configure the IIS and which one to configure. I'll keep looking and trying.

 
Old April 2nd, 2007, 11:06 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Are we dealing with 2 computers here? If you are attempted to put .NET pages on one computer and actually host them on another, you are going to get into all kinds of trouble (as you are likely finding out). To start... you should get this stuff running on 1 machine only. Then move it to another and see if it works. I think I'm starting to see what you are trying to do.

This point aside, you should use this format if you want to reference a networked resource:

\\servername\sharename\dir\dir\etc...

-Peter
 
Old April 2nd, 2007, 01:07 PM
Authorized User
 
Join Date: Feb 2007
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to toddw607 Send a message via Yahoo to toddw607
Default

I am trying to run these pages from one computer, the only thing is that the Tables I am trying to get are on a server called "SQLSERVER" and my folder where I am holding all the aspx pages is located on another server called "mailserver" but I am attempting to run them from the same machine. I've tried everything I have thought of and now when I attempt to call any of the three tables I get the following error:

  Server Error in '/' Application.
--------------------------------------------------------------------------------

Login failed for user 'DANDR\MAILSERVER$'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'DANDR\MAILSERVER$'.


    I do not understand. I have everything set to Windows authorization so it will accept me as a user as soon as I sign into my system. What would be the simpliest way to just type in the path of a single .aspx page that contains the tables instead of attempting to redirect through my "initial page". Thanks

 
Old April 2nd, 2007, 01:29 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Honestly, I'm not sure how to answer a question about windows authentication because all the work I do with web apps is to create public sites using anonymous access.

The user you are logged into your computer as is not necessarily the same user identity that the application uses to access the resources it needs (i.e. files or SQL server). This is where a lot of people get hung up.

Like I said before, you should try to get this working from a SINGLE machine. In other words, do not try to set up a virtual directory in IIS to point to a directory on another machine. A) Permissions problems are likely preventing access to the files and B) ASP.NET will likely not allow you to execute script pages that don't come from the local machine. Having SQL server on another box is no problem.

-Peter
 
Old April 2nd, 2007, 02:55 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Hmmm. My head hurts after reading this. >< As Peter suggested, you should have the files you are trying to execute on the same machine that IIS is on and not try to map a UNC path as a virutal directory.

The error you are getting is related to access being denied to the SQL Server, obviously. It appears as though windows authentication is working correctly, however I have a question for you. Is this: 'DANDR\MAILSERVER$' a valid domain and user account? Moreover, if it is, have you ensured that the MAILSERVER$ user has the necessary rights to access the SQL Server?

Unfortunately, I think that the user that is trying to log on to your SQL Server is the actual machine and not a domain user account. (You noted in your url that the name of the machine that IIS is on is MAILSERVER) Of course this is an assumption since I know nothing about your network.

Have you tried supplying a Username and password in your connection string to verifiy that you can connect to the server correctly?

Those are some things to check out anyway.


================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old April 2nd, 2007, 03:32 PM
Authorized User
 
Join Date: Feb 2007
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to toddw607 Send a message via Yahoo to toddw607
Default

Thanks...I've been trying to access through the server but I'll try to set it up strictly on this machine...I'm slow today...but now I understand what you guys mean. Thanks, I'll let you know if it works.






Similar Threads
Thread Thread Starter Forum Replies Last Post
web.config problem in FileShare trieuanhl BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 November 2nd, 2008 09:48 AM
Web.Config problem darkestangel1980 ASP.NET 1.0 and 1.1 Basics 1 July 2nd, 2007 06:31 AM
problem in web.config chandanbhakuni ADO.NET 2 September 22nd, 2006 07:11 PM





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