C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

Any code from where we can set Read/Write permissions to folder on Server.


Posted Date: 07 Nov 2009      Posted By: maddy      Member Level: Bronze     Points: 1   Responses: 1



If any one have code any code from where we can set Read/Write permissions to folder on Server.

the code use in my program running fine in local system, but it give the error when i host all the file on the server


this is the error which i am getting ..........................
Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.








Responses

Author: Sreekumar P    10 Nov 2009Member Level: BronzeRating: 2 out of 52 out of 5     Points: 2

code is there but it cannot use for WEB SERVER. only for local system.


I was also facing this problem when uploading file.....
I have solved it by creating Virtual Directories in Web server (ie convert the folder that u want to upload file to a virtual dir)

This facility will be provided by the Web Hosting cmpy in Hosting manager.

Create virtual dir with write permission.



Post Reply
You must Sign In to post a response.
Next : From where we will set permission [ie: READ , WRITE Access ] to the Folder resides on Serv
Previous : Hi experts.. where can i find solutions for "SUGGESTED PRACTICES" qustions of MCTS - 70-53
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use