In asp.net application, while uploading a file, getting access denied error -


although have full access path,still showing error access path denied, please in resolving issue. also, text in bold , italic.

server error in '/global' application. --------------------------------------------------------------------------------

access path 'f:\www\global\reports\2017-05-30, vda_6.3_abc_vers_r_13_englisch.xlsm' denied.  description: unhandled exception occurred during execution of current web request. please review stack trace more information error , originated in code.   exception details: system.unauthorizedaccessexception: access path 'f:\www\global\reports\2017-05-30, vda_6.3_abc_vers_r_13_englisch.xlsm' denied.   asp.net not authorized access requested resource. consider granting access rights resource asp.net request identity. asp.net has base process identity (typically {machine}\aspnet on iis 5 or network service on iis 6) used if application not impersonating. if application impersonating via <identity impersonate="true"/>, identity anonymous user (typically iusr_machinename) or authenticated request user.   grant asp.net access file, right-click file in file explorer, choose "properties" , select security tab. click "add" add appropriate user or group. highlight asp.net account, , check boxes desired access.  source error:   unhandled exception generated during execution of current web request. information regarding origin , location of exception can identified using exception stack trace below.    stack trace:    [unauthorizedaccessexception: access path 'f:\www\global\reports\2017-05-30, vda_6.3_abc_vers_r_13_englisch.xlsm' denied.]    system.io.__error.winioerror(int32 errorcode, string maybefullpath) +7725671    system.io.filestream.init(string path, filemode mode, fileaccess access, int32 rights, boolean userights, fileshare share, int32 buffersize, fileoptions options, security_attributes secattrs, string msgpath, boolean bfromproxy) +1162    system.io.filestream..ctor(string path, filemode mode, fileaccess access, fileshare share, int32 buffersize, fileoptions options, string msgpath, boolean bfromproxy) +61    system.io.filestream..ctor(string path, filemode mode) +55    system.web.httppostedfile.saveas(string filename) +99    system.web.ui.webcontrols.fileupload.saveas(string filename) +23    webpages_audit_schedule_upload.append_click(object sender, eventargs e) in ***f:\cbc_code\cbc\orange\cbc\webpages\schedule\upload.aspx***.cs:1666    system.web.ui.webcontrols.button.onclick(eventargs e) +111    system.web.ui.webcontrols.button.raisepostbackevent(string eventargument) +110    system.web.ui.webcontrols.button.system.web.ui.ipostbackeventhandler.raisepostbackevent(string eventargument) +10    system.web.ui.page.raisepostbackevent(ipostbackeventhandler sourcecontrol, string eventargument) +13    system.web.ui.page.raisepostbackevent(namevaluecollection postdata) +36    system.web.ui.page.processrequestmain(boolean includestagesbeforeasyncpoint, boolean includestagesafterasyncpoint) +1565     -------------------------------------------------------------------------------- version information: microsoft .net framework version:2.0.50727.8762; asp.net version:2.0.50727.8762  


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -