Click here to Skip to main content
15,915,864 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I changed a website target Framework was changed from 3.5 to 4. hence it modified the web config too.

after that I have added the system.diresctory.dll into my project and it also been added to my project and webconfig.

but when I code in aspx.cs file it shows missing assembly reference.

please help me.


XML
<assemblies>
        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
      </assemblies>
    </compilation>
Posted
Updated 14-Aug-13 1:09am
v3

1 solution

I don't know how did you get the list of assemblies shown in the question, but it looks like your problem is having some assemblies of old versions. Remove them, replace with v.4. Simply remove all references and add again.

—SA
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 14-Aug-13 7:09am    
No! don't copy, they are obsolete. Create some project from scratch. Use "Add reference" and click on required assemblies (".NET" tab). You will see what are the correct versions.
—SA
[no name] 14-Aug-13 10:30am    
Please remove the references from the project and add them one by one from the library once again. Make sure the dlls are for the 4.0 not for 3.5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900