Config Error!!!

M

Mr Ideas Man

Hi all I am getting this error:

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 8: <customErrors mode="Off"/>
Line 9: <trace enabled="false" requestLimit="10" pageOutput="false"
traceMode="SortByTime" localOnly="true"/>
Line 10: <sessionState mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data
source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />
//this line high lighted
Line 11: <globalization requestEncoding="utf-8"
responseEncoding="utf-8"/>
Line 12: <authentication mode="Forms">

Can anyone give me an Idea of what could be wrong??

This is my web config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="ConnStr" value="Data Source=DataSource;Initial
Catalog=DB;User=dbuser; Password=dbpassword"/>
</appSettings>
<system.web>
<compilation defaultLanguage="c#" debug="true"/>
<customErrors mode="Off"/>
<trace enabled="false" requestLimit="10" pageOutput="false"
traceMode="SortByTime" localOnly="true"/>
<sessionState mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data
source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />
<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
<authentication mode="Forms">
<forms loginUrl="Admin/Login.aspx"/>
</authentication>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
<location path="Admin">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
</configuration>

This app works fine locally...

Cheers,
Adam
 
R

Ravi Ambros Wallau

Open IIS admin application (the management console).
Locate your virtual directory, and open it's properties.
Check if the "Application Name" field is disable (in the first tab). If so,
click Create button...
If your directory is located under wwwroot, you may need to create a virtual
directory that points to it and then, on this virtual directory, creates an
application. But try the first step before...
 

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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top