473,287 Members | 1,659 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,287 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 4137
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'"...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.