Click here to Skip to main content
15,917,628 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
StreamReader reader = new StreamReader(Server.MapPath("~/Emailtemplate.htm"));


Hi ! I need Ur help :(
this code example is in many site but give error for me !
may U help me ?
Posted
Comments
DamithSL 15-Jul-14 1:37am    
what is the actual file location?
‫محم د‬‎ 15-Jul-14 1:42am    
i right click on solotion and make new html file !
its near othor file of my project !
DamithSL 15-Jul-14 1:51am    
Ok, right click on that file in solution explorer, set Copy to output directory: Copy always
Member 8112455 15-Jul-14 1:42am    
This code is working. Please check your filename.
‫محم د‬‎ 15-Jul-14 1:43am    
I copy and paste the file name !!

1 solution

I see the difference in file name Emailtemplate.htm and Emailteplate.html. "m" is missing in second name.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900