无法在Web服务器上启动调试."System.Net.DigestClient"的类型初始值设定项引发异常,Unable to debug System.Net.DigestClient throws an exception

Re: Unable to debug System.Net.DigestClient throws an exception 
  Was this post helpful ?
 

 

Have any of you got a referenced assembly called Security.dll?

I read somewhere that if you have a dll of this name in your web bin folder, this will be used first for any basic security, and, of course, you will not have the relevant methods available.

I got this working by renaming the output of my Security.dll to have a fully qualified assembly name, so as to differentiate it from yer actual security.dll.

 











在微软MSDN上查到这个,意思是说在你的项目下如果有一个DLL的的名称是Security.Dll的话,.Net会认为是它自己的Security.Dll,就会进行相应处理,从而导致错误,将自己的Security.Dll改名,就可以避免此错误。
经过试验,我的项目确实有一个自己的Security.Dll,改名后重新启动IDE,正常。大家可以试一试。


posted @ 2008-05-12 16:42  赖文华.NET  阅读(561)  评论(0编辑  收藏  举报