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

In CAML I can query SharePoint Listitems using the Contains-element, but there is no
We're using Forms Authentication in SharePoint. When the account is created, the administrator can
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
My company has a project for which I proposed using SharePoint Enterprise 2010. We
we are using SharePoint Server (MOSS 2007) with Windows Integrated Security. A few computers
Our team has built a site using Sharepoint and a few custom webparts. We've
I've created a list using the SharePoint (MOSS 2007) Issue Tracking List. A Comments
I'm trying to upload documents to SharePoint using web services attaching custom metadata to

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.