Azra
Azra

Reputation: 123

Microsoft Sharepoint Error

I am getting the Following Error Could not load file or assembly 'Microsoft.SharePoint.Search, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. An attempt was made to load a program with an incorrect format,

Though I have added the required Share point refernece and also modified the project setting , set the CPU as Any CPU.

still the error is coming. kindly help

Upvotes: 1

Views: 1955

Answers (3)

Ahmed Masud
Ahmed Masud

Reputation: 612

Set Copy Local = False in reference properties

Upvotes: 0

user32826
user32826

Reputation:

Are you developing on a 64bit machine for WSS3 or MOSS 2007? If so, you will run into these problems, and Microsofts recommendation is to switch to a 32bit machine for development, but you can still deploy to a 64bit machine with no issues.

How should I create a good environment for .Net development for Sharepoint?

Upvotes: 1

Colin
Colin

Reputation: 10638

YOu are trying to use an x86 version of the dll instead of the x64 version or vice versa probably.

Upvotes: 1

Related Questions