Exception creating section handler (assembly could not be loaded)

T

thehitman

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top