Web.config explosion attempting custom section.

J

James Coe

ARGH! Any ideas why this might be happening? The code I'm using comes
straight from the example in the VB.NET Help System. All I did was tweak the
name= stuff to match my application.

Server Error in '/ImageMaker' Application.
----------------------------------------------------------------------------
----

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 Message: Exception creating section handler.

Source Error:


Line 3: <configSections>
Line 4: <sectionGroup name="imagemaker">
Line 5: <section name="settings"
type="System.Configuration.NameValueSectionHandler,System" />
Line 6: </sectionGroup>
Line 7: </configSections>


Source File: c:\inetpub\wwwroot\ImageMaker\web.config Line: 5

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


=== Pre-bind state information ===
LOG: DisplayName = System
(Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/ImageMaker
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: System
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/imagemaker/cb080e7b/cad84567/System.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/imagemaker/cb080e7b/cad84567/System/System.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/ImageMaker/bin/System.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/ImageMaker/bin/System/System.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/imagemaker/cb080e7b/cad84567/System.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/imagemaker/cb080e7b/cad84567/System/System.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/ImageMaker/bin/System.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/ImageMaker/bin/System/System.EXE.
 
J

Jerry III

I had the same issue. Fixed it by using fully qualified name for type, like
this:

<section name="..." type="System.Configuration.NameValueFileSectionHandler,
System, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" />

You can copy a working type from machine.config (the one above is from 1.1
framework, I would think 1.0 has a different version and/or public key
token).

Jerry
 
J

James Coe

Thank you, this did the trick.

James.

Jerry III said:
I had the same issue. Fixed it by using fully qualified name for type, like
this:

<section name="..." type="System.Configuration.NameValueFileSectionHandler,
System, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" />

You can copy a working type from machine.config (the one above is from 1.1
framework, I would think 1.0 has a different version and/or public key
token).

Jerry
 

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,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top