The configuration section cannot contain a CDATA or text element - asp.net

I am working on a vb.net web application project. And I was stucked by the following error. I believe there is not syntax with my web.config. Please help me.
Server Error in '/TSCA' 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: The configuration section cannot contain a CDATA or text element.
Source Error:
Line 58: -->
Line 59:
Line 60:
Line 61:
Line 62:
Source File: C:\Users\310126745\Documents\TSCA\web.config Line: 60
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929

I hads same issue, You should resolve in two simple steps.
1) verify by opening the URL of the Web Service in the Web browser and make sure it is properly responding. (IMPORTANT)
2) If step 1 turned out well, sure there are no typos in the web.config since (happened to me) what can happen is you have been a character "<" or ">" or misspelled most.

Related

BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.staff_hod_site_master'

while running my page showing error one error. The error is :
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.
Compiler Error Message: BC30456: 'CreateResourceBasedLiteralControl'
is not a member of 'ASP.staff_hod_site_master'.
Source Error:
Line 23: Line 24: Line 25: Line 26: This shop requires
JavaScript to run correctly. Please activate JavaScript in your
browser. Line 27:
Help me to find a proper solution. Thank you.
Check your Page directive and make sure it is inheriting the proper file.
<%# Page Language="VB" AutoEventWireup="false" CodeFile="Index.aspx.vb" Inherits="Reports_Index" %>
And check the partial class too.
Partial Class Reports_Index
This typically happens if you renamed the file.
Check for other/additional dependencies which you might've missed. The last time I had this error it was because I only deployed the files which were part of my current build, instead of all of the files in my ./bin/ folder. I looked in my (currently working) dev machine, in the project/bin/ folder and found a few additional files (which were not in my newest build). Once I added those to my server, problem-solved.

Running Default ASP.NET version 4.0 web Application gives - Server Error in '/'Application

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: Root element is missing.
Source Error:
[No relevant source lines]
Source File: D:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config Line: 0
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408
How to fix "Root element is missing." when doing a Visual Studio (VS) Build?
Make sure that your web.config isn't empty. It needs a <configuration> element at the root.

Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive

I have just uploaded my website on a hosting site.
I get the following error while I try to access my site.
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: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Line 7:<system.web>
Line 8:<customErrors mode="Off"/>
Line 9:<compilation debug="true" targetFramework="4.0">
Please help,
Thank You
Parth.
This normally happens when your application pool in IIS is set to 2.0 instead of 4.0
For convenience of others, go to control panel -> Admin tools -> IIS Manager -> View Application Pool -> Change .NET version from 2.0 to 4.0

Could not load type 'NavigateWebApp.Global'

Recently we have moved our project to web app and everything is good but suddenly I do not know when I am trying to debug my application its showing me the following error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'NavigateWebApp.Global'.
Source Error:
Line 1: <%# Application Codebehind="Global.asax.cs" Inherits="NavigateWebApp.Global" Language="C#" %>
Source File: /global.asax Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4971; ASP.NET Version:2.0.50727.4971
I am sure that there are no build errors.
This is probably caused by your 'NavigateWebApp.Global' class/namespace not being available in the location you've specified.
Check where you define this and ensure it's accessible to the Global.asax page.
The root of the problem is your Global.asax file is referencing a class which no longer exists (or at least at the location you have specified). Simple fix is to update the Inherits attribute with the fully qualified path to your Global.asax class name (which you will find in the Global.asax.cs file).

Configuration Error on custom config section -- could not find the file specified?

This has worked fine locally for months and just broke on deployment to the server (discountasp). I'm developing with .net 3.5 and asp.net mvc. I've previously successfully hosted asp.net mvc applications on this same account (but without the config section).
I have a custom config section set up in my web.config file that's causing the following error on load:
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 creating the configuration section handler for SCConfig: The system cannot find the file specified.
Source Error:
Line 179:
Line 180: <SCConfig>
Line 181: <authentication>
Line 182: <groups Administrators="Administrator" Auditors="Auditor" Auditor_Supervisors="Auditor Supervisor" Auditor_Externals="External Auditor" Biz_Users="Business User"/>
Source File: E:\web\irstagelert\htdocs\web.config Line: 180
Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074
The part of the web.config where I define the config handler is:
<section name="SCConfig" type="com.lerteco.SoxCompliance.ConfigHandler.CustomTagHandler, com.lerteco.SoxCompliance.ConfigHandler"/>
I've played with a few different iterations of the type, but they all produce the same error message as above.
The top of the class file is:
namespace com.lerteco.SoxCompliance.ConfigHandler
{
[Flags]
public enum GroupCodes
{
....
}
public class CustomTagHandler : IConfigurationSectionHandler
{
public object Create(object parent, object configContext, XmlNode section)
{
And I've confirmed that on the host the /bin/ directory contains both the com.lerteco.SoxCompliance.ConfigHandler.dll and ....pdb files.
Thanks for any help,
James
Jacob was right; it wasn't the handler file itself, but an error being generated from within the handler.
I ended up writing code and moving around return statements until I found the problem.
Specifically, I created an RSACrytpoServiceProvider() and got the error detailed in this posting RSACryptoServiceProvider CryptographicException System Cannot Find the File Specified under ASP.NET .
James

Resources