473,763 Members | 7,719 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[Help needed]: Error retrieving data from Web.config.

DS
Hi all,

Will appreciate if someone can help me with this problem.

I am using VS 2003 on Win2000, sp 4. 2GB RAM.
Session data is stored on DB on another machine in network. Can
connect to the DB (no problem with that). I try to save DB connection
string in web.config file, as described in MSDN 'Declaring and
Accessing Section Groups' article. I think this is optimal way/place
to store global variables accessible from any part of application. I
am getting following error while trying to retrieve value from
Web.config:

==
Parser Error Message: Exception creating section handler.
Source Error:
Line 5: type="System.Co nfiguration.Sin gleTagSectionHa ndler"/>
Line 6: <sectionGroup name="dddSqlGro up">
Line 7: <section name="sqlConnec tionCrd"
type="System.Co nfiguration.Nam eValueSectionHa ndler,System" />
Line 8: </sectionGroup>
Line 9: </configSections>

Source File: C:\Inetpub\wwwr oot\Memocast\we b.config Line: 7
Assembly Load Trace: The following information can be helpful to
determine why the assembly 'System' could not be loaded.
=

Web.config file:
====
<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>
<configSections >
<section name="dddcastSe ction"
type="System.Co nfiguration.Sin gleTagSectionHa ndler"/>
<sectionGroup name="dddSqlGro up">
<section name="sqlConnec tionCrd"
type="System.Co nfiguration.Nam eValueSectionHa ndler,System" />
</sectionGroup>
</configSections>

<dddSqlGroup>
<sqlConnectionC rd>
<add key="sqlConnect Str" value="Persist Security
Info=False;Inte grated
Security=false; database=dddcas t;server=dddCSQ L;User
ID=sa;Password= dsadsaaa;Connec t Timeout=30" />
</sqlConnectionCr d>
</dddSqlGroup>

<system.web>

.....
other config sections
===

DS
Nov 18 '05 #1
1 1796
For assemblies located in the GAC (which System is) you need to specify the
assemblies strong name:

System.Configur ation.NameValue FileSectionHand ler, System,
Version=1.0.330 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9
Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"DS" <si*******@hotm ail.com> wrote in message
news:9a******** *************** ***@posting.goo gle.com...
Hi all,

Will appreciate if someone can help me with this problem.

I am using VS 2003 on Win2000, sp 4. 2GB RAM.
Session data is stored on DB on another machine in network. Can
connect to the DB (no problem with that). I try to save DB connection
string in web.config file, as described in MSDN 'Declaring and
Accessing Section Groups' article. I think this is optimal way/place
to store global variables accessible from any part of application. I
am getting following error while trying to retrieve value from
Web.config:

==
Parser Error Message: Exception creating section handler.
Source Error:
Line 5: type="System.Co nfiguration.Sin gleTagSectionHa ndler"/>
Line 6: <sectionGroup name="dddSqlGro up">
Line 7: <section name="sqlConnec tionCrd"
type="System.Co nfiguration.Nam eValueSectionHa ndler,System" />
Line 8: </sectionGroup>
Line 9: </configSections>

Source File: C:\Inetpub\wwwr oot\Memocast\we b.config Line: 7
Assembly Load Trace: The following information can be helpful to
determine why the assembly 'System' could not be loaded.
=

Web.config file:
====
<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>
<configSections >
<section name="dddcastSe ction"
type="System.Co nfiguration.Sin gleTagSectionHa ndler"/>
<sectionGroup name="dddSqlGro up">
<section name="sqlConnec tionCrd"
type="System.Co nfiguration.Nam eValueSectionHa ndler,System" />
</sectionGroup>
</configSections>

<dddSqlGroup>
<sqlConnectionC rd>
<add key="sqlConnect Str" value="Persist Security
Info=False;Inte grated
Security=false; database=dddcas t;server=dddCSQ L;User
ID=sa;Password= dsadsaaa;Connec t Timeout=30" />
</sqlConnectionCr d>
</dddSqlGroup>

