I am new to .NET, C# and programming in general.
Anyway, I am trying work with the System.DirectoryServices namespace. The build completes sucessfully but I keep getting an error in the browser. (see below).
I have added the System.DirectoryServices reference, pointing to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.DirectoryServices.dll
I read on one forum that said in the properties of the reference change 'Copy Local' from 'false' to 'true'.
I dont get the error anymore but I want to understand what the impact in doing this is. Mainly I don't understand why the error happened in the first place as another c# project had the same reference but i did not get the error.
Thanks for your time and information.
Anyway, I am trying work with the System.DirectoryServices namespace. The build completes sucessfully but I keep getting an error in the browser. (see below).
I have added the System.DirectoryServices reference, pointing to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.DirectoryServices.dll
I read on one forum that said in the properties of the reference change 'Copy Local' from 'false' to 'true'.
I dont get the error anymore but I want to understand what the impact in doing this is. Mainly I don't understand why the error happened in the first place as another c# project had the same reference but i did not get the error.
Thanks for your time and information.
Code:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0234: The type or namespace name 'DirectoryServices' does not exist in the namespace 'System' (are you missing an assembly reference?)
Source Error:
Line 3: using System.Configuration;
Line 4: using System.Data;
Line 5: using System.DirectoryServices;
Line 6: using System.Linq;
Line 7: using System.Web;
Source File: c:\Visual Studio 2008\Projects\intranet\pages\ads_tools.aspx.cs Line: 5