[Mono-list] Re: XSP Problem

Zaczek Arthur arthur.zaczek@ace.at
Fri, 24 Jan 2003 09:34:52 +0100


This is a multi-part message in MIME format.

------_=_NextPart_001_01C2C383.773BB8F1
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi!
=20
I think I found the problem:
=20
in MonoWorkerRequest.MapPath()
=20
        return Path.Combine(appHost, path.Replace(...))
=20
returns only "path.Replace(...)"
=20
When your replace it with
=20
        return appHost + path.Replace(...)
=20
it works...
=20
Arthur

-----Urspr=FCngliche Nachricht-----
Von: Paul [mailto:pvonhuben@qwest.net]
Gesendet: Freitag, 24. J=E4nner 2003 02:34
An: Zaczek Arthur
Betreff: mono



art-=20


for what it's worth I rebuilt with .19 and used the *full* path name and =
it worked for me.=20

http://192.168.0.210:8080/home/user/xsp/server/test/index.aspx=20


It is still throwing exceptions in the console but it works after a =
while. I've tried it on two machines and with .19 where neither worked =
with .18 .=20


good luck=20


-paul=20



http://192.168.0.210:8080/mono.png=20

System.Web.HttpException: File '/mono.png' does not exist=20


------_=_NextPart_001_01C2C383.773BB8F1
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<TITLE></TITLE>

<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D259283208-24012003><FONT face=3DArial color=3D#0000ff =

size=3D2>Hi!</FONT></SPAN></DIV>
<DIV><SPAN class=3D259283208-24012003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D259283208-24012003><FONT face=3DArial color=3D#0000ff =
size=3D2>I=20
think&nbsp;I found the problem:</FONT></SPAN></DIV>
<DIV><SPAN class=3D259283208-24012003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D259283208-24012003><FONT face=3DArial color=3D#0000ff =
size=3D2>in=20
MonoWorkerRequest.MapPath()</FONT></SPAN></DIV>
<DIV><SPAN class=3D259283208-24012003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D259283208-24012003><FONT face=3DArial color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return =
Path.Combine(appHost,=20
path.Replace(...))</FONT></SPAN></DIV>
<DIV><SPAN class=3D259283208-24012003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D259283208-24012003><FONT face=3DArial color=3D#0000ff =

size=3D2>returns only "path.Replace(...)"</FONT></SPAN></DIV>
<DIV><SPAN class=3D259283208-24012003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D259283208-24012003><FONT face=3DArial color=3D#0000ff =
size=3D2>When=20
your replace it with</FONT></SPAN></DIV>
<DIV><SPAN class=3D259283208-24012003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D259283208-24012003><FONT face=3DArial color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return appHost +=20
path.Replace(...)</FONT></SPAN></DIV>
<DIV><SPAN class=3D259283208-24012003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D259283208-24012003><FONT face=3DArial color=3D#0000ff =
size=3D2>it=20
works...</FONT></SPAN></DIV>
<DIV><SPAN class=3D259283208-24012003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D259283208-24012003><FONT face=3DArial color=3D#0000ff =

size=3D2>Arthur</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Urspr=FCngliche Nachricht-----<BR><B>Von:</B> Paul=20
  [mailto:pvonhuben@qwest.net]<BR><B>Gesendet:</B> Freitag, 24. J=E4nner =
2003=20
  02:34<BR><B>An:</B> Zaczek Arthur<BR><B>Betreff:</B> =
mono<BR><BR></FONT></DIV>
  <P><FONT face=3DCourier color=3D#0000ff size=3D4>art- </FONT></P><BR>
  <P><FONT face=3DCourier color=3D#0000ff size=3D4>for what it's worth I =
rebuilt with=20
  .19 and used the *full* path name and it worked for me. </FONT></P>
  <P><FONT face=3DCourier color=3D#0000ff=20
  =
size=3D4>http://192.168.0.210:8080/home/user/xsp/server/test/index.aspx=20
  </FONT></P><BR>
  <P><FONT face=3DCourier color=3D#0000ff size=3D4>It is still throwing =
exceptions in=20
  the console but it works after a while. I've tried it on two machines =
and with=20
  .19 where neither worked with .18 . </FONT></P><BR>
  <P><FONT face=3DCourier color=3D#0000ff size=3D4>good luck =
</FONT></P><BR>
  <P><FONT face=3DCourier color=3D#0000ff size=3D4>-paul</FONT><FONT =
face=3DCourier=20
  color=3D#0000ff size=3D4> </FONT></P><BR><BR>
  <P><FONT face=3DCourier color=3D#0000ff =
size=3D4>http://192.168.0.210:8080/mono.png=20
  </FONT></P>
  <P><FONT face=3DCourier color=3D#0000ff size=3D4></FONT><FONT =
face=3DCourier=20
  size=3D4>System.Web.HttpException: File '/mono.png' does not =
exist</FONT>=20
</P></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C2C383.773BB8F1--