System.IO.DirectoryNotFoundException: Could not find a part of the path
To troubleshoot the issue, you can debug the code to check if the generated path is as expected.
Besides. you can try the following code snippet.
string locl = Path.Combine(this.iwebHostEnvironment, @"Templates\Manifest\defaultManifest.yml");
Test Result
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.