Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Errors #33

Open
rwhitmire opened this issue Dec 29, 2011 · 13 comments
Open

Install Errors #33

rwhitmire opened this issue Dec 29, 2011 · 13 comments

Comments

@rwhitmire
Copy link

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
@smsohan
Copy link
Owner

smsohan commented Jan 1, 2012

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
reply@reply.github.com
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:
#33

@rwhitmire
Copy link
Author

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

@comfreakph
Copy link

try to Install separately the T4Scaffolding

@drgrieve
Copy link

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

@rwhitmire
Copy link
Author

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.

@krokonoster
Copy link

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. :-)

@ericjohannsen
Copy link

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

@ctolkien
Copy link

Hit this issue as well...

@ericjohannsen
Copy link

@xaviguardia
Copy link

Still fails

@xaviguardia
Copy link

Works fine if you install first mvcscaffolding & then mvcmailer

@gluip
Copy link

gluip commented Aug 15, 2012

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

@shoaibshakeel381
Copy link

when is this going to be fixed??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants