Hi,
I recently upgraded my XML parser and the ComInterop code that I had for
my webservice is throwing the following error. For ASP applications, we
created a wrapper class on this web service and expose that class for ASP COM
Interop.
Any suggestion?
Error dump
----------------------------------
Exception: System.Configuration.ConfigurationException
Message: Exception in configuration section handler
(c:\windows\microsoft.net\framework\v1.1.4322\Conf ig\machine.config line 136)
Source: System
at
System.Configuration.ConfigurationRecord.EvaluateR ecursive(IConfigurationSectionHandler
factory, Object config, String[] keys, Int32 iKey, XmlTextReader reader)
at
System.Configuration.ConfigurationRecord.EvaluateR ecursive(IConfigurationSectionHandler
factory, Object config, String[] keys, Int32 iKey, XmlTextReader reader)
at System.Configuration.ConfigurationRecord.Evaluate( String configKey)
at System.Configuration.ConfigurationRecord.ResolveCo nfig(String configKey)
at System.Configuration.ConfigurationRecord.GetConfig (String configKey)
at System.Configuration.ConfigurationRecord.ResolveCo nfig(String configKey)
at System.Configuration.ConfigurationRecord.GetConfig (String configKey)
at
System.Configuration.DefaultConfigurationSystem.Sy stem.Configuration.IConfigurationSystem.GetConfig( String configKey)
at System.Configuration.ConfigurationSettings.GetConf ig(String sectionName)
at System.Net.GlobalProxySelection.get_SelectInternal ()
at System.Net.HttpWebRequest..ctor(Uri uri)
at System.Net.HttpRequestCreator.Create(Uri Uri)
at System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)
at System.Net.WebRequest.Create(Uri requestUri)
at System.Web.Services.Protocols.WebClientProtocol.Ge tWebRequest(Uri uri)
at System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebRequest(Uri
uri)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.GetWebRequest(Uri
uri)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)
at Analog.AuthWSWrapper.AuthWSWrapper.isAuthenticated (String rawCookieData)
Nested Exception
Exception: System.Security.SecurityException
Message: Requested registry access is not allowed.
Source: mscorlib
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
at Microsoft.Win32.RegistryKey.OpenSubKey(String name)
at System.Net.ProxyRegBlob.ReadRegSettings()
at System.Net.ProxyRegBlob.ReadRegSettings()
at System.Net.ProxyRegBlob.GetIEProxy()
at System.Net.Configuration.DefaultProxyHandler.Creat e(Object parent,
Object configContext, XmlNode section)
at
System.Configuration.ConfigurationRecord.EvaluateR ecursive(IConfigurationSectionHandler
factory, Object config, String[] keys, Int32 iKey, XmlTextReader reader)
------------------------------------------------------
Line 136 in machine config is
------------------
<defaultProxy>
<!--
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:
............. -->
<!-- use this section to override proxy settings with your own
IWebProxy implementation
example:
.................. -->
</defaultProxy>
----------------- 3 2309
Pritam Bhat wrote: Hi, I recently upgraded my XML parser and the ComInterop code that I
had for my webservice is throwing the following error. For ASP applications,
we created a wrapper class on this web service and expose that class for
ASP COM Interop.
Any suggestion?
Error dump ---------------------------------- Exception: System.Configuration.ConfigurationException Message: Exception in configuration section handler (c:\windows\microsoft.net\framework\v1.1.4322\Conf ig\machine.config
line 136) Source: System at
System.Configuration.ConfigurationRecord.EvaluateR ecursive(IConfigurationSectionHandler
factory, Object config, String[] keys, Int32 iKey, XmlTextReader
reader) at
System.Configuration.ConfigurationRecord.EvaluateR ecursive(IConfigurationSectionHandler
factory, Object config, String[] keys, Int32 iKey, XmlTextReader
reader) at System.Configuration.ConfigurationRecord.Evaluate( String
configKey) at System.Configuration.ConfigurationRecord.ResolveCo nfig(String
configKey) at System.Configuration.ConfigurationRecord.GetConfig (String
configKey) at System.Configuration.ConfigurationRecord.ResolveCo nfig(String
configKey) at System.Configuration.ConfigurationRecord.GetConfig (String
configKey) at
System.Configuration.DefaultConfigurationSystem.Sy stem.Configuration.IConfigurationSystem.GetConfig( String
configKey) at System.Configuration.ConfigurationSettings.GetConf ig(String
sectionName) at System.Net.GlobalProxySelection.get_SelectInternal () at System.Net.HttpWebRequest..ctor(Uri uri) at System.Net.HttpRequestCreator.Create(Uri Uri) at System.Net.WebRequest.Create(Uri requestUri, Boolean
useUriBase) at System.Net.WebRequest.Create(Uri requestUri) at
System.Web.Services.Protocols.WebClientProtocol.Ge tWebRequest(Uri uri) at
System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebRequest(Uri uri) at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.GetWebRequest(Uri uri) at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String methodName, Object[] parameters) at Analog.AuthWSWrapper.AuthWSWrapper.isAuthenticated (String
rawCookieData) Nested Exception
Exception: System.Security.SecurityException Message: Requested registry access is not allowed. Source: mscorlib at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean
writable) at Microsoft.Win32.RegistryKey.OpenSubKey(String name) at System.Net.ProxyRegBlob.ReadRegSettings() at System.Net.ProxyRegBlob.ReadRegSettings() at System.Net.ProxyRegBlob.GetIEProxy() at System.Net.Configuration.DefaultProxyHandler.Creat e(Object
parent, Object configContext, XmlNode section) at
System.Configuration.ConfigurationRecord.EvaluateR ecursive(IConfigurationSectionHandler
factory, Object config, String[] keys, Int32 iKey, XmlTextReader
reader) ------------------------------------------------------
Line 136 in machine config is ------------------ <defaultProxy>
<!-- 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: ............. -->
<!-- use this section to override proxy settings with
your own IWebProxy implementation example: .................. -->
</defaultProxy>
-----------------
useSystemDefault = true in machine.config tells .NET to look at the
Internet options for the current user (the same ones you would see in
the Internet Options Dialog box in IE). This proxy info is contained
in the HKCU hive in the registry. We have found 2 solutions:
1) Grant everyone "Read permissions" to HKCU -- other hives already
have this permission set by default
2) Change useSystemDefault to false in machine.config
There may be other solutions with even less security impact, but we dis
not consider these to be too bad.
Pritam Bhat wrote: Hi, I recently upgraded my XML parser and the ComInterop code that I
had for my webservice is throwing the following error. For ASP applications,
we created a wrapper class on this web service and expose that class for
ASP COM Interop.
Any suggestion?
Error dump ---------------------------------- Exception: System.Configuration.ConfigurationException Message: Exception in configuration section handler (c:\windows\microsoft.net\framework\v1.1.4322\Conf ig\machine.config
line 136) Source: System at
System.Configuration.ConfigurationRecord.EvaluateR ecursive(IConfigurationSectionHandler
factory, Object config, String[] keys, Int32 iKey, XmlTextReader
reader) at
System.Configuration.ConfigurationRecord.EvaluateR ecursive(IConfigurationSectionHandler
factory, Object config, String[] keys, Int32 iKey, XmlTextReader
reader) at System.Configuration.ConfigurationRecord.Evaluate( String
configKey) at System.Configuration.ConfigurationRecord.ResolveCo nfig(String
configKey) at System.Configuration.ConfigurationRecord.GetConfig (String
configKey) at System.Configuration.ConfigurationRecord.ResolveCo nfig(String
configKey) at System.Configuration.ConfigurationRecord.GetConfig (String
configKey) at
System.Configuration.DefaultConfigurationSystem.Sy stem.Configuration.IConfigurationSystem.GetConfig( String
configKey) at System.Configuration.ConfigurationSettings.GetConf ig(String
sectionName) at System.Net.GlobalProxySelection.get_SelectInternal () at System.Net.HttpWebRequest..ctor(Uri uri) at System.Net.HttpRequestCreator.Create(Uri Uri) at System.Net.WebRequest.Create(Uri requestUri, Boolean
useUriBase) at System.Net.WebRequest.Create(Uri requestUri) at
System.Web.Services.Protocols.WebClientProtocol.Ge tWebRequest(Uri uri) at
System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebRequest(Uri uri) at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.GetWebRequest(Uri uri) at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String methodName, Object[] parameters) at Analog.AuthWSWrapper.AuthWSWrapper.isAuthenticated (String
rawCookieData) Nested Exception
Exception: System.Security.SecurityException Message: Requested registry access is not allowed. Source: mscorlib at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean
writable) at Microsoft.Win32.RegistryKey.OpenSubKey(String name) at System.Net.ProxyRegBlob.ReadRegSettings() at System.Net.ProxyRegBlob.ReadRegSettings() at System.Net.ProxyRegBlob.GetIEProxy() at System.Net.Configuration.DefaultProxyHandler.Creat e(Object
parent, Object configContext, XmlNode section) at
System.Configuration.ConfigurationRecord.EvaluateR ecursive(IConfigurationSectionHandler
factory, Object config, String[] keys, Int32 iKey, XmlTextReader
reader) ------------------------------------------------------
Line 136 in machine config is ------------------ <defaultProxy>
<!-- 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: ............. -->
<!-- use this section to override proxy settings with
your own IWebProxy implementation example: .................. -->
</defaultProxy>
-----------------
The most surgical solution is to grant read to everyone on just one
single registry key:
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Int ernet
Settings\Connections
--TC to**@cikc.org wrote: useSystemDefault = true in machine.config tells .NET to look at the Internet options for the current user (the same ones you would see in the Internet Options Dialog box in IE). This proxy info is contained in the HKCU hive in the registry. We have found 2 solutions:
1) Grant everyone "Read permissions" to HKCU -- other hives already have this permission set by default 2) Change useSystemDefault to false in machine.config
There may be other solutions with even less security impact, but we
dis not consider these to be too bad.
Pritam Bhat wrote: Hi, I recently upgraded my XML parser and the ComInterop code that I had for my webservice is throwing the following error. For ASP
applications, we created a wrapper class on this web service and expose that class
for ASP COM Interop.
Any suggestion?
Error dump ---------------------------------- Exception: System.Configuration.ConfigurationException Message: Exception in configuration section handler (c:\windows\microsoft.net\framework\v1.1.4322\Conf ig\machine.config line 136) Source: System at
System.Configuration.ConfigurationRecord.EvaluateR ecursive(IConfigurationSectionHandler factory, Object config, String[] keys, Int32 iKey, XmlTextReader reader) at
System.Configuration.ConfigurationRecord.EvaluateR ecursive(IConfigurationSectionHandler factory, Object config, String[] keys, Int32 iKey, XmlTextReader reader) at System.Configuration.ConfigurationRecord.Evaluate( String configKey) at System.Configuration.ConfigurationRecord.ResolveCo nfig(String configKey) at System.Configuration.ConfigurationRecord.GetConfig (String configKey) at System.Configuration.ConfigurationRecord.ResolveCo nfig(String configKey) at System.Configuration.ConfigurationRecord.GetConfig (String configKey) at
System.Configuration.DefaultConfigurationSystem.Sy stem.Configuration.IConfigurationSystem.GetConfig( String configKey) at System.Configuration.ConfigurationSettings.GetConf ig(String sectionName) at System.Net.GlobalProxySelection.get_SelectInternal () at System.Net.HttpWebRequest..ctor(Uri uri) at System.Net.HttpRequestCreator.Create(Uri Uri) at System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase) at System.Net.WebRequest.Create(Uri requestUri) at System.Web.Services.Protocols.WebClientProtocol.Ge tWebRequest(Uri
uri) at System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebRequest(Uri uri) at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.GetWebRequest(Uri uri) at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String methodName, Object[] parameters) at Analog.AuthWSWrapper.AuthWSWrapper.isAuthenticated (String rawCookieData) Nested Exception
Exception: System.Security.SecurityException Message: Requested registry access is not allowed. Source: mscorlib at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean
writable) at Microsoft.Win32.RegistryKey.OpenSubKey(String name) at System.Net.ProxyRegBlob.ReadRegSettings() at System.Net.ProxyRegBlob.ReadRegSettings() at System.Net.ProxyRegBlob.GetIEProxy() at System.Net.Configuration.DefaultProxyHandler.Creat e(Object parent, Object configContext, XmlNode section) at
System.Configuration.ConfigurationRecord.EvaluateR ecursive(IConfigurationSectionHandler factory, Object config, String[] keys, Int32 iKey, XmlTextReader reader) ------------------------------------------------------
Line 136 in machine config is ------------------ <defaultProxy>
<!-- 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: ............. -->
<!-- use this section to override proxy settings with your own IWebProxy implementation example: .................. -->
</defaultProxy>
----------------- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Karalius, Joseph |
last post by:
Can anyone explain what is happening here? I haven't found any useful info
on Google yet.
Thanks in advance.
mmagnet:/home/jkaralius/src/zopeplone/Python-2.3.5 # make
gcc -pthread -c...
|
by: ST |
last post by:
Hi,
I keep getting the parser error, and I have no idea why. I've tried a
number of things including:
1)building/rebuilding about 100x
2)making sure all dll's are in the bin folder in the root...
|
by: learning_C++ |
last post by:
Hi,
I try to use
input = new istrstream(argv,strlen(argv));
in my code, but it always says error: " error: parse error before `('
token"
please help me!
Thanks,
#include <map>
|
by: Andrey Smirnov |
last post by:
I am getting the following traceback after upgrading my app to Python
2.4.1. It's telling me that there is an error in Parser.py. It tells
me that 'fp.read(8192)' is given 2 arguments, but it is...
|
by: CHRIS |
last post by:
Isn't it always the case that as soon as you post, you
solve the problem?
Apparently, adding an extra "space" to a blank line in my
web.config file solved this problem.
I would be angry that...
|
by: ST |
last post by:
Hi,
I keep getting the parser error, and I have no idea why. I've tried a
number of things including:
1)building/rebuilding about 100x
2)making sure all dll's are in the bin folder in the root...
|
by: Kasp |
last post by:
When I try and save out a recordset from an ASP page as XML I get the
following error (the code is below) - I have ADO 2.8 installed and this
is running on win XP sp2 :
...
|
by: k.jayachandran |
last post by:
I have a very curious and unique problem here.
I'm creating a parser using bison and flex. i did all the development
work in a linux environment.
the project includes the source files output from...
|
by: r.battistoni |
last post by:
Hy to everyone
I have created a simple SAX parser for a very simple XML file.
When I run the code that follows I get this error:
"Invalid hexadecimal character reference"
The strange...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |