Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • nickornotto 371 posts 843 karma points
    Oct 09, 2015 @ 11:13
    nickornotto
    0

    Umbraco 7.3 nuget fresh install error

    Hi, I have created new empty MVC app in Visual Studio then installed umbraco 7.3 into it via nuget.

    I got only to choose whether I want to overwrite glabal.asax file - I selected No. All installed fine then I'm now trying to run the website to set it up but getting the error:

    Exception has been thrown by the target of an invocation.
    

    on line

    <add name="UmbracoMembershipProvider" type="Umbraco.Web.Security.Providers.MembersMembershipProvider, Umbraco" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="8" useLegacyEncoding="true" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Member" passwordFormat="Hashed" />
    

    in web.config

    Checked and added full permissions for my windows user but the error persists.

    What to do? Thanks

  • Steve Morgan 1301 posts 4351 karma points c-trib
    Oct 09, 2015 @ 14:44
    Steve Morgan
    0

    Are you using Visual Studio 2013?

    You should select a C# ASP.NET Web Application and then Empty on the next screen.

    I think the base VS MVC solution files conflicts with Umbraco nuget install

    If in doubt follow these instructions. https://our.umbraco.org/documentation/getting-started/setup/install/install-umbraco-with-nuget

  • David Brendel 792 posts 2968 karma points MVP c-trib
    Oct 09, 2015 @ 14:47
    David Brendel
    100

    Hi Eva,

    i think you should have legt umbraco override the global.asax.

    Instead of providing a CS file for it the code behind is build into the dlls.

    Normally i just delete the global.asax and the web.config file when setting up a New project in vs.

    Regards David

  • nickornotto 371 posts 843 karma points
    Oct 09, 2015 @ 19:03
    nickornotto
    0

    Steve yes I'm using VS 2013

    I selected Empty app then checked MVC box

    Then installed Umbraco 7.3 via nuget

    Will try the same without checking MVC option as per the link you copied

    Thanks

  • Steve Morgan 1301 posts 4351 karma points c-trib
    Oct 09, 2015 @ 20:05
    Steve Morgan
    0

    Yup. Empty then blank NOT MVC :)

  • nickornotto 371 posts 843 karma points
    Oct 11, 2015 @ 10:09
    nickornotto
    0

    Thanks Steve that worked.

    However I had to use install from manage nuget packages as when trying to install via nuget console still didn't work (gave a different error)

    Anyway - resolved!

  • Steve Morgan 1301 posts 4351 karma points c-trib
    Oct 13, 2015 @ 08:02
    Steve Morgan
    0

    Glad you've sorted it Eva,

    I found issues with Nuget before - if you get it in the future try clearing the cache http://stackoverflow.com/questions/30933277/how-to-clear-nuget-package-cache-using-command-line

  • Kristian Ravnevand 93 posts 213 karma points
    Dec 12, 2015 @ 10:25
    Kristian Ravnevand
    0

    Just a followup on this (in case anyone is a stupid as me....) I forgot to zip the global.asax file when copying my project from one server to another, that ended up with the error above :-)

Please Sign in or register to post replies

Write your reply to:

Draft