5
Answers

How to Read file using stream reader in global.asax

Photo of Harshal Thakre

Harshal Thakre

10y
2.3k
1
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)

Next Recommended Forum