umbraco

Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, or one of its dependencies

好久不见. 提交于 2019-12-04 13:22:44
Please somebody help me fix this issue. Umbraco application as parent on IIS6 has the following version of System.Web.WebPages.Razor. <sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> <section name="pages" type="System.Web.WebPages.Razor

Umbraco - how to set the value of a property using razor script

人走茶凉 提交于 2019-12-04 12:18:10
I'm trying to create a very simple polling form and I thought of having a go at it using razor instead of using an external control. I've created a form that lists one question and a list of answers and when we press submit we go to the page that calls the razor script that handles the results. What I want to do is loop through all the answers and increment their counter by one. There is a numeric property called "Counter" on each Answer object. However that keeps failing. If I do: var objAnswer = @Model.NodeById(Int32.Parse(submittedAnswer)); objAnswer.getProperty("Counter").Value++; or

Should I delete TEMP folder when publishing Umbraco?

非 Y 不嫁゛ 提交于 2019-12-04 09:19:25
问题 When I publish content to my server should I publish `AppData\Temp' folder as well? Logic is not to do that but cannot find information online about it. 回答1: When deploying your application, you should follow these guidelines for your App_Data folder. App_Data Permissions = Read, Write Required folders The following folders are required for Umbraco to serve. As long as these folder exist (they can be empty) Umbraco 4/6 will be happy. App_Data\ App_Data\TEMP\ExamineIndexes App_Data\Logs App

Umbraco: differences between Node, DynamicNode, Content

末鹿安然 提交于 2019-12-04 08:40:50
问题 Then there are many class that represents Umbraco documents: 1) umbraco.cms.businesslogic.Content 2) umbraco.cms.businesslogic.web.Document 3) umbraco.MacroEngines.DynamicNode 4) umbraco.presentation.nodeFactory.Node Are there any others? Can you explain what they do, and when to use them? umbraco.MacroEngines.DynamicNode and umbraco.presentation.nodeFactory.Node seem the same. Perhaps it is better to use Node class because it is faster? I have a theory: umbraco.cms.businesslogic.Content and

How to add a property to a document type in Umbraco from code?

故事扮演 提交于 2019-12-04 06:14:50
Could anyone give me an example of how to programatically add a property to an existing document type in Umbraco CMS? This is what I tried: var dt = DocumentType.GetByAlias("TestDocType"); dt.AddPropertyType(new DataTypeDefinition(-49),"testprop", "test prop"); But it throws an exception: Method not found: 'Void umbraco.cms.businesslogic.ContentType.AddPropertyType(umbraco.cms.businesslogic.datatype.DataTypeDefinition, System.String, System.String)'. Any ideas? I managed to fix it. The website was recently upgraded from Umbraco 4.5 to Umbraco 4.7.1, so the dll's had to be replaced with the

Umbraco TinyMCE - not showing absolute URLs in Insert/Update link

半腔热情 提交于 2019-12-04 03:47:45
问题 this has been driving me crazy for a few hours, I managed to fix it on my local development machine and of course when I put it to live it's not working. Here is what I did in my Umbraco set up: in the Config/tinyMceConfig.Config I added: <config key="relative_urls">false</config> <config key="convert_urls">false</config> <config key="remove_script_host">false</config> I also amended the Javascript code in insertLink.aspx to set localUrl to blank as this made it work on the dev machine. Does

How to export data from umbraco CMS?

落花浮王杯 提交于 2019-12-04 02:44:42
I have a project which is using umbraco cms, ie. MSSQL (Now we are rebuilding the site in WordPress). Which i cannot understand the relations. It's difficult in Umbraco. So i would like to download/Export the content directly from Umbraco CMS. But in cms i don't find any option to export the bulk data. Is any other way to do this? Or if you can help me to find any free tools. Or any free tools that can do MSSQL to MySQL simply? Thanks In Advance / Rajeev You would probably want to explore using Umbraco's Courier add-on: http://umbraco.com/products/more-add-ons/courier-2.aspx It's not free, but

Using Simple Injector with Umbraco Controller

我的梦境 提交于 2019-12-04 01:30:42
问题 I'm trying to Inject a dependency into a controller which inherits from Umbraco's RenderMvcController and getting the error No registration for type RenderMvcController could be found and an implicit registration could not be made. For the container to be able to create RenderMvcController it should have only one public constructor: it has 3. See https://simpleinjector.org/one-constructor for more information. Below is my code to wire up the DI var container = new Container(); container

Could not load file or assembly System.Web.Mvc

时间秒杀一切 提交于 2019-12-03 22:29:28
I'm using umbraco 4.11.3 in my project.My project work well util that's on Windows 7 and run it from visual studio 2012. But it did not work in Win 8 when it run from visual studio 2012! Error is: Could not load file or assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more

Umbraco 7: Could not load type Umbraco.Web.UmbracoApplication

自闭症网瘾萝莉.ら 提交于 2019-12-03 22:27:14
Created an ASP.NET empty web application in Visual Studio Installed Umbraco 7.1.5 via NuGet Package Manager When asked to overwrite the web.config file, typed Y(Yes) Built the project F5 When I run the project I get the following error in Chrome: How can I solve this problem and get to the installation page? I also encountered same problem few days ago..i solved that...Just change the name of MVC project from 'Umbraco' to something else and then it will work fine.. The solution, when I encountered it after installing Umbraco 7.2.12 into an existing but empty project, was to change the assembly