Umbraco 7.2.6 Installation and Cultural and Host N

2019-09-05 02:25发布

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. enter image description here


enter image description here

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条回答
Anthone
2楼-- · 2019-09-05 03:05

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.

查看更多
登录 后发表回答