Malvineous
Malvineous

Reputation: 27330

How to set Visual Studio 2013 web project to 32-bit?

I have a Solution I am upgrading to Visual Studio 2013 and I'm stuck trying to get the old web service working.

When I run it, I get an error complaining that I am trying to load a 32-bit Oracle .dll into a 64-bit process. Fair enough, except that there doesn't seem to be a way to change a web service into 32-bit/x86 mode.

How do you tell Visual Studio 2013 that a particular web project should be built as 32-bit?

For a normal project you just right-click, Properties, then change the CPU type to x86. But there aren't any properties for an old web project so I'm not sure how to set it to 32-bit!

EDIT: This question explains how to create a new solution platform, but when I do so, the web project will not change to 32-bit, as you can see from this screenshot:

Configuration manager screenshot

EDIT2: @jackjop: Here is a screenshot of the right-click menu, it looks quite different to yours:

Right-click menu

Upvotes: 2

Views: 6114

Answers (2)

Wize
Wize

Reputation: 1090

Just change the IIS version, that Visual Studio 2013 is using to 32bit.

TOOLS / OPTIONS / Projects and Solutions / Web Projects

Uncheck "Use the 64 bit version of IIS..." enter image description here

Upvotes: 2

sertsedat
sertsedat

Reputation: 3600

enter image description here

Change AnyCPU to x86 or check Prefer 32-bit in Project Properties.

Also, see this answer.

Edit:

Below I created two projects in one solution(web and desktop). When I click right to web project title there's Properties at the bottom and this opens the left panel, there you can see Compile tab, and after you can change the Target CPU to x86. (For bigger image --> left click image and Open In New Tab for if you don't know.)

enter image description here

Upvotes: 2

Related Questions