Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Conflict between GAC and Bin dlls

  Asked By: Harshit    Date: Jul 29    Category: Sharepoint    Views: 2132

I'm customizing a SharePoint application, and I am referencing in my
Visual Studio project a dll that also exists in the GAC. The project
builds just fine, but when I hit the page I get the following error:

An error occurred during the processing of .
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
error CS0433: The type
'Microsoft.SharePoint.Publishing.PublishingLayoutPage' exists in both
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET

Any ideas on how to resolve this conflict? I can't uninstall the dll
from the GAC due to some dependencies, and I can't build my project
without the reference.



1 Answer Found

Answer #1    Answered By: Yogendra Zarapkar     Answered On: Jul 29

Just delete the one in the temporary files. The Microsoft.SharePoint namespace
files shouldn't be anywhere other than the GAC on the server anyway. Are you by
any chance working on a local workstation where you have manually installed the
dlls for development?

Didn't find what you were looking for? Find more on Conflict between GAC and Bin dlls Or get search suggestion and latest updates.