Looch,
You should be able to access the db wherever it is, as long as the
machine has a way of accessing it, and the user that the service is running
under has the rights to it.
If you are not impersonating the user that is executing the method, then
you need to make sure that the user that the hosting environment is running
under has access to where the database is.
Otherwise, if you are impersonating the user, then you have to make sure
that the user has access to the file that you are trying to access.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Looch" <lu**********@yahoo.comwrote in message
news:bb**********************************@d70g2000 hsb.googlegroups.com...
Thanks Nick,
Unless I'm misunderstanding, I don't need to use the MapPath mentioned
above. I added that because it seems like I'm in a similar issue - the
web service I was using needed to access an Access db - the only way I
was able to do that was to have the db in the MapPath dir for that web
service. (There's probably other ways but this happened to work)
Should I be able to, in the context of a remotable object hosted in
IIS, connect to a remote db through this hosted object?
If so, would the db need to be on the local machine, in the virtual
dir, etc? This seems like an easy thing to do, yet I'm having real
diffculty.
Thanks again.