Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated

I'm getting the following error using visual Studio Express 2013 for Web. It previously work on 32 bit. My laptop is 64 bit Windows.

ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.

I've rebuild the solution with 64 bit cpu selected and no joy.

like image 296
Shaun Roach Avatar asked Jun 18 '15 08:06

Shaun Roach


2 Answers

If you go into Tools->Options>Web Projects and ensure your have "Use the 64 bit version of IIS Express for web sites and projects." this resolves the problem.

like image 103
Shaun Roach Avatar answered Oct 07 '22 18:10

Shaun Roach


My project is specificly 64bit.

I had to change a Reference to a dll, by adding the 64bit version. Creating a folder in my project called "x64" and adding the dll, with the property: Copy to Output Directory : Copy always


I found the solution in an Oracle readme:

Use the following steps for your application to use the 64-bit version of ....dll:

  1. Right click on the Visual Studio project.
  2. Select Add -> New Folder
  3. Name the folder x64.
  4. Right click on the newly created x64 folder
  5. Select Add -> Existing Item
  6. Browse to ...\bin\x64 under your project solution directory.
  7. Choose ....64bit.dll
  8. Click the 'Add' button
  9. Left click the newly added ....dll in the x64 folder
  10. In the properties window, set 'Copy To Output Directory' to 'Copy Always'.

For x86 targeted applications, name the folder x86 and add assemblies from the ...\bin\x86 folder.

like image 32
Kasper Halvas Jensen Avatar answered Oct 07 '22 16:10

Kasper Halvas Jensen