c# - How to Create a file from database and uploading it to the server in asp.net -


i have scenario create file database table data , uploading server. written code it's working fine locally after hosted application in iis it's giving error .

access path 'c:\windows\system32\config\systemprofile' 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:\windows\system32\config\systemprofile' 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 , iis 7, , configured application pool identity on iis 7.5) used if application not impersonating. if application impersonating via , 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.

can 1 please me how resolve error.

check iis_user permissions provided address. 1 non secure way give permissions every one. aware non secure way. try manage iis_user permissions using yourfolder/properties/security tab


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -