I am trying to use Umbraco 7.0.1 for the first time, after having used 4,5 and 6 previously...
I've just rebuilt my PC with windows 8 and VS2013, and this is the first project I have tried :-)
In VS 2013, I created a new ASP.NET project, the used nuGet to add UmbracoCms, which says it sucessfully added 7.0.1, and overwrote web.config.
When I press F5 to debug, I get the attached error:
Is there something else I need to do?
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'Umbraco.Web.UmbracoApplication'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="Umbraco.Web.UmbracoApplication" Language="C#" %>
If something is not specifically marked for a version in the documentation then it will work for both v6 and v7 (and most of the time even still for v4).
So the question is: what exact steps did you follow, from any guide and where does your environment seem to differ from those steps?
The actual error that you get in your first post would indicated that the Umbraco dlls are missing, maybe you forgot to build the project or maybe the build failed.
I'd be happy to have a look at a project you've created and see what is wrong with it, follow the steps you think are correct and when it fails, zip everything up and put it in Dropbox or somewhere else that it can be downloaded.
I have this exact same issue. Using Windows 7 x64 virtual machine and VS Express 2013 or web. I saw the final solution was that the project name can't be 'umbraco', turns out it also can't include 'umbraco' in the name at all. So fine.
So I start over and created a completely unrelated name. Now when I press F5, I get a huge page of errors. So I tried the first suggestion here of closing the solution and VS 2013, reopen everything and press F5 again. Same huge page of errors.
Server Error in '/' Application.
Could not load types from assembly umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null, errors:
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.Editors.ContentPostValidateAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Could not load type 'System.Web.Http.Controllers.IControllerConfiguration' from assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForContentAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForMediaAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FileUploadCleanupFilterAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Reflection.ReflectionTypeLoadException: Could not load types from assembly umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null, errors:
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.Editors.ContentPostValidateAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Could not load type 'System.Web.Http.Controllers.IControllerConfiguration' from assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForContentAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForMediaAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FileUploadCleanupFilterAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Interesting. So I changed it to a 4.0 framework, even though it was on 4.5 to start with and 4.5 when it had the original message using the project name of 'umbraco', and now with it having a new name, and switched to framework 4.0, I get the original message again of:
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'Umbraco.Web.UmbracoApplication'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="Umbraco.Web.UmbracoApplication" Language="C#" %>
Source File: /global.asax Line: 1
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408
hmm, but I just noticed that when the solution is set to 4.0, that the output window says the errors are because it was built using a later framework. So I set it back to 4.5, and have the huge list of errors again. Any ideas why I can't get this to work? I need to edit my first post. I just remembered that while I am using Windows 8.1, the development environment is a Virtual Machine with Windows 7 x64 using VS Express 2013 for Web.
AS Matt Trujillo suggest run Update-Package Microsoft.AspNet.WebApi -Version 4.0.30506 in pm console resolved my issue. I have VS2013 on windows 7 virtual image.
Alright guys, I've been investigating all this today, only to come to the conclusion that I can't immediately reproduce the errors.
So I'll need some information from you, the more replies the better and the more details the better, so I can spin up VMs to test with and fix some of these problems:
What is the exact version of Windows that you are using (also include if it's pro or not)
What is the exact version of Visual Studio that you are using (express, pro, etc. also include if you're running update 2 or update 3 etc.)
Are you running VS in Administrator mode?
In your references you should have System.Web.Http - What Runtime version does it have, what Version does it have and is it coming from your NuGet packages directory or from somewhere else? So I'm interested in the version BEFORE you update to 4.0.30506
Same question for System.Net.Http
What type of project did you start with (for example File > New Project > Web > ASP.NET Empty Web Application)
What is the .NET version number that you chose when doing File > New Project
What is the error you get that gets resolved when upgrading to 4.0.30506?
I do know and understand where the error comes from with regards to the Overflow starter kit, I have enough information on it and am able to fix that easily, so I'm only interested in the scenarios where there's no starter kit or the Txt starter kit.
Create a new project in Visual Studio: File > New Project > Blank Project (don't choose MVC or Webforms or anything, just blank) - Make sure it's a .NET Framework 4.5/4.5.1 project(!)
Go to your package manager console and install the test package using this command (replace C:\Temp with your own path): Install-Package UmbracoCms -Version 7.1.0-QA -Pre -Source C:\temp
Hit F5, install with either Txt or the Overflow package (preferably Overflow, that one should be fixed now as well)
Issue Creating Umbraco 7 project in VS 2013
Hi All,
I am trying to use Umbraco 7.0.1 for the first time, after having used 4,5 and 6 previously...
I've just rebuilt my PC with windows 8 and VS2013, and this is the first project I have tried :-)
In VS 2013, I created a new ASP.NET project, the used nuGet to add UmbracoCms, which says it sucessfully added 7.0.1, and overwrote web.config.
When I press F5 to debug, I get the attached error:
Is there something else I need to do?
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'Umbraco.Web.UmbracoApplication'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="Umbraco.Web.UmbracoApplication" Language="C#" %>
This unfortunately seems to happen in vs13 every time and I can't figure out why. Closer the solution, open it again and it's all good.
Doesn't work for me :-(
I've tried, closing and re-opening the solution.
closing and re-opening vs2013
deleting and recreating the project
and many variations...
same thing every time.
Anything else I can try?
I just did a fresh install of windows 8.1, inside vmware player.
I tried installing VS2012 this time, but still get the exact same error.
Clearly I am doing something wrong.
Is there a detailed step by step guide that I can work through to make sure I am setting up correctly?
Try and follow one of the install manuals in the documentation, maybe you are indeed missing something.
the guides in the documentation are for v6.
I followed a guide for v7 I found at http://www.systenics.com/blog/setting-up-umbraco-7-in-visual-studio-2013-for-mvc-4-development/ - but I get the same error.
I downloaded the sample project from the systenics guide, which worked. I was then able to upgrade to 7.0.1 via nuget.
I'm not sure why I am unable to create a project from scratch with nuget though...
If something is not specifically marked for a version in the documentation then it will work for both v6 and v7 (and most of the time even still for v4).
So the question is: what exact steps did you follow, from any guide and where does your environment seem to differ from those steps?
The actual error that you get in your first post would indicated that the Umbraco dlls are missing, maybe you forgot to build the project or maybe the build failed.
I'd be happy to have a look at a project you've created and see what is wrong with it, follow the steps you think are correct and when it fails, zip everything up and put it in Dropbox or somewhere else that it can be downloaded.
I've worked out what the issue is...
The visual studio project has to be something other than 'umbraco'...
Stupid mistake... lol.
I have this exact same issue. Using Windows 7 x64 virtual machine and VS Express 2013 or web. I saw the final solution was that the project name can't be 'umbraco', turns out it also can't include 'umbraco' in the name at all. So fine.
So I start over and created a completely unrelated name. Now when I press F5, I get a huge page of errors. So I tried the first suggestion here of closing the solution and VS 2013, reopen everything and press F5 again. Same huge page of errors.
Server Error in '/' Application.
Could not load types from assembly umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null, errors:
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.Editors.ContentPostValidateAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Could not load type 'System.Web.Http.Controllers.IControllerConfiguration' from assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForContentAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForMediaAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FileUploadCleanupFilterAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Reflection.ReflectionTypeLoadException: Could not load types from assembly umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null, errors:
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.Editors.ContentPostValidateAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Could not load type 'System.Web.Http.Controllers.IControllerConfiguration' from assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForContentAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForMediaAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FileUploadCleanupFilterAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'. Assembly: 'umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null'.
Interesting. So I changed it to a 4.0 framework, even though it was on 4.5 to start with and 4.5 when it had the original message using the project name of 'umbraco', and now with it having a new name, and switched to framework 4.0, I get the original message again of:
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'Umbraco.Web.UmbracoApplication'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="Umbraco.Web.UmbracoApplication" Language="C#" %>
Source File: /global.asax Line: 1
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408
hmm, but I just noticed that when the solution is set to 4.0, that the output window says the errors are because it was built using a later framework. So I set it back to 4.5, and have the huge list of errors again. Any ideas why I can't get this to work? I need to edit my first post. I just remembered that while I am using Windows 8.1, the development environment is a Virtual Machine with Windows 7 x64 using VS Express 2013 for Web.
http://www.systenics.com/blog/setting-up-umbraco-7-in-visual-studio-2013-for-mvc-4-development/
This is the Umbraco 7.0.2 install guide for VS 2013 that I have also tried. Looks so simple. I don't know why I can't get it to work.
I have the same error message have you find a solution already?
i have found a solution for the problem with the message:
Could not load types from assembly umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null, errors:
The problem is caused by a wrong version of Asp.Net WebApi is installed.. Install the last compatible version with umbraco by nuget.
Update-Package Microsoft.AspNet.WebApi -Version 4.0.30506
Tested with fresh install of umbraco 7.0.3 with Visual Studio 2013 on a Windows 7 x64
Marcel,
I had same issue did the update but then got system.net.http version error so had to update my web.config namely the assembly binding bit
changed from v2 to v4 and that sorted it.
Looks like you haven't global.asax file in your project. Create new MVC4 project(not empty) then install UmbracoCms package. It should work.
Marcels fix worked!
Run in package manager console, rebuild:
Update-Package Microsoft.AspNet.WebApi -Version 4.0.30506
AS Matt Trujillo suggest run Update-Package Microsoft.AspNet.WebApi -Version 4.0.30506 in pm console resolved my issue. I have VS2013 on windows 7 virtual image.
Alright guys, I've been investigating all this today, only to come to the conclusion that I can't immediately reproduce the errors.
So I'll need some information from you, the more replies the better and the more details the better, so I can spin up VMs to test with and fix some of these problems:
I do know and understand where the error comes from with regards to the Overflow starter kit, I have enough information on it and am able to fix that easily, so I'm only interested in the scenarios where there's no starter kit or the Txt starter kit.
Thanks in advance!
Alright Seb, here's my answers:
Alright, I've been updating the NuGet packages and hopefully they should start working now. If anybody could be so kind and test the following:
Install-Package UmbracoCms -Version 7.1.0-QA -Pre -Source C:\temp
Sebastiaan, I followed your instructions and was able to get the umbraco to work using Visual Studio 2012 Professional. Thanks!
Anyway to get those package again. The links are bad now. Or, they in Nuget now?
@john we just released the RC, even more improved. See our blog!
is working on a reply...