Click here to Skip to main content
15,893,722 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am develop web site document management related it work at local server when i creating directory and uploading file to user account but after hosting the site on server i cant create folder and upload file at user account(my account) some path error are coming


for the path , i used following line

rootFolder = this.Server.MapPath(ConfigurationManager.AppSettings["rootfolder"]);
Posted

It's an access isstu.

Add this in your web.config and customize as required.
<system.web>

        <authentication mode="Windows">
            <identity impersonate="true">
                userName="AdministratorId" 
                password="Administratorpassword"/>
         </identity></authentication>

</system.web>
 
Share this answer
 
I would not suggest impersonating as a user. I would rather suggest giving the user account that is running the application pool the necessary permissions to the folders.
 
Share this answer
 
change permission setting of the application directory for the users from settings.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900