Quantcast
Channel: RazorGenerator Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 525

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

$
0
0
Hello,

When I installed RazorGenerator.Templating on a class library I get the following error:

Installing 'RazorGenerator.Templating 2.1.1'.
Successfully installed 'RazorGenerator.Templating 2.1.1'.
Adding 'RazorGenerator.Templating 2.1.1' to Proj.Core
Successfully added 'RazorGenerator.Templating 2.1.1' to Proj.Core.
Exception calling "Item" with "1" argument(s): "The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))"
At C:\Lab\Proj.Core\packages\RazorGenerator.Templating.2.1.1\tools\install.ps1:4 char:39
+ $testPage = $project.ProjectItems.Item <<<< ("SampleTemplate.cshtml")
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ComMethodTargetInvocation

You cannot call a method on a null-valued expression.
At C:\Lab\Proj.Core\packages\RazorGenerator.Templating.2.1.1\tools\install.ps1:5 char:26
+ $testPage.Properties.Item <<<< ("CustomTool").Value = "RazorGenerator"
+ CategoryInfo : InvalidOperation: (Item:String) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull

Any idea what might be wrong?

Thank You,
Miguel
Comments: The install script that's failing here attempts to set the CustomTool property for a sample file that is added as part of the package. Could you run the install command with verbose logging? ``` Install-Package RazorGenerator.Templating -Verbose ``` It might be useful to see if NuGet managed to add the file to the project to start with. Also what version of VS are you using?

Viewing all articles
Browse latest Browse all 525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>