Josh, Log4net currently expects the application to be loaded from the local disk, and it only supports implicit loading of config from local disk.
If you need to load the configuration from a web server, i.e. from a URL, you will need to initialise log4net programmatically by calling the DOMConfigurator.Configure method. Something like this should do the trick: private static void ConfigureFromUrl(string configUriStr) { Uri configUri = new Uri(configUriStr); WebRequest req = WebRequest.Create(configUri); WebResponse resp = req.GetResponse(); log4net.Config.DOMConfigurator.Configure(resp.GetResponseStream()); resp.Close(); } Nicko > -----Original Message----- > From: Josh Hawthorne [mailto:[EMAIL PROTECTED] > Sent: 09 February 2005 22:47 > To: Log4NET User > Subject: RE: URI formats are not supported > > If it's any help to anyone who might be checking on this for > me, I have determined that the exception is due to the > AppDomain.CurrentDomain.BaseDirectory returning an URL > formatted string (i.e. http://server/AppName). Apparently the > colon is not appreciated by the FileInfo object in > log4net.Config.DOMConfiguratorAttribute. Is there any other > way to configure Log4Net so that the > AppDomain.CurrentDomain.BaseDirectory won't be taken into > account? Or any other ideas? > > > > Thanks again, > > Josh Hawthorne > > [EMAIL PROTECTED] > > > > ________________________________ > > From: Josh Hawthorne [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 09, 2005 1:39 PM > To: log4net-user@logging.apache.org > Subject: URI formats are not supported > > > > Hello all, > > > > First posting here so please be gentle. :-) I'm hoping this > is a known issue and has an easy fix. Although I've found > someone else having this issue by searching the net, their > solution was to remove Log4Net. That's not what I'm hoping > for. My previous experience was with Log4J so please excuse > any blatant ignorance I'm working on resolving. :-) > > > > > > General info first: > > Version: 1.2.0-beta8 > > Assembly: exe launched via ASP.Net No-Touch Deploy > > Runtime: .Net > > > > > > Issue: I get the following exception when I try to run my app > from a No-Touch Deploy from IIS. > > > > // Begin Exception > > An unhandled exception of type 'System.ArgumentException' > occurred in mscorlib.dll > > > > Additional information: URI formats are not supported. > > // End Exception > > > > This same application runs fine when directly executed on the > workstation as well as directly executed on the server. I > have played around with permissions on the workstation to > grant full privileges to the app, and still get the same > exception. The exception is occurring when I try to > initialize a logger. > > > > Code: > > private static readonly log4net.ILog log = > log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetC > urrentMethod().DeclaringType); > > > > Thanks in advance for any help you might be able to provide. > > > > Regards, > > Josh Hawthorne > > [EMAIL PROTECTED] > > > > > >