Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem removing codeSubDirectories elements in sub-application

I have an ASP.NET application with a <codeSubDirectories> section in web.config. My main project is in VB.NET but I have a CSCode subdirectory under App_Code written in C#. Now for every new sub application I create I have to create a CSCode folder under App_Code. Microsoft's documentation says there is a <clear /> element but I get an error when I add it to the sub application's web.config file. What's going on?

like image 352
Mike L Avatar asked May 10 '26 15:05

Mike L


1 Answers

Found it. Apparently Microsoft never got around the actually coding the <clear /> element for <codeSubDirectories>. The online MSDN Documentation mentions this in the Community Content section.

As a workaround I'm going to move the CSCode into a separate DLL.

like image 95
Mike L Avatar answered May 13 '26 08:05

Mike L



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!