asp.net - Uploading files: Access to path denied -


i've given iusr full control on folder when upload files gives me error: access path 'c:\inetpub\wwwroot\vivaweb\usr_up_img\desert.jpg' 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 'c:\inetpub\wwwroot\vivaweb\usr_up_img\desert.jpg' 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 explorer, choose "properties" , select security tab. click "add" add appropriate user or group. highlight asp.net account, , check boxes desired access.   source error:  source code generated unhandled exception can shown when compiled in debug mode. enable this, please follow 1 of below steps, request url:  1. add "debug=true" directive @ top of file generated error. example:    <%@ page language="c#" debug="true" %>  or:  2) add following section configuration file of application:  <configuration>    <system.web>        <compilation debug="true"/>    </system.web> </configuration>  note second technique cause files within given application compiled in debug mode. first technique cause particular file compiled in debug mode.  important: running applications in debug mode incur memory/performance overhead. should make sure application has debugging disabled before deploying production scenario.  stack trace:   [unauthorizedaccessexception: access path 'c:\inetpub\wwwroot\vivaweb\usr_up_img\desert.jpg' denied.]    system.io.__error.winioerror(int32 errorcode, string maybefullpath) +7716783    system.io.file.delete(string path) +7577512    asp.vivaweb_dwzupload_resizeaspnet_aspx.resizeimage(string oldpathimage, string newpathimage, int32 width, int32 height, int32 imgquality, boolean keep, boolean isthumb) +217    asp.vivaweb_dwzupload_resizeaspnet_aspx.page_load(object sender, eventargs e) +379    system.web.util.callihelper.eventargfunctioncaller(intptr fp, object o, object t, eventargs e) +14    system.web.util.callieventhandlerdelegateproxy.callback(object sender, eventargs e) +35    system.web.ui.control.onload(eventargs e) +99    system.web.ui.control.loadrecursive() +50    system.web.ui.page.processrequestmain(boolean includestagesbeforeasyncpoint, boolean includestagesafterasyncpoint) +627 

it clear application using "asp.net" user

so give permission user or give permission user everyone


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -