ASP.net Configuration Error- allowDefinition='MachineToApplication' - c#

I uploaded my webapplication using FTP to a space. I am getting this error. I have created the virtual directory and configured it in IIS.I am getting this error.
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 52: ASP.NET to identify an incoming user.
Line 53: -->
Line 54: <authentication mode="Windows"/>
Line 55:
Line 56: <!--The <customErrors> section enables configuration

You created a virtual directory which is not an application.
In IIS, Right click on it and Convert To Application

Related

Getting configuration error once try to browse the site inside the default website

I created asp.net application. then I build that on visual studio and then I added web.config file and added following section in that web.config file
<remotingSetting baseRemoteAddress="http://localhost/application_name/{0}"/>
<securitySetting accessDeniedUrl="~/Default.aspx"/>
then I created a site as application_name in Default Website using IIS manager
Then I try to browse this application in IIS manager, I'm getting following configuration error.
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: An error occurred loading a configuration file:
Directory 'C:\Users\kelum\Documents\Visual Studio 2015\Projects\Sample_Project\SampleApp\ConfigSetting' does not exist. Failed to start monitoring file changes.
exist. Failed to start monitoring file changes.
Source Error:
[No relevant source lines]
.

Server Error due to configuration, and can't set up machine key as shown below

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 9: </connectionStrings>
Line 10: <system.web>
Line 11: <machineKey decryption="AES" decryptionKey="D5BE1C3052D930D3D425E96D7A424FEDF67AC4CDDD1BB523A8F420A6C9AB8779" validation="HMACSHA256" validationKey="8AE05954FF94F7FE9972E9774B94B1E7F6
Line 12: 4717979FE0B230158BC7A8AE588994E7EC66CFAC555BA276AEC669BBE8B15DC52A04B06395018BFF3BBAE221E0149A" />
Line 13: <customErrors mode="Off"/>
Source File: C:\Inetpub\vhosts\connectnewwings.com\httpdocs\admin\web.config Line: 11
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34237
Configuration information for an ASP.NET website is defined in one or more Web.config files. The configuration settings are applied in a hierarchical manner. There's a “global” Web.config file that spells out the baseline configuration information for all websites on the web server; this file lives in the %WINDIR%\Microsoft.Net\Framework\version\CONFIG folder. You can also have a Web.config file in the root folder of your website. This Web.config file can override settings defined in the “global” Web.config file, or add new ones. Additionally, you may have Web.config files in the subfolders of your website, which define new configuration settings or override configuration settings defined in Web.config files higher up in the hierarchy.
Certain configuration elements in Web.config cannot be defined beyond the application level, meaning that they must be defined in the “global” Web.config file or in the Web.config file in the website's root folder. The element is one such example. The above error message indicates that there is a Web.config file in one of the website's subfolders than has one of these configuration elements that cannot be defined beyond the application level.
Source: http://scottonwriting.net/sowblog/archive/2010/02/17/163375.aspx

Configuration Error on IIS server

I have uploaded my C# webservice in IIS in my server. When i browse the service, i get the below 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: Unrecognized configuration section system.serviceModel.
Source Error:
Line 105: </runtime>
Line 106:
Line 107: <system.serviceModel>
Line 108: <bindings>
Line 109: <basicHttpBinding>
Source File: E:\xxxx03102014\GoTV\abcderfcvngh\web.config Line: 107
It sound to me like the service is running IIS 2.0 or below
system.service Model is only available in 3.0 and up.
Try checking what application pool is running in IIS on this site.
You must change the .NET version from 3.0 to up in the the pool of the IIS.

IIS Error This configuration section cannot be used at this path

I am facing a strange behavior in that I have an application thats hosted on two nodes. works fine on one node, on the other throws up the following error,
Server Error in '/***_Service' 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: This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file.
Source Error:
Line 34: </context>
Line 35: </spring>
Line 36: <appSettings>
I have compared the applicationHost.config files on both the boxes and they are same. Not facing the problem in Dev environment too. Am I missing something? Can someone please give me some pointers?
Thanks

Can't run uploadify for asp.net

I have downloaded the example code/demo from:
http://www.technowise.in/2009/12/uploadify-aspnet-c-vb-examples-demo.html
and when I try to run any of the aspx files, I just get the following message from the server:
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 46: ASP.NET to identify an incoming user.
Line 47: -->
Line 48: <authentication mode="Windows"/>
Line 49: <!--
Line 50: The <customErrors> section enables configuration
Source File: C:\Inetpub\wwwroot\test_uploader\uploadify\web.config Line: 48
Version Information: Microsoft .NET Framework Version:2.0.50727.3623; ASP.NET Version:2.0.50727.3618
Anyone know why this is happening? I can normally run asp.net 2.0 and above web-forms perfectly will on this server.
You get this error because you have place a web.config in a subdirectory and this contains sessions that should be there, except if you define a new application/pool asp.net in this subdirectory of your iis.
From you question, here is the path of your web.config, but this must be one directory up, or not exist at all, or remove the lines that can not be there.
C:\Inetpub\wwwroot\test_uploader\uploadify\web.config

Categories

Resources