Home > Net >  A class library file is added in the App_Code folder after problems
A class library file is added in the App_Code folder after problems

Time:03-27

This library file is dealing with email, and several other class library file belongs to the namespace ServerTools, after the problem is added into the App_Code folder, not in the background in the page file using ServerTools namespace, call the class library method, and the other was a SQLDBHelp in the App_Code folder. The cs is not belong to a namespace, but it can directly by the name of the class SQLDBHelp call the static method,

I use the.net Framework 4.5, above belongs to the namespace ServerTools library files are unable to call the class method, using no ServerTools namespace,

CodePudding user response:

Turned out to be in the.net Framework 4.5 must adjust the class files in the App_Code properties - operating mode is changed to "build", this problem has been solved,
  • Related