Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Exception creating section handler (assembly could not be loaded)

Reply
Thread Tools

Exception creating section handler (assembly could not be loaded)

 
 
thehitman
Guest
Posts: n/a
 
      02-02-2006
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.DropDownListTableSe ttings,
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error creating section handler helpful sql ASP .Net 1 05-30-2005 06:13 PM
Parser Error Message: Exception in configuration section handler. Ramanfromoz@gmail.com ASP .Net 1 05-16-2005 07:35 AM
Exception in configuration section handler. Ollie Riches ASP .Net Web Services 2 03-08-2005 02:42 PM
Exception handler for STATUS_GUARD_PAGE exception. Todd A. Anderson C++ 1 11-03-2004 05:08 AM
Exception in configuration section handler using a Custom ConfigurationHandler murl ASP .Net 2 09-01-2004 07:37 AM



Advertisments