Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I running website developed in ASP.NET. It am receiving error on below line-

public AuthType AuthenticationType { get { return _authType; } }

As per my knowledge, I have downloaded system.directoryservices.protocols.dll from below url-

http://dllyes.com/system-directoryservices-protocols-dll/

I have added dll to my website Bin folder.

I have added reference into my .aspx page like below-

using System.DirectoryServices.Protocols;

Still I am receiving the same error message and also dll reference not recognized-

'The type or namespace name '' DirectoryServices" does not exists in the namespace (Are you missing an assembly refernce?)

For class -

public AuthType AuthenticationType { get { return _authType; } }

Error:

'The type or namespace name ''AuthType" does not exists in the namespace (Are you missing an assembly refernce?)

I have seen one article, suggest me instal ".NET Framework 2.0 SP1". However, I am not able to install mentioned software as I already have installed ".NET Framework 3.5 SP1", ".NET Framework 2.0 SP2", "Microsoft .NET Framework 4.5.1", "Microsoft .NET Framework 4- Running Update 3" and "Microsoft .NET Framework 4- Update 4.0.2 only".

Please suggest further action.

Thanks.

What I have tried:

I have tried to find out class assembly downloaded from below url, add reference and build-
http://dllyes.com/system-directoryservices-protocols-dll/
Posted
Updated 21-May-16 23:12pm

1 solution

Add using in source is NOT the same as adding reference to an assembly...
Adding reference is there to let you access/use the classes form that (external) assembly in your code, where using is there to create a kind of shortcut...
Let see the WriteLine (system.Console) method...
The very moment you have reference to System core (mscorlib.dll), you can use this method, however without any using you have to write it like this:
C#
System.Console.WriteLine(...);

Adding using, you can write a shorter code:
C#
using System;

System.Console.WriteLine(...);

or
C#
using System.console 

System.Console.WriteLine(...);


As you described your case you skipped the 'add reference' part...
 
Share this answer
 
Comments
Member 8090436 22-May-16 5:58am    
Hi,
Thanks for your response. I have open ASP.NET 2.0 application in Visual Studio 2015 as a Website.
I have tried to find out v4. 0 dell, However, it has not been available. I have added v2.0 downloaded dll to the open website Bin folder.
I have added -
using System.DirectoryServices.Protocols;
It hasn't recognized at all.
Any suggestion on this.
Sergey Alexandrovich Kryukov 22-May-16 11:30am    
5ed.
—SA
Kornfeld Eliyahu Peter 22-May-16 12:18pm    
Thank you...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900