asp.net mvc - Unable to access files from UNC path in ASP.MVC aplpication hosted in IIS7 -
i'm downloading files unc path working fine on local host when hosted on iis 7 gives me following error:
my action in mvc returns file is:
[validateinput(false)] public fileresult getfile() { request.validateinput(); string filelocation = configurationmanager.appsettings["uncpath"]; string filename = httputility.urldecode(request.querystring["filename"]); string path = path.combine(filelocation, filename); string getfileextension = path.getextension(filename); string contenttype = mimetypemap.getmimetype(getfileextension); return file(path, contenttype, filename); }
in web confing have uncpath \network\drivef...
Comments
Post a Comment