Hello,
The error message System.IO.DirectoryNotFoundException: /src/src/Web/DWC.WebStatus/wwwroot indicates that the system is not able to find the directory at the specified path. This could be due to several reasons including incorrect path, missing direcotry or file system permissions.
As the issue is only happening in the "Development" environment, there might be something in your development environment configuration that's causing the issue. you should heck your appsettings.Development.json
file.
If your wwwroot
directory is not being included in your Docker image, or if the path to the directory in the image is not what your application expects, you will see this error. Check your Dockerfile to ensure that the wwwroot
directory is being included in the image, and that the path in the image matches what your application expects.
In .NET, the IWebHostEnvironment.WebRootPath
property can be used to get the absolute path to the wwwroot
directory. If your application is using a hard-coded path to access the wwwroot
directory, it might not work correctly in a Docker/Kubernetes environment, where the file system layout can be different from what it is on your development machine.
If that doesn't solve the issue, you might need to provide more information, like your project files, or any relevant parts of your Kubernetes configuration.