c# - How to grant access to all subfolders of a folder in asp.net -


Suppose I have found a multi-user asp.net web application. There are 2 roles - Users of admin and user application are related to different organizations. There is a folder with the path "~ / report" in it is the config file below:

  & lt; System.web & gt; & Lt; Authority & gt; & Lt; Allow roles = "*" /> & Lt; / Authorization & gt; & Lt; /system.web>  

In addition to this folder "Reports" there are several subfolders in it, related to each organization. For example, "~ / report / Organization1" it is believed that all users with the role "user" will upload their report files in subfolders in "~ / report" according to their organization.

I have implemented the code behind the logic, but now I am experiencing an error such as "Prohibition for Access path .. Route / Organization 1" when user uploads a file of 1 Tries.

Is there any way to change the config file above (in the report) so that users can access all subfolders of "~ / reports"?

I appreciate any help!

What you need to do is write the asp.net worker process into the report folder and It has nothing to do with web config

You can find the steps given in the following answer


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -