Right click on the .cs file in the App_Code folder and check its properties.
Make sure the “Build Action” is set to “Compile”.
Right click on the .cs file in the App_Code folder and check its properties.
Make sure the “Build Action” is set to “Compile”.