Need to place user uploaded aspx file in application

Asked By 20 points N/A Posted on -

In my application, users can upload / download files and ASPX files are accessed by the user later (it must implement security at the code level, because it would be better to use the application with minimal permissions to run). So now I have to save these files and where is the best place to store them. Should I give permission to record low in the current project to create or should I create a separate like "" and up virtual directory. I also want to prevent restarting the application domain. What is the best option to deal with this situation?

Answered By 0 points N/A #189071

Need to place user uploaded aspx file in application


Hello, How are you? To solve your issue you should maintain the following procedure:

Step 1 : Firstly, right click on “C Sharp Upload” which is contained in the solution explorer window of Visual Studio .NET. Then point to “Add”. Click on “new folder”. By default a new folder will be created.

Step 2 : Now right click on “new folder” and rename it as “Data”.

Step 3: Start Windows Explorer and locate the data file system folder. This will be like C:InetpubwwwrootC Sharp UploadData.

Step 4 : For security settings right click on “Data” and then click on “Properties”.

Step 5: In the “Data Properties” dialogue box, click the “Security” tab and then click “Add”

Step 6 : In the “Select users or groups” dialogue box click on ASPNET account. Then click “Add”. Finally, click “Ok”.

Step 7 : Click the “aspnet_wp account” (Computer nameASPNET) and click allow for following permissions:

a) Read and execute b) List Folder Contents c) Read d) Write. Click to clear any other “Allow” and “Deny” check boxes.

Step 8 : Click “OK” and close the “Data Properties” dialogue box.

That is exactly it. Learn more.

Moreen Jamnelly.

Login/Register to Answer

Related Questions