AD, kb326340, Asp.net@vb

zhughes

Member
Joined
Feb 15, 2008
Messages
15
Programming Experience
Beginner
Ok,

So I've done everything on the Microsoft kb here:
http://support.microsoft.com/kb/326340
like 6 times.

I copy and paste everything so there is for sure not spelling mistakes - doesn't appear that Microsoft did either.

I get one error & one Warning every time in the error list windows in visual studio:

Error: Type 'LdapAuthentication' is not defined.
Warning: Namespace or type specified in the Imports 'FormsAuthAd.FormsAuth' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

Has anyone else tried this kb get the same problems? And if so, were you able to get it going & how?

Thanks for your help!
 
The sample (which I haven't tried) is written for older ASP versions. Change it to "Import FormsAuth". When you added the class you were also told you had to add it to App_Code for it to be consumable.
 
Last edited:
Your right on the imports for the vb.net part, however the syntax for the html remains import - without the s. But your 100% correct using only FormsAuth in the syntax.

I did find the hang up though after playing a bit more thanks to your post, the instructions won't work if you are using VS 2005. Instead, you will want to use this:
<%@ Import Namespace="FormsAuth" %>
at the top of the Logon.aspx form.
 
Back
Top