System.DirectoryServices is not recognised in the namespace 'System'

后端 未结 9 1290
一整个雨季
一整个雨季 2021-02-05 02:23

I\'m trying to use System.DirectoryServices in a web site project and I\'m getting this error:

The type or namespace name \'DirectoryServices

9条回答
  •  伪装坚强ぢ
    2021-02-05 03:05

    Is the web-server (IIS or whatever) configured to run the folder as an application (i.e. shows as a cog), and is it using the correct version of ASP.NET? If it is running as 1.1, bits of it might work - but it would fail to find that 2.0 assembly in the 1.1 GAC.

提交回复
热议问题