To resolve a realtive path in MVC use
HostingEnvironment.MapPath method
More Info: http://stackoverflow.com/questions/12239006/how-do-i-resolve-a-path-relative-to-an-asp-net-mvc-4-application-root
No comments:
Post a Comment