473,378 Members | 1,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Web.Config parsing errors with Web App projects using IIS

Has the Schema of the Web.Config changed in Web App Projects? After
converting my 2005 Web Site project to a 2005 WAP, and switching to IIS
Web Server, I am getting a number of errors at run time in my web.config
files starting with:
Unrecognized attribute 'type'.
This error occurs when parsing the web.config file where first highlighted
below.
I do not see the referenced type in the GAC
(System.Configuration.ApplicationSettingsGroup), should it be there?
System.Configuration and System.Configuration.Install is referenced by the
project. If I remove the type parameter and value, I get the error:
Unrecognized attribute 'requirePermision'.
It appears 'requirePermision' parameter is no longer used, so when I remove
it,
I get an error with ConectionStrings section!!
Unrecognized configuration section 'connectionStrings'

I am including part of the config file that appears to be causing the error,
modified
only to hide connection string passwords etc. This error does not seem to
occur
when using Development Server. BTW I followed the steps provided by Scott
Guthrie to convert from WSP to WAP.

<configuration>
<configSections>
<section name="exceptionManagement"
type="Microsoft.ApplicationBlocks.ExceptionManagem ent.ExceptionManagerSectionHandler,Microsoft.Appli cationBlocks.ExceptionManagement,Version=1.3.0.0,C ulture=neutral,PublicKeyToken=2e54ea205fb017a3"/>
<sectionGroup name="applicationSettings"
type="System.Configuration.ApplicationSettingsGrou p, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="SponsorWeb.My.MySettings"
type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
<connectionStrings>
<clear/>
<add name="ABC" connectionString="data source=(local);initial
catalog=ABC;user id=NotReal;password=NotReal;persist security
info=True;pooling=true"/>
</connectionStrings>
....
</configuration>

May 17 '06 #1
1 4141
IIS virtual directories were set to 1.1 instead of 2.0.

"David Williams" wrote:
Has the Schema of the Web.Config changed in Web App Projects? After
converting my 2005 Web Site project to a 2005 WAP, and switching to IIS
Web Server, I am getting a number of errors at run time in my web.config
files starting with:
Unrecognized attribute 'type'.
This error occurs when parsing the web.config file where first highlighted
below.
I do not see the referenced type in the GAC
(System.Configuration.ApplicationSettingsGroup), should it be there?
System.Configuration and System.Configuration.Install is referenced by the
project. If I remove the type parameter and value, I get the error:
Unrecognized attribute 'requirePermision'.
It appears 'requirePermision' parameter is no longer used, so when I remove
it,
I get an error with ConectionStrings section!!
Unrecognized configuration section 'connectionStrings'

I am including part of the config file that appears to be causing the error,
modified
only to hide connection string passwords etc. This error does not seem to
occur
when using Development Server. BTW I followed the steps provided by Scott
Guthrie to convert from WSP to WAP.

<configuration>
<configSections>
<section name="exceptionManagement"
type="Microsoft.ApplicationBlocks.ExceptionManagem ent.ExceptionManagerSectionHandler,Microsoft.Appli cationBlocks.ExceptionManagement,Version=1.3.0.0,C ulture=neutral,PublicKeyToken=2e54ea205fb017a3"/>
<sectionGroup name="applicationSettings"
type="System.Configuration.ApplicationSettingsGrou p, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="SponsorWeb.My.MySettings"
type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
<connectionStrings>
<clear/>
<add name="ABC" connectionString="data source=(local);initial
catalog=ABC;user id=NotReal;password=NotReal;persist security
info=True;pooling=true"/>
</connectionStrings>
...
</configuration>

May 19 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Marty McDonald | last post by:
Many of an app's classes could read the config file. The config file could contain many elements, and it will be difficult to know which config file entry belongs to which class. I could adopt a...
3
by: Simon | last post by:
Hi everyone, I really need help with the following: It's common in app development to create numerous projects under one solution that as a whole combine to become your final application. For...
22
by: Daniel Billingsley | last post by:
Ok, I wanted to ask this separate from nospam's ridiculous thread in hopes it could get some honest attention. VB6 had a some simple and fast mechanisms for retrieving values from basic text...
25
by: n3crius | last post by:
hi, i just got a web host with asp.net , seemed really cool. aspx with the c# or vb IN the actual main page run fine, but when i use codebehind and make another source file ( a .cs) to go with...
1
by: Ravi Chaudhary | last post by:
Hi, We are using VS.Net 2003 and coding in VB.net. The solution has 38 projects; most of the projects in the solution reference other projects (without any circular references) and all the...
7
by: SparkPlug | last post by:
Does anyone know why I might be getting an XmlSchemaException in App.config configured as below to use the UIP Application Block? I get the following error for every element, sub-element and...
1
by: Harold Howe | last post by:
When .NET loads an app.config at runtime (myapp.exe.config), will it honor an entity declaration? Based on what I am seeing, the answer is no, but I think, or hope, that I am doing something wrong....
10
by: RedLars | last post by:
Hi, Have a question about an AppSetting's file in VS2005. Under Assembly \ Properties I got a Settings.settings which contains a table of name, type, value etc. I also got a App.Config file in...
3
by: =?Utf-8?B?RGFuYQ==?= | last post by:
I am re-posting this message after registering my posting alias. When I specify an end tag for the clear element of namespaces in my web.config file, the parser error "Unrecognized element 'add'"...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.