[Mono-list] Mod_mono directoy path issues.

"Andrés G. Aragoneses [ knocte ] "Andrés G. Aragoneses [ knocte ]
Mon Jan 29 16:35:30 EST 2007

Jim Canfield escribió:
> Greetings,
> I recently inherited a small ASP web app which I'm trying to make work 
> on a mod_mono linux server. I have it working about 90%, however, I'm 
> having trouble with file paths that contain spaces and parenthesis .  
> I'm wondering how I might fix this? 
> Here is the code that calls and displays the file path:
> //Get the file path
> string path = new DataManager().GetSingleValueAsString(SQL);
> this.EmbeddedFile.Text = "<IFRAME WIDTH='100%' HEIGHT='100%' 
> NAME='DocumentFrame' SRC='DATA" + path + "'><EMBED SRC='DATA" + path + 
> "' width='100%' height='100%'/></IFRAME>";
> Example path would look like this:  \\webserver\DATA\Some directory with 
> spaces\File with Space and paren(1).pdf

That URI is platform specific, as it is the way SMB URIs are specified
in the MS platform. I would think that the cross-platform equivalent
would be something like "smb://webserver/DATA/..." but I bet you will
have more issues beyond that (because accessing those from most linux
desktops results in a slower access and read-only; and because you're
probably resolving names through WINS instead of DNS).


	Andrés	[ knocte ]


More information about the Mono-list mailing list