Last post Aug 12, 2010 04:31 PM by iGanja
Aug 11, 2010 06:41 PM|iGanja|LINK
I have simply copied a page from a VS2005 project to a VS2010 project, and it will not work.
NO code-behind, just a simple Page_Load function in the .aspx page.
and okay, since this editor complete f's up a cut and paste from VS, I will type it all out....wonderful!
protected void Page_Load(object sender, EvnetArgs e)
This is really all you need to see.
The System.DirectoryServices is not available in intellisense and gives an error if I try to run this.
I have added the reference to my VS project - no go.
I have added a reference as an @Import at the top of the page - no go.
All other System classes appear to be available, but not DirectoryServices, so anyone know the secret handshake to get this to work in VS 2010?
Aug 12, 2010 12:09 AM|karthicks|LINK
in web,config include this line
<add assembly="System.DirectoryServices, Version=126.96.36.199, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
if you get error after adding this line also,
right-click your website choose Add Reference ->
under .net tab - choose System.DirectoryServices assembly
Aug 12, 2010 04:31 PM|iGanja|LINK
This worked; although in VS2010 I am using the 4.0 framework, so the version was set to 188.8.131.52.