I have a solution and two projects in it: VisualWebPart and ProjectsLibrary
VisualWebPart has a reference to ProjectsLibrary (tried to change Property for ProjectsLibrary Copy Local to false/true , but it didn't help). Solution deploys without mistakes, then i press button on my VisualWebPart which calls class from my ProjectsLibrary and mistake appears:
<------------------
Server Error in '/' Application.
Could not load file or assembly 'ProjectsLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e73044c0c1e01d59' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'ProjectsLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e73044c0c1e01d59' or one of its dependencies. The system cannot find the file specified.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[FileNotFoundException: Could not load file or assembly 'ProjectsLibrary, Version=1.0.0.0, Culture=neural, PublicKeyToken=e73044c0c1e01d59' or one of its dependencies. The system cannot find the file specified.]
CompassPlus__Rights.UploadDoc.UploadDocUserControl.Upload_Click(Object sender, EventArgs e) +0
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5456
----------------->
It happens everytime I try to connect to external library.
Target platform for both projects is x64, solution's active platform is x64. Framework 3,5. Why cant sharepoint2010 or VS2010 find external dll?