<system.web>

....
other config sections
===

DS

Nov 18 '05 #2

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

Similar topics

0
1345
by: Jason | last post by:
I have an XML web control on a usercontrol. The only purpose for this usercontrol is to get XML data from a URL and display it in the xml web control with the help of XSL. I can get this to work if I log into the machine that is hosting the website, whether it be my dev box or staging box. When I try to access the page remotely, I get an error: This is an unexpected token. The expected token is 'QUOTE'. Line 1, position 110.
3
4729
by: DM | last post by:
newbie trying to set up a Database and keep getting the same result. ERROR An error occured while retrieving the information from the database: Unable to cast COM object of type 'System._ComObject' to interface type 'Microsoft.VisualStudio.OLE.Interop.IServiceProvider'. This operation failed because the QueryInterface call on th COM component for the interface with IID '{65D5140C1-7436-11CE-8034-00aa006009FA}' failed with HRESULT:...
4
2541
by: RM | last post by:
Had VS .Net 2002 installed on W2k Server SP3 and supported a number of web sites. Installed VS .Net 2003 on Friday and now all web sites using .Net & MS ACCESS get this strange error upon open. ASP=/TestDotNet/AdoNet.aspx System.Data.OleDb.OleDbException: Unspecified error at System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) at System.Data.OleDb.OleDbConnection.InitializeProvider() at System.Data.OleDb.OleDbConnection.Open()...
4
1528
by: Jie | last post by:
Hi, I am using Visual Studio .Net 2003 in XP environment. It keeps coming up the following error. So I have to restart the PC every time it comes. Please advise what is wrong with this. Thanks. 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...
15
2580
by: Jay | last post by:
I have a multi threaded VB.NET application (4 threads) that I use to send text messages to many, many employees via system.timer at a 5 second interval. Basically, I look in a SQL table (queue) to determine who needs to receive the text message then send the message to the address. Only problem is, the employee may receive up to 4 of the same messages because each thread gets the recors then sends the message. I need somehow to prevent...
6
3360
by: AppleBag | last post by:
I'm having the worst time trying to login to myspace through code. Can someone tell me how to do this? Please try it yourself before replying, only because I have asked this a couple of times in the past in other places, and while the help was much appreciated, it seemed everyone just wanted to 'theoretically' explain how to do it, but when I tried to do it myself, I couldn't login. I want to simply pass the email address and password to...
4
2215
by: Brad Isaacs | last post by:
I am working with ASP.NET 2.0 and using an SQL Server 2000 database. I am using Visual Studio 2005 and developing on my Local machine. I am working with Login controls ASP.Configuration, I wanted to move my work and needed to place it on the server. Using VS 2005 , went to BUILD -Publish Web Site Checked the box for :: Alow this precompiled site to be updatable.
1
2619
by: Joel Fireman | last post by:
Help Needed: Upgrade Fedora 4 / Apache 2 to PHP 5.2.x from 5.0.4 I've been testing Joomla as a content manager for the County offices, and it looks pretty good. Unfortunately, I decided to upgrade it from the 1.0.13 version to 1.5 as we get ready to go live with the web site... and the update installation gives an error in XML processing, which seems (from what I've been able to dredge up in forum discussions) to stem from a known bug in...
12
2478
by: =?Utf-8?B?ZGdvdw==?= | last post by:
I designed a "contact_us" page in visual web developer 2005 express along with EW2 after viewing tutorials on asp.net's help page. Features work like they should, but I cannot figure out how to send contact info to email or data base when the "send" button is pressed. I've watched the tutorials over & over again. I just can't get it. Link: http://www.syfloristonline.zipa.com/contact_us.aspx. Need help
0
9563
marktang
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...
0
10144
Oralloy
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...
1
9937
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8821
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5270
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...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3522
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2793
bsmnconsultancy
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...

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.