URI formats are not supported error

C

Costi Stan

I am having an asp.net application made in vs 2002 (.net 1.1). I am
getting "URI formats are not supported error" when I am trying to
specify the file path in my web.config as


<exceptionManagement mode="on">
<publisher assembly="TestWeb"
type="TestWeb.ExceptionPublisher"
fileName="http:\\localhost\TestWeb\WebErrorLog.txt" />
</exceptionManagement>


Is there any good method to create the file in the virtual directory I
specify. It works fine if i specify the absolute path
"C:\inetpub....". But how can I make it run with relative path or by
specifying the url.
 
L

Ludwig Stuyck

I am having an asp.net application made in vs 2002 (.net 1.1). I am
getting "URI formats are not supported error" when I am trying to
specify the file path in my web.config as


<exceptionManagement mode="on">
<publisher assembly="TestWeb"
type="TestWeb.ExceptionPublisher"
fileName="http:\\localhost\TestWeb\WebErrorLog.txt" />
</exceptionManagement>


Is there any good method to create the file in the virtual directory I
specify. It works fine if i specify the absolute path
"C:\inetpub....". But how can I make it run with relative path or by
specifying the url.

Already tried MapPath
(http://www.fuzzysoftware.com/tagreference.asp?objectid=5&tagid=39)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top