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.Configu ration.Applicat ionSettingsGrou p), should it be there?
System.Configur ation and System.Configur ation.Install is referenced by the
project. If I remove the type parameter and value, I get the error:
Unrecognized attribute 'requirePermisi on'.
It appears 'requirePermisi on' parameter is no longer used, so when I remove
it,
I get an error with ConectionString s section!!
Unrecognized configuration section 'connectionStri ngs'
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.
<configuratio n>
<configSections >
<section name="exception Management"
type="Microsoft .ApplicationBlo cks.ExceptionMa nagement.Except ionManagerSecti onHandler,Micro soft.Applicatio nBlocks.Excepti onManagement,Ve rsion=1.3.0.0,C ulture=neutral, PublicKeyToken= 2e54ea205fb017a 3"/>
<sectionGroup name="applicati onSettings"
type="System.Co nfiguration.App licationSetting sGroup, System, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9" >
<section name="SponsorWe b.My.MySettings "
type="System.Co nfiguration.Cli entSettingsSect ion, System, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9" requirePermissi on="false" />
</sectionGroup>
</configSections>
<connectionStri ngs>
<clear/>
<add name="ABC" connectionStrin g="data source=(local); initial
catalog=ABC;use r id=NotReal;pass word=NotReal;pe rsist security
info=True;pooli ng=true"/>
</connectionStrin gs>
....
</configuration> 1 4156
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.Configu ration.Applicat ionSettingsGrou p), should it be there? System.Configur ation and System.Configur ation.Install is referenced by the project. If I remove the type parameter and value, I get the error: Unrecognized attribute 'requirePermisi on'. It appears 'requirePermisi on' parameter is no longer used, so when I remove it, I get an error with ConectionString s section!! Unrecognized configuration section 'connectionStri ngs'
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.
<configuratio n> <configSections > <section name="exception Management" type="Microsoft .ApplicationBlo cks.ExceptionMa nagement.Except ionManagerSecti onHandler,Micro soft.Applicatio nBlocks.Excepti onManagement,Ve rsion=1.3.0.0,C ulture=neutral, PublicKeyToken= 2e54ea205fb017a 3"/> <sectionGroup name="applicati onSettings" type="System.Co nfiguration.App licationSetting sGroup, System, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9" > <section name="SponsorWe b.My.MySettings " type="System.Co nfiguration.Cli entSettingsSect ion, System, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9" requirePermissi on="false" /> </sectionGroup> </configSections> <connectionStri ngs> <clear/> <add name="ABC" connectionStrin g="data source=(local); initial catalog=ABC;use r id=NotReal;pass word=NotReal;pe rsist security info=True;pooli ng=true"/> </connectionStrin gs> ... </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 naming scheme for the
elements. But am I limited to using the <appSettings> element for my
settings? It would be good to have elements such as <myClass1Stuff> so that
it's easy to tell which settings go with each class. But whether I put...
|
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
example I have a solution that has four subprojects - 3 class libraries and
1 windows forms app.
Q - Some of these projects - both class library and win form application
|
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 files, which in turn could be simply and easily maintained with
notepad.
I understand the benefits of XML, really, but in the case of configuration
files it seems it is almost always nothing more than unnecessary complexity,
both in accessing them...
|
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 the aspx (as you would
realistically) I get this :
Details: To enable the details of this specific error message to be
viewable on remote machines, please create a <customErrors> tag within a
"web.config" configuration file located in the root...
|
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 references were added to using the
Projects tab on the Add Reference dialog and not by
browsing to the DLL for the project.
When we build or run the solution "bogus" compile errors
| |
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 attribute
within the <uipConfiguration> element:
Message 1 Could not find schema information for the element
'uipConfiguration'.
Message 2 Could not find schema information for the element 'objectTypes'.
Message 3 Could not find schema information...
|
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.
I tried this:
// myapp.exe.config
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE configuration >
|
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 the
assembly which mirror the values in the table. When building the app
it generates WindowsApplication1.exe.config which is a copy of
App.Config. However If I change the content of the
WindowsApplication1.exe.config file using notepad, say from
|
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'" is reported.
....
<pages>
<namespaces>
<clear></clear>
<add namespace="System"/>
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |