I have a client api (.NET 5.0) running on client's computer which designed to handle client side database and file processes. This api access all folders during development by adding staticfiles and directorybrowser middlewares but it does not access directories after publishing on client side. Api files are placed under c:\inetpub\wwwroot. IIS is used to serve this api. Windows OS with domain system is used on client PC.
I need to let this api access directories given by the user at runtime. Giving permission to a specific folder is not an option since it will be any directory selected by the user. I tried WCF service and it accessed all directories on client side without any configuration.
What configuration or things solve this problem. I want to give folder freedom to user :)