D
Daniel Groh
Hi Joe, no it's not static...yes..it's static when u have a webapplication
and i have a class library application, try it and tell me, may be could be
a problem in my framework lib u know ? but i don't think so!
As I told, i tryed to import the namespace HttpServerUtility but didn't work
=(
Tks Joe!
Daniel
------------------------------
Hi Joe
Hi Daniel,
It's static. Try Server.MapPath("XMLErrors.xml")
Joe
--
http://www.csharp-station.com
Hi, I'm trying to use the Server.MapPath in my ClassLibrary application,
but I didn'get it...I tryed already the System.Web.HttpServerUtility...
OpenConn();
DataSet dsErrorSQL = new DataSet();
HttpServerUtility myPath = new HttpServerUtility();
dsErrorSQL.ReadXml(myPath.MapPath("XMLErrors.xml"));
and i have this error:
No overload for method 'HttpServerUtility' takes '0' arguments
Wich namespace should i import ?
Thank you folks!
Daniel
and i have a class library application, try it and tell me, may be could be
a problem in my framework lib u know ? but i don't think so!
As I told, i tryed to import the namespace HttpServerUtility but didn't work
=(
Tks Joe!
Daniel
------------------------------
Hi Joe
Hi Daniel,
It's static. Try Server.MapPath("XMLErrors.xml")
Joe
--
http://www.csharp-station.com
Hi, I'm trying to use the Server.MapPath in my ClassLibrary application,
but I didn'get it...I tryed already the System.Web.HttpServerUtility...
OpenConn();
DataSet dsErrorSQL = new DataSet();
HttpServerUtility myPath = new HttpServerUtility();
dsErrorSQL.ReadXml(myPath.MapPath("XMLErrors.xml"));
and i have this error:
No overload for method 'HttpServerUtility' takes '0' arguments
Wich namespace should i import ?
Thank you folks!
Daniel