MvcMailer icon indicating copy to clipboard operation
MvcMailer copied to clipboard

Install Errors

Open rwhitmire opened this issue 13 years ago • 13 comments

on installation from within a brand new MVC3 C# project, I get the following errors:

PM> install-package MvcMailer Attempting to resolve dependency 'T4Scaffolding (≥ 0.9.7)'. Attempting to resolve dependency 'EntityFramework (≥ 4.1.10311.0)'. You are downloading EntityFramework from Microsoft, the license agreement to which is available at http://go.microsoft.com/fwlink/?LinkId=224682. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device. Successfully installed 'EntityFramework 4.1.10715.0'. Successfully installed 'T4Scaffolding 0.9.9'. Successfully installed 'MvcMailer 1.1'. Successfully removed 'EntityFramework 4.1.10331.0' from MvcApplication2. Successfully added 'EntityFramework 4.1.10715.0' to MvcApplication2. Successfully added 'T4Scaffolding 0.9.9' to MvcApplication2. Set-DefaultScaffolder : Unable to cast object of type 'NuGet.SemanticVersion' to type 'System.Version'. At C:\users\rwhitmire\documents\visual studio 2010\Projects\MvcApplication2\packages\T4Scaffolding.0.9.9\tools\install.ps1:22 char:22

  • Set-DefaultScaffolder <<<< -Name DbContext -Scaffolder T4Scaffolding.EFDbContext -SolutionWide -DoNotOverwriteExistingSetting
    • CategoryInfo : NotSpecified: (:) [Set-DefaultScaffolder], InvalidCastException
    • FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet

Set-DefaultScaffolder : Unable to cast object of type 'NuGet.SemanticVersion' to type 'System.Version'. At C:\users\rwhitmire\documents\visual studio 2010\Projects\MvcApplication2\packages\T4Scaffolding.0.9.9\tools\install.ps1:23 char:22

  • Set-DefaultScaffolder <<<< -Name Repository -Scaffolder T4Scaffolding.EFRepository -SolutionWide -DoNotOverwriteExistingSetting
    • CategoryInfo : NotSpecified: (:) [Set-DefaultScaffolder], InvalidCastException
    • FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet

Set-DefaultScaffolder : Unable to cast object of type 'NuGet.SemanticVersion' to type 'System.Version'. At C:\users\rwhitmire\documents\visual studio 2010\Projects\MvcApplication2\packages\T4Scaffolding.0.9.9\tools\install.ps1:24 char:22

  • Set-DefaultScaffolder <<<< -Name CustomTemplate -Scaffolder T4Scaffolding.CustomTemplate -SolutionWide -DoNotOverwriteExistingSetting
    • CategoryInfo : NotSpecified: (:) [Set-DefaultScaffolder], InvalidCastException
    • FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet

Set-DefaultScaffolder : Unable to cast object of type 'NuGet.SemanticVersion' to type 'System.Version'. At C:\users\rwhitmire\documents\visual studio 2010\Projects\MvcApplication2\packages\T4Scaffolding.0.9.9\tools\install.ps1:25 char:22

  • Set-DefaultScaffolder <<<< -Name CustomScaffolder -Scaffolder T4Scaffolding.CustomScaffolder -SolutionWide -DoNotOverwriteExistingSetting
    • CategoryInfo : NotSpecified: (:) [Set-DefaultScaffolder], InvalidCastException
    • FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet

Successfully added 'MvcMailer 1.1' to MvcApplication2. Set-DefaultScaffolder : Unable to cast object of type 'NuGet.SemanticVersion' to type 'System.Version'. At C:\users\rwhitmire\documents\visual studio 2010\Projects\MvcApplication2\packages\MvcMailer.1.1\tools\install.ps1:23 char:22

  • Set-DefaultScaffolder <<<< -Name Mailer -Scaffolder $mailerScaffolder -SolutionWide -DoNotOverwriteExistingSetting
    • CategoryInfo : NotSpecified: (:) [Set-DefaultScaffolder], InvalidCastException
    • FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet

rwhitmire avatar Dec 29 '11 18:12 rwhitmire

Thanks for reporting this. I will have to try this when I get some free time in this week. Can you try the same thing on a fresh project? In the past I have seen people having such issues when a previously installed Nuget package was removed but the dependencies were still

hanging around in the project.

Sohan http://smsohan.com skype:smsohan | gtalk:sohan39 | cell: 403-714-2673

On Fri, Dec 30, 2011 at 12:54 AM, Ryan Whitmire [email protected] wrote:

on installation from within a brand new MVC3 C# project, I get the following errors:

