|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I tried to test run my first asp.net page and found the following error. I hope that anyone of you can help me out. Thanks in advance.
When try to run the ASP.net page, I always faced trouble of Configuration error, as follows: Code:
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. Source Error: Line 35: "Passport" and "None" Line 36: --> Line 37: <authentication mode="None" /> Line 38: Line 39: <!-- APPLICATION-LEVEL TRACE LOGGING Source File: c:\inetpub\wwwroot\cc\bookstore\csharp\web.config Line: 37 ---------------------------------------- Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0 What is the possible error? I tried to change the authentication mode form "None" to "Forms", it does not fixes the error. Just for information. I did face this similar problem when I tried to test run certain asp.net script available at the ASP.NET QuickStart Tutorial come with the VS.net. BUT, I can run the sample script of asp.net job site from the book ASP.NET UNLEASHED by Stephen Walther. I really do not undertstand the reason. I read through and found out that possibility that it relates to machine.config file??? Is it? Help needed. Thanks in advance. __________________ Regards, ckchin |
|
#2
|
|||
|
|||
|
Hey,
What operating system are you running .NET on? Windows 2000? Try removing the virtual dir and moving the script to your base web dir in IIS...it might fix the prob. |
|
#3
|
|||
|
|||
|
my guess is that you are creating a directory in the wwwroot using explorer...
u should always use IIS to create virtual directory and make it a web "application". its easy to fix open your IIS MMC and open the web site node, and you should see your directory. right click then properties and then you will see a command button labeled "create application". Click on that and click ok... now try the cause of that error you are having is due to web.config file. You can't have it in a folder..it has to be a web application hope this helps
__________________
Regards, James Yang .NET Developer / Network Engineer MCSE, MCDBA, MCSA, CCNA http://www.yellowpin.com/ http://www.opentechsupport.com/ Last edited by James Yang : April 8th, 2002 at 04:03 AM. |
|
#4
|
|||
|
|||
|
ahhh james, you joined up.. hey
keep up the posting my friend. |
|
#5
|
|||
|
|||
|
I solved the problem, and it's right what James Yang said.
Actually, there is nothing wrong with the web.config and the machin.config files. I faced the error because I use EditPlus to run the script. I suppose test the script with the url of http://localhost/bookstore/ BUT when I always test it using EditPlus, the test url is http://localhost/codecharge/bookstore (I place the bookstore folder/files like this c:\Inetpub\wwwroot\codecharge\bookstore) which is not the virtual directory setting. What a silly mistake I've made. |
|
#6
|
|||
|
|||
|
Quote:
------------------------------------------------------------------------------------------------------------------------------------------- Hello, I'm new at this. Where is the web.config supposed to be located? Directly within the "application" folder? Also, what if I have multiple copies of the "web.config" file within the applications in multiple directories? Thanks so much halewilson |
|
#7
|
|||
|
|||
|
sorry, i'm totally new to vs.net
can someone please tell me where can i control the IIS or even change anything to IIS cause i've been through many forums and most of it mention IIS. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > .NET Development > ASP.net and web.config error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|