i have been looking at many guides and help for this, but they all say i need to do something with web config, that should be located at wwroot, but there is no fill called web config, anyone knows if i missed something.
Asked
Active
Viewed 69 times
1 Answers
0
there is no fill called web config,
- A
web.configis used to manage various settings that define a website. The settings are stored in XML files that are separate from your application code. - Generally a website contains a single
Web.configfile stored inside the application root directory. However there can be many configuration files that manage settings at various levels within an application.
Web.config file contains
- Database connections
- Caching settings
- Session States
- Error Handling
- Security
- Create
web.configfile , Put it in /public It will then be copied over to /dist during build. -Create the config file in public folder, After running npm run build , web.config file is copied todistfolder.
- To create
web.config, Right click on the public folder-->Add new file, name it asweb.configand add the below mentioned code snippet and save. Create web config file - After creating
web.config, re-deploy the application once again - Go to Azure portal, your Web App =>Advanced Tools=>KUDU - Debug Console =>CMD => site=>wwwroot , check if web.config file exists or not.
web.configfile has to be in the wwwroot directory in KUDU console.
"You do not have permission to view this directory or page."
Please refer Azure website message and SO Thread for more information
HarshithaVeeramalla-MT
- 3,013
- 2
- 2
- 9
-
Hey @Simon Breit, I did reproduce this issue and the solution worked for me; do let me know if it solved your problem else share more details so I can troubleshoot? – HarshithaVeeramalla-MT Apr 13 '22 at 05:02