Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Configuration error

Status
Not open for further replies.

TanTrazz

Programmer
Aug 18, 2001
54
NL
Hi There

I'm making the example from:


ms-help://MS.VSCC/MS.MSDNVS/vbcon/html/
vbwlkWalkthroughUsingDataGridWebControlToReadWriteData.htm

When i debug and run the programm it's gives me this message :

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 23: "Forms", "Passport" and "None"
Line 24: -->
Line 25: <authentication mode=&quot;Windows&quot; />
Line 26:
Line 27:


Source File: c:\inetpub\ Line: 25





What can i do to stop this message please help

TanTrazz
 
I was getting this when I had two conflicting web.config files. One of them in a sub folder of the main project. Do you have anything similiar to this?

I solved it by taking everything out of the web.config in the sub folder except the things that were different to the main web.config.
My second web.config is as follows.
<?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?>
<configuration>
<system.web>
<!-- security -->
<authorization>
<deny users=&quot;?&quot; />
<allow users=&quot;*&quot; />
</authorization>
</system.web>
</configuration>


Hope that helps That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top