Everything I've seen in my research indicates that paths are relative to
the dll/exe making the call, but not in this case. Is this some project
setting I need to set or what did I miss?
Thank you.
Rob
*** Sent via Developersdex http://www.developersdex.com ***
You can get around that though with Server.MapPath("~/YourFileHere.xml")
or pass the full path into your method as a parameter from your client web
pages.
HTH.
-dl
--
David R. Longnecker
http://blog.tiredstudent.com
Thank you! I looked at Server.MapPath, but it doesn't seem to be an
object supported in my C# project (I'm guessing it's because the project
is not in the Website itself). Did I miss something here?
If I have to, I'll pass a variable to the dll, but I'd rather get the
path from the dll if possible.
Thank you for your help. I appreciated it.
Robert
You could get the config from the hosting environment (from the AppDomain or
by using System.Web.HttpContext.Current etc...) but my personal preference
would be likely to always resolve the full path and provide this to file
related functions called from an ASP.NET application (it doesn't prevent to
use relative path when used outside a web application where it's makes more
sense).
--
Patrice
"Rob Taylor" <anon...@devdex.com> a écrit dans le message de news:
%23LgbMZ5...@TK2MSFTNGP05.phx.gbl...
Thanks. I'll take a look at the objects and methods. I appreciate the
help.
Rob