0

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.

enter image description here

enter image description here

enter image description here

1 Answers1

0

there is no fill called web config,

  • A web.config is 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.config file 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.config file , 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 to dist folder.

enter image description here

  • To create web.config, Right click on the public folder-->Add new file, name it as web.config and 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.config file has to be in the wwwroot directory in KUDU console.

enter image description here

"You do not have permission to view this directory or page."

Please refer Azure website message and SO Thread for more information

  • 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