Saturday, March 31, 2012

Web.config explosion attempting custom section.

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,Syste m" />
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.

-----------------------
--

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573I 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

"James Coe" <starascendant@.hotmail.com> wrote in message
news:%23BceU3QbDHA.388@.TK2MSFTNGP10.phx.gbl...
> 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,Syste m" />
> 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.
>
>
> -----------------------
--
> --
> Version Information: Microsoft .NET Framework Version:1.1.4322.573;
ASP.NET
> Version:1.1.4322.573
Thank you, this did the trick.

James.

"Jerry III" <jerryiii@.hotmail.com> wrote in message
news:%23a1ryncbDHA.1552@.TK2MSFTNGP11.phx.gbl...
> 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
> "James Coe" <starascendant@.hotmail.com> wrote in message
> news:%23BceU3QbDHA.388@.TK2MSFTNGP10.phx.gbl...
> > 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,Syste m" />
> > 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.
> -----------------------
> --
> > --
> > Version Information: Microsoft .NET Framework Version:1.1.4322.573;
> ASP.NET
> > Version:1.1.4322.573

0 comments:

Post a Comment