[prev in list] [next in list] [prev in thread] [next in thread]
List: log4net-user
Subject: log4net access web.config on remote share issue
From: "jexxi () hotpop ! com" <jexxi () hotpop ! com>
Date: 2005-08-20 9:50:10
Message-ID: 380-22005862095010767 () M2W061 ! mail2web ! com
[Download RAW message or body]
Dear all,
here are the asp.net application that I setup:
1. Server A (as network share resource) resides all the asp and asp.net
apps.
Including \bin, web.config, etc.
Let say the folders are:
a. \\192.168.11.111\ASP_APP
b. \\192.168.11.111\ASPNET_APP
2. Server B (as web server) I create:
a. one website with home directory pointed to \\192.168.11.111\ASP_APP
b. one virtual directory pointed to \\192.168.11.111\ASPNET_APP
3. Also in server B, I also do some configuration in .NET Configuration
in Node "Runtime Security Policy\Machine\Code Groups\All_Code" which
basically give permission to all resources and assemblies that reside
in \\192.168.11.111\ASPNET_APP.
For more info for step 3 please refer to
http://support.microsoft.com/default.aspx?scid=kb;en-us;320268
4. enable internal debug for log4net and capture the message via DebugView.
5. configuration setting for log4net reside in \\192.168.11.111\ASPNET_APP\
web.config and configured for sql server database.
Then I try to request one asp.net page for instance:
http://192.168.11.150/ASPNETAPP/abc.aspx. The page do successfully loaded
in
browser (as expected due to step no.3), but nothing get logged, and in
DebugView as follows:
===================
[3644] log4net:ERROR LogLog: Exception while reading ConfigurationSettings.
Check your .config file is well formed XML.
[3644] System.Configuration.ConfigurationException: The XML file
\\192.168.11.111\ASPNET_APP\web.config could not be loaded. Logon failure:
unknown user name or bad password.
[3644] (\\192.168.11.111\ASPNET_APP\web.config) --->
System.IO.IOException: Logon failure: unknown user name or bad password.
[3644]
[3644] at System.IO.__Error.WinIOError(Int32 errorCode, String str)
[3644] at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync,
String msgPath, Boolean bFromProxy)
[3644] at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share)
[3644] at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials)
[3644] at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String
role, Type ofObjectToReturn)
[3644] at System.Xml.XmlTextReader.CreateScanner()
[3644] at System.Xml.XmlTextReader.Init()
[3644] at System.Xml.XmlTextReader.Read()
[3644] at System.Xml.XmlReader.MoveToContent()
[3644] at System.Web.Configuration.XmlUtil.OpenXmlTextReader()
[3644] at
System.Web.Configuration.HttpConfigurationRecord.Evaluate(String configKey,
SectionRecord section)
[3644] --- End of inner exception stack trace ---
[3644] at
System.Web.Configuration.HttpConfigurationRecord.Evaluate(String configKey,
SectionRecord section)
[3644] at
System.Web.Configuration.HttpConfigurationRecord.GetConfig(String
configKey, Boolean cacheResult)
[3644] at
System.Web.Configuration.HttpConfigurationRecord.GetConfig(String
configKey, Boolean cacheResult)
[3644] at
System.Web.Configuration.HttpConfigurationRecord.GetConfig(String
configKey, Boolean cacheResult)
[3644] at System.Web.HttpContext.GetConfig(String name)
[3644] at
System.Web.Configuration.HttpConfigurationSystemBase.System.Configuration.IC
onfigurationSystem.GetConfig(String configKey)
[3644] at System.Configuration.ConfigurationSettings.GetConfig(String
sectionName)
[3644] at System.Configuration.ConfigurationSettings.get_AppSettings()
[3644] at log4net.Util.LogLog..cctor()
===================
Any idea why?
Thanks in advance,
Johan
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic