Harshal Thakre

Harshal Thakre

  • 1.5k
  • 235
  • 77.4k

How to Read file using stream reader in global.asax

Jul 24 2014 2:53 AM
Code in global.asax.->
 
 StreamReader reader = new StreamReader(HttpContext.Current.Server.MapPath("~/AutoMailSend.htm"));
 
 
above line shows the error-> Object reference not set to an instance of an object. 
 
 
 Thanks in advanced 

Answers (5)