umbraco

Umbraco AJAX call not working

萝らか妹 提交于 2020-01-04 09:08:08
问题 I have a MVC application where I have installed umbraco 6.1.6 nuget package.Now I am trying to call a controller from a view using Jquery AJAX function. The controller is placed in MVC controller folder and it is inherited with UmbracoApiController. I have tried to follow the Umbraco API document ,But everytime my request is send it redirects to 404 page. I have tried the same using umbraco 7.1.4 downloaded from here and it works fine for me. Can anyone suggest a solution for this. The

Umbraco: CS0234 The type or namespace name 'TextPage' does not exist

不羁岁月 提交于 2020-01-04 06:51:13
问题 I have a website based on Umbraco CMS. Currently the site is running on another site with no problems at all. Now when I tried it on another server, it doesn't work anymore. This is the detail of the error: Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0234: The type or namespace name 'TextPage' does

Cannot warm up pages using applicationInitialization in webconfig

那年仲夏 提交于 2020-01-03 09:23:49
问题 I have a simple Umbraco 7.7.2 application and I'm hosting it on Azure (app-service). When I restart the server it takes 20-40 seconds for first time requesting a page which is really annoying specially when the load is high and you are Scaling out to reduce the response times. I've tried this setting in my webconnfig, but it doesn't seem to work. <system.webServer> <applicationInitialization> <add initializationPage="/page1/?warmup=1" hostName="mydomain.com" /> <add initializationPage="/page1

Umbaco Archtype rendering images (MediaPicker2)

China☆狼群 提交于 2019-12-31 04:53:22
问题 I'm building a image slider using Archtype in Umbraco. I was using umbraco 7.5.9 and Umbraco.MediaPicker when I started this but in the mean time I started a new project with the newest version Umbraco (7.6.2) which uses Umbraco.MediaPicker2 It was no problem rendering images with the old MediaPicker but with the MediaPicker2 it seems impossible. Here is my setup. The Archtype: Here is the partial view that rendered the old MediaPicker <div class="fullWidthSlider"> @foreach (var image in

Umbraco 7.2.6 Installation and Cultural and Host Name Issues

浪子不回头ぞ 提交于 2019-12-25 13:09:35
问题 I am developing a web application using MVC 4, WebAPI 2.0 and Umbraco 7.2.6. Today I was faced two issues Issue 1 Cultural and Host Name :Unable to save culture and hostname. Please see the attached screenshot. Issue 2 While creating new Umbraco installation, I got this error "Cannot create an MVC Area path without the umbracoPath specified" . I fixed this issue by adding . after That i am getting errors one by one. The latest error I got is "System.Web.WebPages.Razor" doesnot exists but I

Umbraco on save and publishing showing error

僤鯓⒐⒋嵵緔 提交于 2019-12-25 08:15:58
问题 I'm trying to Save and publish code on Admin side in: Content>Home page>recipies>Ingrediantname >Some comment But on clicking save and publish its showing error as shown in image How can I resolve this? Its asking for some Permission and i had set hi as administrator also in usertype I have provided the rights of publishing by click that checkbox 来源: https://stackoverflow.com/questions/40282645/umbraco-on-save-and-publishing-showing-error

Umbraco route definition-ajax form

て烟熏妆下的殇ゞ 提交于 2019-12-25 07:15:17
问题 Hi :) I've got error "Cannot find the Umbraco route definition in the route values, the request must be made in the context of an Umbraco request" and return this wrong peace of code - "return RedirectToCurrentUmbracoPage();". After seding ajax form. This is my cotroller: public class ContactController : Umbraco.Web.Mvc.SurfaceController { private string GMAIL_SERVER = "smtp.gmail.com"; private int PORT = 587; [ChildActionOnly] public ActionResult ContactForm() { var model = new

Azure is blocking request that come from the same server

一笑奈何 提交于 2019-12-25 05:04:35
问题 Context Umbraco CMS website runs on Azure as App Service Scheduled Publishing One of the Umbraco functionalities is to allow to publish content on a given time. The publish functionality makes a HTTP call to same web site (or a different server but same website in load balanced environment). API call url: http://sample-site-umbraco.azurewebsites.net/umbraco/RestServices/ScheduledPublish/Index IP Security Due to client requirements, access to the site is restricted to a given list of IP

Umbraco Child MVC Application (Virtual Directory) - Could not load file or assembly Umbraco.ModelsBuilder

淺唱寂寞╮ 提交于 2019-12-25 04:41:17
问题 I'm trying to deploy a custom, pure ASP.NET MVC app as a Virtual Directory "Application" under my Umbraco 7 site root. However, I always get the following YSOD error: Server Error in '/DemoApp' Application. Could not load file or assembly 'Umbraco.ModelsBuilder' or one of its dependencies. The system cannot find the file specified. I've also tried this from scratch to eliminate as many variables as possible. Here are the repro steps: Created a brand new empty ASP.NET solution/project Added

RedirectToAction is not working correctly in SurfaceController?

浪子不回头ぞ 提交于 2019-12-25 04:23:17
问题 I m submiting a form to SurfaceController's action 'Submit'. Where after saving data it Redirect to another action 'LeadContact' using MVC RedirectToAction and pass Id as a paramter to it. In 'LeadContact' model is being populating and passed to 'LeadContact' view. Not sure if I m doing correctly or not but when 'LeadContact' renders in browser it amends URL. Browser shows URL like http://name:50656/umbraco/Surface/HealthInsurance/LeadContact?leadOptionId=70 while I m expecting it should be