Bineeshcp Viswanath

Bineeshcp Viswanath

  • NA
  • 140
  • 39.3k

File path discrepancy in ASP.NET when hosted in GoDaddy

Apr 23 2019 2:23 AM
Dear All,
 
I need your support to solve a discrepancy in the file path in my asp.net c# project.
 
I am inserting image into project solution folder and the filepath also inserting to database. The project already hosted in GoDaddy.com
 
After insert, my local folder path to table is like this:-
D:\10 Apr 2019\16 Apr\Master Source Code 11 Apr 2019\uploadedimages\Tulips_233.jpg
 
when rrunning the site in host server, image not showing( no error when debugging)
 
On the other hand, when I running the same project in visual studio local host, image saving and retrieving is working properly.
 
Somewhere i saw the path from hosted server. It is like below

G:\PleskVhosts\llc.com\llc.com\uploadedimages\251038


Answers (7)