Professional Web Applications Themes

Exception in configuration section handler. - ASP.NET Web Services

I am trying to configure trace listeners in my web config file for an asp.net web service , but I seem to be having a problem. I'm hoping someone will be able to spot what I'm doing wrong... It comes up with an error 'Exception in configuration section handler' Line 38: </businessStream> Line 39: Line 40: <system.diagnostics> Line 41: <switches> Line 42: <add name="MainSwitch" value="4"/> <system.diagnostics> <switches> <add name="MainSwitch" value="4"/> </switches> <trace autoflush="true" indentsize="4"> <listeners> <add name="myListenere" type="System.Diagnostics.TextWriterTraceListener" initializeData="c:\myListener.log" /> </listeners> </trace> </system.diagnostics> <system.web> <compilation defaultLanguage="c#" debug="false" /> <trace enabled="false" requestLimit="10" pageOutput="true" traceMode="SortByTime" localOnly="true" /> <customErrors mode="RemoteOnly" /> <authentication mode="Windows" ...

  1. #1

    Default Exception in configuration section handler.

    I am trying to configure trace listeners in my web config file for an
    asp.net web service , but I seem
    to be having a problem. I'm hoping someone will be able to spot what I'm
    doing wrong...

    It comes up with an error 'Exception in configuration section handler'

    Line 38: </businessStream>
    Line 39:
    Line 40: <system.diagnostics>
    Line 41: <switches>
    Line 42: <add name="MainSwitch" value="4"/>


    <system.diagnostics>
    <switches>
    <add name="MainSwitch" value="4"/>
    </switches>
    <trace autoflush="true" indentsize="4">
    <listeners>
    <add name="myListenere" type="System.Diagnostics.TextWriterTraceListener"
    initializeData="c:\myListener.log" />
    </listeners>
    </trace>
    </system.diagnostics>

    <system.web>
    <compilation defaultLanguage="c#" debug="false" />
    <trace enabled="false" requestLimit="10" pageOutput="true"
    traceMode="SortByTime" localOnly="true" />
    <customErrors mode="RemoteOnly" />
    <authentication mode="Windows" />
    <authorization>
    <allow users="*" />
    </authorization>
    <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
    sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
    cookieless="false" timeout="20" />
    <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
    </system.web>

    Cheers

    Ollie Riches
    [url]http://www.phoneyser.net[/url]

    Disclaimer: Opinions expressed in this forum are my own, and not
    representative of my employer.
    I do not answer questions on behalf of my employer. I'm just a programmer
    helping programmers.


    Ollie Riches Guest

  2. #2

    Default Re: Exception in configuration section handler.

    got it working....

    You have to place the <system.diagnostics> tage after the <system.web> tag

    Ollie



    "Ollie Riches" <ollie.richesphoneser.net> wrote in message
    news:#zPGBD9IFHA.2704tk2msftngp13.phx.gbl...
    > I am trying to configure trace listeners in my web config file for an
    > asp.net web service , but I seem
    > to be having a problem. I'm hoping someone will be able to spot what I'm
    > doing wrong...
    >
    > It comes up with an error 'Exception in configuration section handler'
    >
    > Line 38: </businessStream>
    > Line 39:
    > Line 40: <system.diagnostics>
    > Line 41: <switches>
    > Line 42: <add name="MainSwitch" value="4"/>
    >
    >
    > <system.diagnostics>
    > <switches>
    > <add name="MainSwitch" value="4"/>
    > </switches>
    > <trace autoflush="true" indentsize="4">
    > <listeners>
    > <add name="myListenere"
    type="System.Diagnostics.TextWriterTraceListener"
    > initializeData="c:\myListener.log" />
    > </listeners>
    > </trace>
    > </system.diagnostics>
    >
    > <system.web>
    > <compilation defaultLanguage="c#" debug="false" />
    > <trace enabled="false" requestLimit="10" pageOutput="true"
    > traceMode="SortByTime" localOnly="true" />
    > <customErrors mode="RemoteOnly" />
    > <authentication mode="Windows" />
    > <authorization>
    > <allow users="*" />
    > </authorization>
    > <sessionState mode="InProc"
    stateConnectionString="tcpip=127.0.0.1:42424"
    > sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
    > cookieless="false" timeout="20" />
    > <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
    > </system.web>
    >
    > Cheers
    >
    > Ollie Riches
    > [url]http://www.phoneyser.net[/url]
    >
    > Disclaimer: Opinions expressed in this forum are my own, and not
    > representative of my employer.
    > I do not answer questions on behalf of my employer. I'm just a programmer
    > helping programmers.
    >
    >

    Ollie Riches Guest

  3. #3

    Default Re: Exception in configuration section handler.

    I also had to grant permissions for the 'NETWORK SERVICE' account to write
    to the location question

    Ollie

    "Ollie Riches" <ollie.richesphoneser.net> wrote in message
    news:eS0$Xg#IFHA.1528TK2MSFTNGP09.phx.gbl...
    > got it working....
    >
    > You have to place the <system.diagnostics> tage after the <system.web> tag
    >
    > Ollie
    >
    >
    >
    > "Ollie Riches" <ollie.richesphoneser.net> wrote in message
    > news:#zPGBD9IFHA.2704tk2msftngp13.phx.gbl...
    > > I am trying to configure trace listeners in my web config file for an
    > > asp.net web service , but I seem
    > > to be having a problem. I'm hoping someone will be able to spot what I'm
    > > doing wrong...
    > >
    > > It comes up with an error 'Exception in configuration section handler'
    > >
    > > Line 38: </businessStream>
    > > Line 39:
    > > Line 40: <system.diagnostics>
    > > Line 41: <switches>
    > > Line 42: <add name="MainSwitch" value="4"/>
    > >
    > >
    > > <system.diagnostics>
    > > <switches>
    > > <add name="MainSwitch" value="4"/>
    > > </switches>
    > > <trace autoflush="true" indentsize="4">
    > > <listeners>
    > > <add name="myListenere"
    > type="System.Diagnostics.TextWriterTraceListener"
    > > initializeData="c:\myListener.log" />
    > > </listeners>
    > > </trace>
    > > </system.diagnostics>
    > >
    > > <system.web>
    > > <compilation defaultLanguage="c#" debug="false" />
    > > <trace enabled="false" requestLimit="10" pageOutput="true"
    > > traceMode="SortByTime" localOnly="true" />
    > > <customErrors mode="RemoteOnly" />
    > > <authentication mode="Windows" />
    > > <authorization>
    > > <allow users="*" />
    > > </authorization>
    > > <sessionState mode="InProc"
    > stateConnectionString="tcpip=127.0.0.1:42424"
    > > sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
    > > cookieless="false" timeout="20" />
    > > <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
    > > </system.web>
    > >
    > > Cheers
    > >
    > > Ollie Riches
    > > [url]http://www.phoneyser.net[/url]
    > >
    > > Disclaimer: Opinions expressed in this forum are my own, and not
    > > representative of my employer.
    > > I do not answer questions on behalf of my employer. I'm just a
    programmer
    > > helping programmers.
    > >
    > >
    >
    >

    Ollie Riches Guest

Similar Threads

  1. Replies: 0
    Last Post: January 9th, 09:15 AM
  2. Page button throws exception even when handler is empty
    By ~~~ .NET Ed ~~~ in forum ASP.NET Building Controls
    Replies: 1
    Last Post: April 4th, 01:22 PM
  3. Assert Failed: No Exception Handler / IDS 9.40.TC2E1
    By Henri MOUKOURI in forum Informix
    Replies: 3
    Last Post: November 15th, 08:53 AM
  4. [PHP-DEV] Default exception handler
    By Marcus Börger in forum PHP Development
    Replies: 16
    Last Post: September 7th, 10:28 AM
  5. Assert Failed: No Exception Handler
    By janto@luzdelsur.com.pe in forum Informix
    Replies: 0
    Last Post: August 4th, 11:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139