i solved the problem by doing a simple trick. First i have wrote the following code and put it inside the _Layout
(razor) file.
@HttpContext.Current.Request.PhysicalApplicationPath
This gave me a physical path and then i just copied it and paste it inside the localFSRootDirectoryPath
and localFSThumbsDirectoryPath
and it did work