This project is read-only.
1

Closed

Exception calling "Item" with "1" argument(s): "The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))"

description

Hello,

when installing T4MVC on a MVC 5 project in VS 2013 I get the following error:

Successfully installed 'T4MVC 3.7.4'.
Adding 'T4MVCExtensions 3.7.4' to Proj.Site.
Successfully added 'T4MVCExtensions 3.7.4' to Proj.Site.
Adding 'T4MVC 3.7.4' to Blomon.Blom.Site.
Successfully added 'T4MVC 3.7.4' to Blomon.Blom.Site.
Exception calling "Item" with "1" argument(s): "The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))"
At C:\Lab\Proj.Site\packages\T4MVC.3.7.4\tools\install.ps1:5 char:27
  • $project.ProjectItems.Item <<<< ("T4MVC.tt.settings.xml").Properties.Item("BuildAction").Value = 0
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : ComMethodTargetInvocation
Is this a bug?

Thank You,
Miguel
Closed Jan 28, 2015 at 4:11 PM by KevinKuszyk
As part of our move to GitHub, we are closing all the outstanding issues on CodePlex.

If your issue is still valid, please re-open it on GitHub:
https://github.com/T4MVC/T4MVC/issues

Thanks for contributing!

comments

davidebbo wrote Oct 31, 2013 at 7:31 PM

I'm not seeing this. There is probably something going on with your VS, and I don't think it's an issue specific to T4MVC. All T4MVC is doing is setting the build action of some items in the install.ps1:
$project.ProjectItems.Item("T4MVC.tt").Properties.Item("BuildAction").Value = 0 #prjBuildActionNone
$project.ProjectItems.Item("T4MVC.tt.hooks.t4").Properties.Item("BuildAction").Value = 0
$project.ProjectItems.Item("T4MVC.tt.settings.xml").Properties.Item("BuildAction").Value = 0
You may want to try isolating by running similar commands outside of the context of T4MVC.