Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4325284
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:14:45+00:00 2026-05-21T09:14:45+00:00

When using SharePoint DLLs (which are x86 only) from a non-ASP.NET app, you can

  • 0

When using SharePoint DLLs (which are x86 only) from a non-ASP.NET app, you can set the “Platform target” to x86 (instead of “Any CPU”) so both Visual Studio 2010 and the app load the SharePoint assemblies fine.

However, when developing ASP.NET applications on an x64 development system, you get this dreaded error message when building the web-site:

Could not load file or assembly
‘Microsoft.SharePoint.Search’ or one
of its dependencies. An attempt was
made to load a program with an
incorrect format.

This is because ASP.NET by default is “Any CPU” when building in Visual Studio 2010.

How can I change that?

I tried the property pages for the web-site, the web.config, but to no avail.

Note: this is for the development system. I know that for the server system, I can change the application pool to force loading of 32-bit x86 by setting “Enable 32-Bit Applications” to “True” in the “Application Pool Defaults”.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T09:14:46+00:00Added an answer on May 21, 2026 at 9:14 am

    You can set custom compiler option on web.config on the <compilers>

    compilerOptions="/platform:string"
    

    where string can be found here:
    http://msdn.microsoft.com/en-us/library/zekwfyz4(VS.80).aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are using Sharepoint 2007 In which on master page we have Asp Image
we have a big portal that build using SharePoint 2007 , asp.net 3.5 ,
I previously created a website using ASP.NET that stores contact information and can produce
I am using SharePoint Server 2007 + C# + .Net 3.5 + VSTS 2008
We are using sharepoint 2007.sharepoint How do I hide the advanced search box which
I'm using Sharepoint's Copy.asmx webservice to upload legacy files and their metadata. The target
I am using Sharepoint 2007 to host Excel 2007 files generated by my App,
I have set up an Unity 2.0.414.0 container using app config. My solution structure
I am using SharePoint search to crawl an external website which is made up
I am trying to download the file from the document using sharepoint webservices called

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.