How to specifiy a type for a Class in App_Code

Posted Tuesday, May 15, 2007 11:20 AM by C-Dog's .NET Tip of the Day

I have never really been a fan of the App_Code folder, but sometimes find it useful when prototyping something. Often however, I have wanted to know how to specify a type of something that is in the App_Code folder and did not know how. For example, maybe you have a custom ProfileProvider named MyProfileProvider sitting in your App_Code folder. How would you specify the path to that since there is no namespace probably and its not in an external assembly? Here is the syntax.

       <add name="MyProfieProvider" type="MyProfileProvider, __code" />

Read the complete post at