Authtype类程序集引用丢失。 [英] Authtype class assembly reference missing.

查看:79
本文介绍了Authtype类程序集引用丢失。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我运行在ASP.NET开发的网站。它在下面的行收到错误 -



public AuthType AuthenticationType {get {return _authType; } $



据我所知,我从下面下载了system.directoryservices.protocols.dll url-



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



我已将dll添加到我的网站Bin文件夹。



我已经添加了对我的.aspx页面的引用,如下所示 -



使用System.DirectoryServices.Protocols;



我仍​​然收到相同的错误消息,并且dll引用无法识别 -



'类型或命名空间名称'名称空间中不存在DirectoryServices(您是否缺少程序集引用?)



上课 -



public AuthType AuthenticationType {get {return _authType;}}



错误:



'类型或命名空间名称''AuthType在命名空间中不存在(你是否缺少程序集引用?)



我见过e文章,建议我安装.NET Framework 2.0 SP1。但是,我无法安装提到的软件,因为我已经安装了.NET Framework 3.5 SP1,.NET Framework 2.0 SP2,Microsoft .NET Framework 4.5.1,Microsoft .NET Framework 4-运行更新3和Microsoft .NET Framework 4-仅更新4.0.2。



请建议采取进一步行动。



谢谢。



我的尝试:



我试图找出从下面的url下载的类汇编,添加引用和构建 -

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

解决方案

在源代码中添加使用与将引用添加到程序集不同...

添加< b> reference 是允许您访问/使用代码中的(外部)程序集的类,其中使用来创建一种快捷方式...

让我们看一下WriteLine(system.Console)方法...

就在你这一刻ve 引用到系统核心(mscorlib.dll),你可以使用这种方法,但是没有任何使用你必须这样写:

 System.Console.WriteLine(...); 



添加使用,你可以写一个更短的代码:

 使用系统; 

系统。 Console.WriteLine(...);





使用 System.console

System.Console。 WriteLine(... );





正如您所描述的那样,您跳过了添加参考部分......


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/

解决方案

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:

System.Console.WriteLine(...);


Adding using, you can write a shorter code:

using System;

System.Console.WriteLine(...);


or

using System.console 

System.Console.WriteLine(...);



As you described your case you skipped the 'add reference' part...


这篇关于Authtype类程序集引用丢失。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