7.2.6一把umbraco安装及文化和主机名问题 [英] Umbraco 7.2.6 Installation and Cultural and Host Name Issues

查看:181
本文介绍了7.2.6一把umbraco安装及文化和主机名问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发使用MVC 4的WebAPI 2.0和7.2.6一把umbraco的Web应用程序。今天我面临两个问题

I am developing a web application using MVC 4, WebAPI 2.0 and Umbraco 7.2.6. Today I was faced two issues

第1

文化和主机名:无法保存文化和主机名。请参阅随附的屏幕截图。



Cultural and Host Name:Unable to save culture and hostname. Please see the attached screenshot.


第2期

在创建新的一把umbraco安装,我得到这个错误

While creating new Umbraco installation, I got this error

不能没有指定umbracoPath创建一个MVC区域路径

"Cannot create an MVC Area path without the umbracoPath specified"

。我加入修正了这个问题。之后,我一个得到错误之一。我得到了最新的错误是System.Web.WebPages.Razor多年平均值存在,但我采取的属性检查路径和我能找到的路径中的DLL。

. 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?

推荐答案

今天我遇到了同样的问题。当我用一个干净安装7.2.6它工作得很好,所以我比较我一把umbraco与干净的API调用,并注意到我的是在/ API / V1 / DomainsApi / SaveLanguageAndDomains而不是/一把umbraco /内部/阿比指点/ DomainsApi / SaveLanguageAndDomains。

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.

原来,这是我自己的呼叫MapHttpRoute在那里注册我自己的API造成的。一旦我删除了错误就消失了。

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.

我不知道为什么还没有这将导致一把umbraco的内部API来使用不同的路径。我能想象的唯一的事情是,它使用它现在已经成为我的第一个映射的HTTP路线。更改路线名称没有帮助...

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...

不幸的是,我没有真正的解决办法还没有和仍想用我自己的API路线。

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

这篇关于7.2.6一把umbraco安装及文化和主机名问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