My file is working when I test it locally but when I upload it to my
remote Brinkster account it stops working and I'm getting the following
error on line 23:
------------------------
Exception Details: System.NullReferenceException: Object reference not
set to an instance of an object.
Source Error:
Line 21:
Line 22: myTrans.Load(strXslPath);
Line 23: myTrans.Transform(strSourceXmlPath, strDirPath +
"promo_boxes\\" + companyName + "_promobox.htm");
Line 24: SR = File.OpenText(strDirPath + "promo_boxes\\" +
companyName + "_promobox.htm");
Line 25: fileToString = SR.ReadToEnd();
------------------------
I am using Server.MapPath() to get the current path on the remote
server. I don't think this is working. When I do a test on the remote
server I get this as my path:
\\premfs2\sites\premium6\mde\webroot\webservices\specialsengine\test.asp
x
Chadrick Mahaffey