Setup Problems

Cannot install into VS2013 via automatic or manual methods

Started by TheRubble on 13,671 views

Hi,

I'm trying to install nCrunch, the automatic installer claims I don't have VS2013 installed. So I tried the manual method.

The plugin fails during startup and after looking at the activity log I see the following :

CreateInstance failed for package [nCrunch.VSIntegration2010.CrunchPackage, nCrunch.VSIntegration2013, Version=2.10.0.4, Culture=neutral, PublicKeyToken=01d101bf6f3e0aea]

I'm using the latest version NCrunch v2.10 (Released 18 Sep 2014).

Any ideas?
Hi!

Sorry for the late response on this. For some reason this message fell through my net.

Are you still experiencing this problem? A common reason for this error is if after performing a manual install, the O/S 'blocks' the installed files from loading because they are DLLs that "May harm your computer" after being extracted from ZIP file. To resolve this, you'll need to select the installed files using windows explorer, go to properties, then choose to Unblock the files.

Edited

No worries, I ended up reinstalling the machine. It needed a good cleaning down so all up and running now.
I have the same problem:
- the automatic installer claims I don't have VS2013 installed. So I tried the manual method.
- CreateInstance failed for package [nCrunch.VSIntegration2010.CrunchPackage, nCrunch.VSIntegration2013, Version=2.10.0.4, Culture=neutral, PublicKeyToken=01d101bf6f3e0aea]

I tried unblocking the files, deleting all files and running devenv.exe /setup

But no luck, do you have any more ideas? Why does the installer claim that I do not have VS2013 installed? What preinstall checks are run?

This is the text from ActivityLog.xml:
<entry>
<record>56</record>
<time>2015/01/12 09:16:27.014</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [nCrunch.VSIntegration2010.CrunchPackage, nCrunch.VSIntegration2013, Version=2.11.0.12, Culture=neutral, PublicKeyToken=01d101bf6f3e0aea]</description>
<guid>{14D2CAB3-EE7F-496E-BF5D-C67D2CBDD84D}</guid>
<hr>80004005 - E_FAIL</hr>
<errorinfo>Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Remco Software\NCrunch for Visual Studio 2013\nCrunch.VSIntegration2013.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)</errorinfo>
</entry>


Hi,

The installer does a simple registry check to see whether VS is installed, at the same time identifying its install path. It does so by reading the value: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\12.0\InstallDir (or its WOW64 equivalent).

To date I have not yet been able to reproduce the install problem in a development environment. Because the code involved is very straightforward and normal in an MSI, my belief is that this is being caused somehow by restricted access on the machine - perhaps 3rd party software blocking access to the registry or something similar.

It does look as though there is something interfering with your machine's ability to load the manually extracted DLLs from their install path. I recommend checking very thoroughly whether you've unblocked all of the files that were extracted (this is a crazy feature of Windows and it's very easy to miss a file). There is a useful post on stack overflow about a very similar sounding problem that may be worth a look - http://stackoverflow.com/questions/8524423/could-not-load-file-or-assembly-hresult-0x80131515-when-adding-controller-to-m. If you have any virus scanners or 3rd party security related software running, it may also be worth trying to deactivate this to see if it may be interfering with .NET or the MSI installer.
I tried the <loadFromRemoteSources enabled="true" /> from the StackOverflow post and it now seems to work as expected.

I did run a PowerShell command to unblock all files in the directory before:
gci . | Unblock-File
But something must still have been blocked somehow.

Thanks for your help.
Remco wrote:Hi,

The installer does a simple registry check to see whether VS is installed, at the same time identifying its install path. It does so by reading the value: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\12.0\InstallDir (or its WOW64 equivalent).

To date I have not yet been able to reproduce the install problem in a development environment. Because the code involved is very straightforward and normal in an MSI, my belief is that this is being caused somehow by restricted access on the machine - perhaps 3rd party software blocking access to the registry or something similar.

It does look as though there is something interfering with your machine's ability to load the manually extracted DLLs from their install path. I recommend checking very thoroughly whether you've unblocked all of the files that were extracted (this is a crazy feature of Windows and it's very easy to miss a file). There is a useful post on stack overflow about a very similar sounding problem that may be worth a look - http://stackoverflow.com/questions/8524423/could-not-load-file-or-assembly-hresult-0x80131515-when-adding-controller-to-m. If you have any virus scanners or 3rd party security related software running, it may also be worth trying to deactivate this to see if it may be interfering with .NET or the MSI installer.

Hi there,

I am trialling NCrunch at the moment but am having the exact same issue. Both automatic and manual methods fail. The registry entry exists and is valid, so I am uncertain what the issue is. Unfortunately the method above does not appear to help. Any ideas?

Edited

Hi, thanks for posting!

Can you describe the exact symptom you're experiencing? If unblocking the files and setting the loadFromRemoteSources didn't work for you, can you show the text VS places into ActivityLog.xml?

Edited

Remco wrote:Hi, thanks for posting!

Can you describe the exact symptom you're experiencing? If unblocking the files and setting the loadFromRemoteSources didn't work for you, can you show the text VS places into ActivityLog.xml?


HI there. Looks like a re-install of Visual Studio seemed to allow me to do the manual installation (automatic installation still fails). But this gets me going, thanks! I look forward to being unable to live without NCrunch.
Hi.

I had the same problems installing the latest versions of NCrunch (not able to find my VS installtions) on both Visual Studio 2010 and 2013. This was on a Windows 8.1 box.

I the ran the downloaded NCrunch MSI file as explicit "Administrator" - and it installed like a charm.

Post a reply

Log in to reply.