Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: aspx working locally but not on remote server


Message #1 by "Chadrick" <chadm@d...> on Wed, 24 Jul 2002 16:03:39 -0400
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



  Return to Index