I'm on VS 2012 and I've updated the plugins for NuGet and disabled resharper and used the empty web application. I get to configure the site and select a database and I don't add a template. After several moments it gives an error and points me to the logs in App_Data\Logs. The log suggests that things are going well with creating the database schema and then it gives the following error.
2016-07-23 11:55:36,001 [P968/D4/T12] ERROR Umbraco.Web.Install.Controllers.InstallApiController - Installation step UmbracoVersion failed.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AggregateException: One or more errors occurred. ---> AutoMapper.AutoMapperMappingException: Missing type map configuration or unsupported mapping.
Mapping types:
User -> Int32
Umbraco.Core.Models.Membership.User -> System.Int32
Destination path:
BackOfficeIdentityUser
Source value:
Umbraco.Core.Models.Membership.User
at AutoMapper.MappingEngine.AutoMapper.IMappingEngineRunner.Map(ResolutionContext context)
There is a lot more in the log. Is this related to 2012? I've performed the same test on another machine with 2013 with no problems. I can upgrade but if this is not related to 2012 I'd rather learn on 2012 and upgrade when I need to.
Edit:
I'm not sure if this is relevant but I took another look at the log and found the following errors during what looks like database creation.
2016-07-23 11:55:07,330 [P968/D3/T18] INFO Umbraco.Core.DatabaseContext - Configured a new ConnectionString using the 'System.Data.SqlServerCe.4.0' provider.
2016-07-23 11:55:07,464 [P968/D3/T11] ERROR UmbracoExamine.DataServices.UmbracoLogService - Provider=InternalMemberIndexer, NodeId=-1
System.Exception: Cannot index queue items, the index doesn't exist!,, IndexSet: InternalMemberIndexSet
2016-07-23 11:55:07,466 [P968/D3/T11] ERROR UmbracoExamine.DataServices.UmbracoLogService - Provider=InternalIndexer, NodeId=-1
System.Exception: Cannot index queue items, the index doesn't exist!,, IndexSet: InternalIndexSet
2016-07-23 11:55:07,466 [P968/D3/T11] ERROR UmbracoExamine.DataServices.UmbracoLogService - Provider=ExternalIndexer, NodeId=-1
System.Exception: Cannot index queue items, the index doesn't exist!,, IndexSet: ExternalIndexSet
It might also be useful to know that I get the same error if I use localdb instead of ce. I'm running on Windows 10, the machine that works is Windows 7. I should also mention that on the same machine when I installed via the webmatrix route, it worked fine.
Is there anything on either umbraco.com or our.umbraco.org that lists the officially supported combinations of umbraco version, VS version, and OS version?
Since I have Windows 10 and VS2012 (update 5) installed I decided to give it a quick go. These are the steps I took:
Make sure to have the last version of Nuget installed:
Tools -> Extensions and Updates -> Updates -> Visual Studio Gallery -> nuget package manager
Create new project and choose .net 4.5.1 and then ASP.NET empty web application
Create empty database in localdb
Use the nuget package manager to install the latest version of umbraco. Should succed the first time.
Don't forget to rebuild...
Set visual studio to debug with google (IE sometimes gives trouble)
Choose customize on the start screen and then SQL Server. Fill in server: (LocalDb)\v11.0 the database name and choose integrated authentication.
Do not choose a starterkit (you can always do that later)
This should work and you should now have a succesful installation. I even went further and installed a uSkinned theme above it. Still worked fine.
I can only verify that this worked on my machine. If you in any way took a different step then those above, please try creating a new project in visual studio and try it again.
I'm running on Windows 10 Pro. I followed your steps and still get exactly the same problem. In fact the only thing different between us was the version of .Net. I was using 4.5.2 but tried 4.5.1 as you suggested. My guess is that something else is installed on my machine that interferes or that I'm missing something that needs installing.
Configured a new ConnectionString using the 'System.Data.SqlServerCe.4.0' provider
then that's definitely strange. should say:
System.Data.SqlClient
On my laptop where I've tried it, I do have a full version of sql server 2104 installed. So yes I did use localdb, but I don't know if that could influence it.
What version sql server are you using on your machine? Is it the express version that comes shipped with VS 2012? And did you create your empty database within visual studio or through SQL Server management studio?
I tried a couple of times, I thought using CE would possibly help and it is possible the log I copied from was for one of the CE attempts. However I have followed your instructions to the letter and still get the same error.
Since the error is not familiar to me I would just try some different ways to come to a working solution. Since I can verify that umbraco should work with vs2012 and sql server 2014 I would upgrade to sql server 2014. If that doesn’t work, then perhaps reinstall vs2012.
If this still doesn’t work, try downloading and install the community version of vs2015. Luckily installing umbraco is 15 min of your time. Anyway the one thing you shouldn't do is give up. It should be a piece of cake to install Umbraco. There’s just something quirky going on with your computer...
Well after a lot of messing around I think I found the problem and what is strange is that it is related to not having windows authentication enabled under the IIS Security options. Having installed that and rebooted, it seems that the project runs up as expected. I'm not sure why it works under webmatrix but at least I didn't have to splash out on a new version of VS (even the free one) ;-)
Umbraco on Visual Studio 2012 gives automapper error in log
I'm just trying to get started with Umbraco and a colleague suggested using the procedure here https://our.umbraco.org/documentation/getting-started/setup/install/install-umbraco-with-nuget. I'm using the package manager option but I tried via the NuGet package manager too.
I'm on VS 2012 and I've updated the plugins for NuGet and disabled resharper and used the empty web application. I get to configure the site and select a database and I don't add a template. After several moments it gives an error and points me to the logs in App_Data\Logs. The log suggests that things are going well with creating the database schema and then it gives the following error.
There is a lot more in the log. Is this related to 2012? I've performed the same test on another machine with 2013 with no problems. I can upgrade but if this is not related to 2012 I'd rather learn on 2012 and upgrade when I need to.
Edit: I'm not sure if this is relevant but I took another look at the log and found the following errors during what looks like database creation.
It might also be useful to know that I get the same error if I use localdb instead of ce. I'm running on Windows 10, the machine that works is Windows 7. I should also mention that on the same machine when I installed via the webmatrix route, it worked fine.
Is there anything on either umbraco.com or our.umbraco.org that lists the officially supported combinations of umbraco version, VS version, and OS version?
Hi Nick,
Since I have Windows 10 and VS2012 (update 5) installed I decided to give it a quick go. These are the steps I took:
Make sure to have the last version of Nuget installed: Tools -> Extensions and Updates -> Updates -> Visual Studio Gallery -> nuget package manager
Create new project and choose .net 4.5.1 and then ASP.NET empty web application
Create empty database in localdb
Use the nuget package manager to install the latest version of umbraco. Should succed the first time.
Don't forget to rebuild...
Set visual studio to debug with google (IE sometimes gives trouble)
Choose customize on the start screen and then SQL Server. Fill in server: (LocalDb)\v11.0 the database name and choose integrated authentication.
Do not choose a starterkit (you can always do that later)
This should work and you should now have a succesful installation. I even went further and installed a uSkinned theme above it. Still worked fine.
I can only verify that this worked on my machine. If you in any way took a different step then those above, please try creating a new project in visual studio and try it again.
Hi Åsa,
Thanks for taking the time to reply.
I'm running on Windows 10 Pro. I followed your steps and still get exactly the same problem. In fact the only thing different between us was the version of .Net. I was using 4.5.2 but tried 4.5.1 as you suggested. My guess is that something else is installed on my machine that interferes or that I'm missing something that needs installing.
Nick
Nick,
if it in the log (using sql server) says:
then that's definitely strange. should say:
On my laptop where I've tried it, I do have a full version of sql server 2104 installed. So yes I did use localdb, but I don't know if that could influence it.
What version sql server are you using on your machine? Is it the express version that comes shipped with VS 2012? And did you create your empty database within visual studio or through SQL Server management studio?
I tried a couple of times, I thought using CE would possibly help and it is possible the log I copied from was for one of the CE attempts. However I have followed your instructions to the letter and still get the same error.
Hi Nick,
Since the error is not familiar to me I would just try some different ways to come to a working solution. Since I can verify that umbraco should work with vs2012 and sql server 2014 I would upgrade to sql server 2014. If that doesn’t work, then perhaps reinstall vs2012.
If this still doesn’t work, try downloading and install the community version of vs2015. Luckily installing umbraco is 15 min of your time. Anyway the one thing you shouldn't do is give up. It should be a piece of cake to install Umbraco. There’s just something quirky going on with your computer...
Well after a lot of messing around I think I found the problem and what is strange is that it is related to not having windows authentication enabled under the IIS Security options. Having installed that and rebooted, it seems that the project runs up as expected. I'm not sure why it works under webmatrix but at least I didn't have to splash out on a new version of VS (even the free one) ;-)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.