0

I am migrating my application from .NET 4.8 to .NET 6.

I unable to find the suitable replacement for this code. Could anyone help me ?

VirtualDirectoryMapping vdm = new VirtualDirectoryMapping("some webproject path", true);

WebConfigurationFileMap wcfm = new WebConfigurationFileMap();
wcfm.VirtualDirectories.Add("/", vdm);

return WebConfigurationManager.OpenMappedWebConfiguration(wcfm, "/");

Thanks
Naresh

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459

0 Answers0