configSections - .Net Bug - Please Help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jaco De Villiers

    configSections - .Net Bug - Please Help

    Hi,
    I have added the following group and section:
    <configSections >
    <section name="sampleSec tion"

    type="System.Co nfiguration.Sin gleTagSectionHa ndler" />
    <sectionGroup name="tilos.sdk ">
    <section name="tilos.dat a"
    type="System.Co nfiguration.Nam eValueSectionHa ndler,System"
    />
    </sectionGroup>
    </configSections>

    <tilos.sdk>
    <tilos.data>
    <add key="Configured Environments"
    value="Environm entList.aspx" />
    </tilos.data>
    </tilos.sdk>

    When I debug my web application I get "Exception creating
    section handler". It seems that the application does not
    find the System.Dll (Standard Reference). All the paths
    attempted are incorrect and does not include the framework
    path. See Error detail below:


    === Pre-bind state information ===
    LOG: DisplayName = System
    (Partial)
    LOG: Appbase = file:///C:/Source_Tilos_2_ 3/Tilos.SDK
    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/Tempor
    ary ASP.NET Files/tilos.sdk/a3c073d2/199faa55/System.DLL.
    LOG: Attempting download of new URL
    file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Tempor
    ary ASP.NET
    Files/tilos.sdk/a3c073d2/199faa55/System/System.DLL.
    LOG: Attempting download of new URL
    file:///C:/Source_Tilos_2_ 3/Tilos.SDK/bin/System.DLL.
    LOG: Attempting download of new URL
    file:///C:/Source_Tilos_2_ 3/Tilos.SDK/bin/System/System.DLL
    ..
    LOG: Attempting download of new URL
    file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Tempor
    ary ASP.NET Files/tilos.sdk/a3c073d2/199faa55/System.EXE.
    LOG: Attempting download of new URL
    file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Tempor
    ary ASP.NET
    Files/tilos.sdk/a3c073d2/199faa55/System/System.EXE.
    LOG: Attempting download of new URL
    file:///C:/Source_Tilos_2_ 3/Tilos.SDK/bin/System.EXE.
    LOG: Attempting download of new URL
    file:///C:/Source_Tilos_2_ 3/Tilos.SDK/bin/System/System.EXE
    ..



  • Richard Grimes [MVP]

    #2
    Re: configSections - .Net Bug - Please Help

    You need to give the *complete* name of the system DLL. 'System' is just the
    DOS file name part of it (the short name), you need to supply the version,
    culture and public key token:

    type="System.Co nfiguration.Nam eValueSectionHa ndler, System,
    Version=1.0.330 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9" />

    Richard
    --
    my email evpuneqt@zicf.b et is encrypted with ROT13 (www.rot13.org)


    "Jaco De Villiers" <jacodv_32@hotm ail.com> wrote in message
    news:04b501c350 45$75d5feb0$a00 1280a@phx.gbl.. .[color=blue]
    > Hi,
    > I have added the following group and section:
    > <configSections >
    > <section name="sampleSec tion"
    >
    > type="System.Co nfiguration.Sin gleTagSectionHa ndler" />
    > <sectionGroup name="tilos.sdk ">
    > <section name="tilos.dat a"
    > type="System.Co nfiguration.Nam eValueSectionHa ndler,System"
    > />
    > </sectionGroup>
    > </configSections>
    >
    > <tilos.sdk>
    > <tilos.data>
    > <add key="Configured Environments"
    > value="Environm entList.aspx" />
    > </tilos.data>
    > </tilos.sdk>
    >
    > When I debug my web application I get "Exception creating
    > section handler". It seems that the application does not
    > find the System.Dll (Standard Reference). All the paths
    > attempted are incorrect and does not include the framework
    > path. See Error detail below:
    >
    >
    > === Pre-bind state information ===
    > LOG: DisplayName = System
    > (Partial)
    > LOG: Appbase = file:///C:/Source_Tilos_2_ 3/Tilos.SDK
    > 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/Tempor
    > ary ASP.NET Files/tilos.sdk/a3c073d2/199faa55/System.DLL.
    > LOG: Attempting download of new URL
    > file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Tempor
    > ary ASP.NET
    > Files/tilos.sdk/a3c073d2/199faa55/System/System.DLL.
    > LOG: Attempting download of new URL
    > file:///C:/Source_Tilos_2_ 3/Tilos.SDK/bin/System.DLL.
    > LOG: Attempting download of new URL
    > file:///C:/Source_Tilos_2_ 3/Tilos.SDK/bin/System/System.DLL
    > .
    > LOG: Attempting download of new URL
    > file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Tempor
    > ary ASP.NET Files/tilos.sdk/a3c073d2/199faa55/System.EXE.
    > LOG: Attempting download of new URL
    > file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Tempor
    > ary ASP.NET
    > Files/tilos.sdk/a3c073d2/199faa55/System/System.EXE.
    > LOG: Attempting download of new URL
    > file:///C:/Source_Tilos_2_ 3/Tilos.SDK/bin/System.EXE.
    > LOG: Attempting download of new URL
    > file:///C:/Source_Tilos_2_ 3/Tilos.SDK/bin/System/System.EXE
    > .
    >
    >
    >[/color]


    Comment

    Working...