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> 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> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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....
|
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...
|
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'"...
|
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...
|
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"....
|
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...
|
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...
|
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 =...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
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)...
| |