Web Config Error What may be the problem?

A

Arif Çimen

Hi everybody,

I made my first ASP.Net application and deployed it.

There came an error on the server:

What may be wrong in web.config file , or do I have to put it on to the root
of my site.

Thanks for any help.

Arif Çimen.
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: by Microsoft that offers a single logon and core profile
services for member sites.
Line 36: -->
Line 37: <authentication mode="Forms" />
Line 38: <!-- AUTHORIZATION Windows
Line 39: This section sets the authorization policies of the
application. You can allow or deny access


Source File: C:\Webroot\tr\com\prowise\Proje Talep
Formu\WebApplication1\web.config Line: 37
 
B

Brock Allen

Yes, web.config with settings like <authentication> needs to be deployed
to the root directory of your application. This also means that you've configured
this directory in IIS as an independant application (aka virtual directory).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top