I am posting this in this newsgroup because I found some
discussions related to ADSI and this error
I had a Windows Forms Project which had a Class
File "AdUser.cs" which represents a Active Directory User
and had methods & Properties to Get and set HomeDirectory
etc. Every thing was fine.
I then descide to make my app multi tear and moved my
AdUser.cs to a seperate Class Project (AdData.csproj) and
everything still worked fine until I descided to move the
tracing functionality to the Class Project by creating a
seperate app.config file in that project. Also copied the
code below to the AdUser.cs.
TextWriterTraceListener textListener = new
TraceSwitch adDataSwitch= new TraceSwitch
("AdDaTrace","Trace for Ad Data Layer");
At the Trace.Listner.Add( , I get the below error.
Invalid token '(' in class, struct, or interface member
Rajesh Abraham Chacko