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.
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 :-)
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:
on line
in web.config
Checked and added full permissions for my windows user but the error persists.
What to do? Thanks
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
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
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
Yup. Empty then blank NOT MVC :)
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!
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
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 :-)
is working on a reply...