Using Visual Studio 2015 in an ASP.NET project. Everything works fine, except that now I have a block of code (a common AD AD function) and I want all pages to have access. The source language (inherited project) is VB.NET, but it should work just fine anyway.
I created a class file named CommonADFunctions.vb. The file uses System.DirectoryServices, and there is a link in the project to this assembly. However, there are two problems:
- I cannot reference the new class to call functions from any of the page code files. This includes trying to create a new variable as a class type.
- When I move the new .VB file to App_Code, the link to System.DirectoryServices breaks and it refuses to build.
This may seem like trivial demand, but what am I missing?
source
share