R
roto23
I wrote a complied c# class (SpulClass). In that class I use this to
get the directory it resides in..
System.IO.Directory.GetCurrentDirectory();
When I call this this class (dll) from a c# windows application
this....
System.IO.Directory.GetCurrentDirectory(); returns the correct path
(C:\Roto\Work\MyProject)
When I call this this class (dll) from a c# web service this....
System.IO.Directory.GetCurrentDirectory(); returns the incorrect path
(C:\Windows\System32)
the code...
System.IO.Directory.GetCurrentDirectory(); is in the dll, not the web
app. Why is this doing this? and more importantly, what should I put
in my dll such that the correct path is returned wether the dll is
called from a Web service, Desktop app or what ever.
Thanks in advance
-Roto-
get the directory it resides in..
System.IO.Directory.GetCurrentDirectory();
When I call this this class (dll) from a c# windows application
this....
System.IO.Directory.GetCurrentDirectory(); returns the correct path
(C:\Roto\Work\MyProject)
When I call this this class (dll) from a c# web service this....
System.IO.Directory.GetCurrentDirectory(); returns the incorrect path
(C:\Windows\System32)
the code...
System.IO.Directory.GetCurrentDirectory(); is in the dll, not the web
app. Why is this doing this? and more importantly, what should I put
in my dll such that the correct path is returned wether the dll is
called from a Web service, Desktop app or what ever.
Thanks in advance
-Roto-