Wrox Programmer Forums
|
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 3rd, 2005, 09:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default DictionarySectionHandler

I'm using a DictionarySectionHandler to handle a segment of <add key="" value=""> elements, that should return a hashtable. However, it is telling me it can't find the DictionarySectionHandler. I have it defined in the <configSections> as:

System.Configuration.DictionarySectionHandler,
System, Version=1.0.3300.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089

Is that correct? Does it exist in the GAC, or do I have to ensure it is there, or can I use the full namespace, assembly notation?

Brian
__________________
Brian
 
Old February 3rd, 2005, 01:26 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Default

If you're just doing

Code:
Dim dsh as DictionarySectionHandler
then you either need to:
1) have an 'Imports System.Configuration' at the top of the code file.
2) have a project level import (from your project property pages, accessed by right clicking your project in Solution Explorer and choosing properties, go into 'Common Properties'->'Imports' and put in System.Configuration).
3) Reference the whole Namespace every time you need to (i.e. 'Dim dsh as System.Configuration.DictionarySectionHandler').










Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.