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 checked the path by taking properties and I can find the dll in the path.

Can some one help to fix this issue?


回答1:


I ran into the same issue today. When I used a clean install of 7.2.6 it worked fine, so I compared the api call of my Umbraco with the clean one and noticed that mine was pointing at /api/v1/DomainsApi/SaveLanguageAndDomains instead of /umbraco/BackOffice/Api/DomainsApi/SaveLanguageAndDomains.

It turned out that this was caused by my own call to MapHttpRoute where I register my own api. Once I removed it the error was gone.

I have no idea yet why this causes the internal api of Umbraco to use a different path. The only thing I can imagine is that it uses the first mapped http route which now had become mine. Changing the route name did not help...

Unfortunately I don't have a real solution yet and would still like to use my own api routes.



来源:https://stackoverflow.com/questions/31022859/umbraco-7-2-6-installation-and-cultural-and-host-name-issues

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!