Error during Server configuration

Posted by Adnan_Younas under ASP.NET on 8/24/2011 | Points: 10 | Views : 982 | Status : [Member] | Replies : 4
During Server Configuration ....
Following error occur..
Plz help me...


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 17: <compilation debug="true" targetFramework="4.0" />
Line 18:
Line 19: <authentication mode="Forms">
Line 20: <forms loginUrl="~/Account/Login.aspx" timeout="20" />
Line 21: </authentication>

Source File: E:\Get Tech Job\PROJECT\Project Main\GetTechJobCS\GetTechJobCS\gettechjobcs\web.config Line: 19


Show Additional Configuration Errors:


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. (E:\Get Tech Job\PROJECT\Project Main\GetTechJobCS\GetTechJobCS\gettechjobcs\web.config line 23)

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. (E:\Get Tech Job\PROJECT\Project Main\GetTechJobCS\GetTechJobCS\gettechjobcs\web.config line 33)

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. (E:\Get Tech Job\PROJECT\Project Main\GetTechJobCS\GetTechJobCS\gettechjobcs\web.config line 40)


Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927




Responses

Posted by: Vuyiswamb on: 8/25/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
How many connectionstring do you have ?

Thank you for posting at Dotnetfunda
[Administrator]

Adnan_Younas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Adnan_Younas on: 8/26/2011 [Member] Starter | Points: 25

Up
0
Down
1 connection string using linq

Adnan_Younas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 8/26/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
The Error means there is a Connectionstring in the Root of your Folder that is conflicting with the web config in your project. Remove the one that is outside the folder of your project.

Thank you for posting at Dotnetfunda
[Administrator]

Adnan_Younas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Adnan_Younas on: 8/28/2011 [Member] Starter | Points: 25

Up
0
Down
I cant understand.... plz describe it...
i am new in asp.net


Adnan_Younas, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response