Exception in configuration section handler.

  • Thread starter Thread starter Jason Nissen
  • Start date Start date
J

Jason Nissen

I am getting the following error when calling a web method in an ASP.NET Web
Service from an ASP.NET Web application:

Exception in configuration section handler.
(c:\winnt\microsoft.net\framework\v1.0.3705\Config\machine.config line 66)

As far as I can tell there is nothing invalid in the machine.config file.
This error does not always occur, sometimes after a reboot or an IIS Reset
it work for awhile but eventually it returns.

Has anyone encountered this error?
 
Please wait while I use my magic powers to read line 66 of your
machine.config... Once I'm done I might be able to help you with the error.

Jerry
 
Hi Jason,

What does the line 66 look like? Is the excution always blocked by line 66?

Regards,

Felix Wu
=============
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
 
Sorry I should have provided what the entry was in the machine.config:

It has consistently been line 66 in the error message.

The <defaultProxy> tag is at line 66.
...
<system.diagnostics>
<switches>
<!-- <add name="SwitchName" value="4"/> -->
</switches>
<trace autoflush="false" indentsize="4"/>
<!-- <assert assertuienabled="true"
logfilename=".\TraceLog.txt"/> -->
</system.diagnostics>

<system.net>
<defaultProxy> <!-- This is line 66 -->

<!--
The following entry enables reading of the per user (LAN)
Internet settings.
Adding additional proxy settings, without first setting to
"false",
will individually override. Note that "Automatic
configuration" and
"automatic configuration scripts" cannot be read.

<proxy> settings:
usesystemdefault="[true|false]" - Read settings from
Internet Options (see above)
proxyaddress="[string]" - A Uri string of the proxy
server to use.
bypassonlocal="[true|false]" - Enables bypassing of the
proxy for local resources.
-->

<proxy
usesystemdefault="true"
/>

<!-- use this section to disable proxy use for matching servers
example:
<bypasslist>
<add address="bypassRegexString" />
</bypasslist>
-->

<!-- use this section to override proxy settings with your own
IWebProxy implementation
example:
<module
type="System.Net.WebProxy, System.Net, Version=1.0.3300.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
/>
-->

</defaultProxy>
...
 
Hi Jason,

Probably, this is caused by permission issues. Since the
"usesystemdefault" is set to "true", ASP.NET will attempt to read the IE
proxy setting from the registry, but it may not have access permission to
it.

For test purpose, you could try explictly specifying the proxy settings in
the <proxy> element.

Regards,

Felix Wu
=============
This posting is provided "AS IS" with no warranties, and confers no rights.



--------------------
From: "Jason Nissen" <[email protected]>
References: <[email protected]>
Subject: Re: Exception in configuration section handler.
Date: Wed, 10 Sep 2003 10:06:46 -0500
Lines: 110
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <[email protected]>
Newsgroups: microsoft.public.dotnet.framework
NNTP-Posting-Host: gw126.cunamutual.com 64.73.98.126
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework:53378
X-Tomcat-NG: microsoft.public.dotnet.framework

Sorry I should have provided what the entry was in the machine.config:

It has consistently been line 66 in the error message.

The <defaultProxy> tag is at line 66.
...
<system.diagnostics>
<switches>
<!-- <add name="SwitchName" value="4"/> -->
</switches>
<trace autoflush="false" indentsize="4"/>
<!-- <assert assertuienabled="true"
logfilename=".\TraceLog.txt"/> -->
</system.diagnostics>

<system.net>
<defaultProxy> <!-- This is line 66 -->

<!--
The following entry enables reading of the per user (LAN)
Internet settings.
Adding additional proxy settings, without first setting to
"false",
will individually override. Note that "Automatic
configuration" and
"automatic configuration scripts" cannot be read.

<proxy> settings:
usesystemdefault="[true|false]" - Read settings from
Internet Options (see above)
proxyaddress="[string]" - A Uri string of the proxy
server to use.
bypassonlocal="[true|false]" - Enables bypassing of the
proxy for local resources.
-->

<proxy
usesystemdefault="true"
/>

<!-- use this section to disable proxy use for matching servers
example:
<bypasslist>
<add address="bypassRegexString" />
</bypasslist>
-->

<!-- use this section to override proxy settings with your own
IWebProxy implementation
example:
<module
type="System.Net.WebProxy, System.Net, Version=1.0.3300.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
/>
-->

</defaultProxy>
...

Felix Wu said:
Hi Jason,

What does the line 66 look like? Is the excution always blocked by line 66?

Regards,

Felix Wu
=============
This posting is provided "AS IS" with no warranties, and confers no rights.
 
?????????????????.??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????.??????????????????????????????????????????>?????????????????????????????>??????????????????????????????????????????????>?>????????????????????????????????????????????????????????>???????????>???????????>?????????????????????????????????????????????????????????>????????????????????????????????????????????????????????????????????????????>????????????????????????????????????>?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????.?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????.??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????>?????????????????????????????>???????????????????????????>?????????????????????>???????????????????????>????????????????????????????????????????????????????????????????????????????????????????????????????????>??????????????????????????????????????????????????????????????????????????????????????????>????????????????????????????????????????>????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????>
 
Back
Top