PM> install-package MvcMailer Attempting to resolve dependency 'T4Scaffolding (≥ 0.9.7)'. Attempting to resolve dependency 'EntityFramework (≥ 4.1.10311.0)'. You are downloading EntityFramework from Microsoft, the license agreement to which is available at http://go.microsoft.com/fwlink/?LinkId=224682. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device. Successfully installed 'EntityFramework 4.1.10715.0'. Successfully installed 'T4Scaffolding 0.9.9'. Successfully installed 'MvcMailer 1.1'. Successfully removed 'EntityFramework 4.1.10331.0' from MvcApplication2. Successfully added 'EntityFramework 4.1.10715.0' to MvcApplication2. Successfully added 'T4Scaffolding 0.9.9' to MvcApplication2. Set-DefaultScaffolder : Unable to cast object of type 'NuGet.SemanticVersion' to type 'System.Version'. At C:\users\rwhitmire\documents\visual studio 2010\Projects\MvcApplication2\packages\T4Scaffolding.0.9.9\tools\install.ps1:22 char:22

  • Set-DefaultScaffolder <<<<  -Name DbContext -Scaffolder T4Scaffolding.EFDbContext -SolutionWide -DoNotOverwriteExistingSetting    + CategoryInfo          : NotSpecified: (:) [Set-DefaultScaffolder], InvalidCastException    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet

Set-DefaultScaffolder : Unable to cast object of type 'NuGet.SemanticVersion' to type 'System.Version'. At C:\users\rwhitmire\documents\visual studio 2010\Projects\MvcApplication2\packages\T4Scaffolding.0.9.9\tools\install.ps1:23 char:22

  • Set-DefaultScaffolder <<<<  -Name Repository -Scaffolder T4Scaffolding.EFRepository -SolutionWide -DoNotOverwriteExistingSetting    + CategoryInfo          : NotSpecified: (:) [Set-DefaultScaffolder], InvalidCastException    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet

Set-DefaultScaffolder : Unable to cast object of type 'NuGet.SemanticVersion' to type 'System.Version'. At C:\users\rwhitmire\documents\visual studio 2010\Projects\MvcApplication2\packages\T4Scaffolding.0.9.9\tools\install.ps1:24 char:22

  • Set-DefaultScaffolder <<<<  -Name CustomTemplate -Scaffolder T4Scaffolding.CustomTemplate -SolutionWide -DoNotOverwriteExistingSetting    + CategoryInfo          : NotSpecified: (:) [Set-DefaultScaffolder], InvalidCastException    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet

Set-DefaultScaffolder : Unable to cast object of type 'NuGet.SemanticVersion' to type 'System.Version'. At C:\users\rwhitmire\documents\visual studio 2010\Projects\MvcApplication2\packages\T4Scaffolding.0.9.9\tools\install.ps1:25 char:22

  • Set-DefaultScaffolder <<<<  -Name CustomScaffolder -Scaffolder T4Scaffolding.CustomScaffolder -SolutionWide -DoNotOverwriteExistingSetting    + CategoryInfo          : NotSpecified: (:) [Set-DefaultScaffolder], InvalidCastException    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet

Successfully added 'MvcMailer 1.1' to MvcApplication2. Set-DefaultScaffolder : Unable to cast object of type 'NuGet.SemanticVersion' to type 'System.Version'. At C:\users\rwhitmire\documents\visual studio 2010\Projects\MvcApplication2\packages\MvcMailer.1.1\tools\install.ps1:23 char:22

  • Set-DefaultScaffolder <<<<  -Name Mailer -Scaffolder $mailerScaffolder -SolutionWide -DoNotOverwriteExistingSetting    + CategoryInfo          : NotSpecified: (:) [Set-DefaultScaffolder], InvalidCastException    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet

Reply to this email directly or view it on GitHub: https://github.com/smsohan/MvcMailer/issues/33

smsohan avatar Jan 01 '12 07:01 smsohan

yes, this occurs on a fresh project, both MVC3 and Empty Web Application.

rwhitmire avatar Jan 01 '12 07:01 rwhitmire

try to Install separately the T4Scaffolding

comfreakph avatar Jan 05 '12 03:01 comfreakph

I had the same issue. As comfreakph mentions you MUST install T4scaffolding first. (and possibly restart VS) before installing MvcMailer.

drgrieve avatar Jan 19 '12 00:01 drgrieve

OK thanks! I'm writing an app that need some email stuff now so I'll try it out in the next day or two.

rwhitmire avatar Jan 19 '12 01:01 rwhitmire

Just to confirm, after struggling the better part of an hour to get this working: I had the same issues, so installed T4scaffolding, restart VS and then installed MvcMailer. Ran T4scaffolding "Scaffold Mailer UserMailer Welcome,GoodBye" and FINALLY it's working. Too nice a tool this to give up on, but seriously try and sort out this issues. :-)

krokonoster avatar Apr 01 '12 23:04 krokonoster

Same issue here. Hopefully it can be resolved soon. Great package, hate to lose people that can't get past this problem.

ericjohannsen avatar Apr 20 '12 07:04 ericjohannsen

Hit this issue as well...

ctolkien avatar Apr 26 '12 01:04 ctolkien

All issues I hit are covered (with solutions) here:

http://stackoverflow.com/questions/10241797/error-scaffolding-with-mvcmailer-in-mvc-4/10309336#10309336

ericjohannsen avatar Apr 26 '12 02:04 ericjohannsen

Still fails

xaviguardia avatar Apr 30 '12 14:04 xaviguardia

Works fine if you install first mvcscaffolding & then mvcmailer

xaviguardia avatar Apr 30 '12 14:04 xaviguardia

Same here. Took me 30 minutes to find this thread..please fix

gluip avatar Aug 15 '12 17:08 gluip

when is this going to be fixed??

shoaibshakeel381 avatar Aug 31 '14 15:08 shoaibshakeel381