Exception creating section handler (assembly could not be loaded)

Discussion in 'ASP .Net' started by thehitman, Feb 2, 2006.

  1. thehitman

    thehitman Guest

    I used an article "Creating a Flexible Configuration Section Handler
    "(http://www.15seconds.com/issue/040504.htm). The Console application
    works with app.config but with the web.config. The Namespace change and
    inserting into a class library are the only differences in the code.

    In the web config
    <!-- Config section Group and Sections Declaration -->
    <configSections>
    <section
    name="DropDownListTableSettings"
    type="EC3Library.Configuration.XmlConfigurator,
    EC3Library.Configuration"/>
    </configSections>

    <DropDownListTableSettings
    type="EC3Library.Configuration.DropDownListTableSettings,
    EC3Library.Configuration">
    <DropDownListTables>
    <DropDownListTable CacheKey = "ItemListAgency" CacheDuration = "100"
    DataTextField = "AgencyCodeOEC" DataValueField =
    "AgencyDivisionSeqid" TableName = "AgencyDivision"/>
    <DropDownListTable CacheKey = "ItemListAgency1" CacheDuration =
    "100" DataTextField = "AgencyCodeOEC" DataValueField =
    "AgencyDivisionSeqid" TableName = "AgencyDivision"/>
    <DropDownListTable CacheKey = "ItemListAgency2" CacheDuration =
    "100" DataTextField = "AgencyCodeOEC" DataValueField =
    "AgencyDivisionSeqid" TableName = "AgencyDivision"/>
    <DropDownListTable CacheKey = "ItemListAgency3" CacheDuration =
    "100" DataTextField = "AgencyCodeOEC" DataValueField =
    "AgencyDivisionSeqid" TableName = "AgencyDivision"/>
    </DropDownListTables>
    </DropDownListTableSettings>


    The error message when called from a page.

    Parser Error Message: Exception creating section handler.
    Source Error:
    Line 5: <section
    Line 6: name="DropDownListTableSettings"
    Line 7: type="EC3Library.Configuration.XmlConfigurator,
    EC3Library.Configuration"/>
    Line 8: </configSections>
    Line 9:
    Source File: c:\inetpub\wwwroot\EC3\web.config Line: 7

    Assembly Load Trace: The following information can be helpful to
    determine why the assembly 'EC3Library.Configuration' could not be
    loaded.

    === Pre-bind state information ===
    LOG: DisplayName = EC3Library.Configuration
    (Partial)
    LOG: Appbase = file:///c:/inetpub/wwwroot/EC3
    LOG: Initial PrivatePath = bin
    Calling assembly : (Unknown).
    ===
    LOG: Policy not being applied to reference at this time (private,
    custom, partial, or location-based assembly bind).
    LOG: Post-policy reference: EC3Library.Configuration
    thehitman, Feb 2, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Marcelo Birnbach [MS]
    Replies:
    0
    Views:
    3,317
    Marcelo Birnbach [MS]
    Jun 28, 2003
  2. KK
    Replies:
    1
    Views:
    4,866
    A. Elamiri
    Apr 12, 2004
  3. =?Utf-8?B?QXNoYQ==?=

    the assembly 'ASPnetMenu' could not be loaded...

    =?Utf-8?B?QXNoYQ==?=, Apr 9, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    1,287
    Teemu Keiski
    Apr 9, 2005
  4. Replies:
    1
    Views:
    3,685
  5. glitteringsounds
    Replies:
    1
    Views:
    1,320
    Alf P. Steinbach /Usenet
    Jul 3, 2010
Loading...

Share This Page