我在Azure上运行了一个Cloud Service,我正在尝试将Umbraco作为VirtualApplication添加到WebRole:
ServiceDefinition.csdef中:
...
<Site name="Web">
<VirtualApplication name="cms" physicalDirectory="../../../umbracocms" />
...
Run Code Online (Sandbox Code Playgroud)
它在模拟器上的本地计算机上运行完美,但是当我将程序包部署到Azure Cloud Service时,我无法访问Umbraco页面,它会返回以下错误:
Access to the path 'E:\sitesroot\1\config\applications.config' is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Access to the path 'E:\sitesroot\1\config\applications.config' is denied.
Run Code Online (Sandbox Code Playgroud)
堆栈跟踪:
[UnauthorizedAccessException: Access to the path 'E:\sitesroot\1\config\applications.config' is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +216
System.IO.FileStream.Init(String path, FileMode mode, …Run Code Online (Sandbox Code Playgroud) 第一次使用Umbraco用户.
我想在以下基本循环中添加分页:
@foreach (var example in CurrentPage.Children.OrderBy("createDate descending").Take(8)){
//Do Stuff//
}
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?谢谢
我正在尝试将Umbraco中使用的默认管理UI URL更改为自定义URL.默认网址很简单/umbraco,例如:
http://mywebsite.com/umbraco
Run Code Online (Sandbox Code Playgroud)
作为一个例子,我希望管理UI URL为:
http://mywebsite.com/asdf
Run Code Online (Sandbox Code Playgroud)
到目前为止,我已尝试更改Web.Config中的umbracoPath应用程序设置:
<add key="umbracoPath" value="~/asdf" />
Run Code Online (Sandbox Code Playgroud)
并在我的Visual Studio解决方案中将'Umbraco'文件夹重命名为'asdf'.
导航到/asdf以下内容时,这会取得一些成功:

但是,默认管理UI页面为空.如果我导航到/asdf#/umbraco,则加载预期的默认页面:

我显然错过了什么,但找不到/在哪里 - 如何将默认管理UI URL更改为/ asdf?
我在Umbraco旁边经营着一个MVC网站.MVC站点处理自己的身份验证,完全独立于Umbraco,以及ASP.NET Forms身份验证.它设置一个cookie并在内部使用它来跟踪事物.
在大多数情况下一切正常,但如果我使用上述cookie集登录到我的MVC站点,我尝试使用正确的Umbraco凭据登录到Umbraco管理部分,它会对我进行身份验证并将我重定向到管理部分但是WebAPI调用开始失败.第一个是对:调用:/umbraco/backoffice/UmbracoApi/UpdateCheck/GetCheck返回417 Missing token nullHTTP错误响应.
如果我删除我的自定义cookie并刷新页面一切正常.
我不明白我的饼干如何干扰Umbraco的.它不使用ASP.NET Forms身份验证或任何东西.
我浏览了10个文档,我正在做正确的事情,但我确信这是我遗漏的一个小细节.
我想使用自己的登录机制登录我的网站.登录机制位于Identity服务器中以进行单点登录.
但是我想在umbraco中使用公共访问功能,所以我在本地数据库中添加角色.通过更改配置文件
<roleManager enabled="true" defaultProvider="UmbracoRoleProvider">
<providers>
<clear />
<add name="UmbracoRoleProvider" type="rcsedWebServiceBLL.RCSEdRoleProvider" />
</providers>
</roleManager>
Run Code Online (Sandbox Code Playgroud)
并实施 RoleProvider
class RCSEdRoleProvider : RoleProvider
{
private string _ApplicationName = "UmbracoRoleProvider";
public override void AddUsersToRoles(string[] usernames, string[] roleNames)
{
throw new NotImplementedException();
}
public override string ApplicationName
{
get { return _ApplicationName; }
set
{
if(string.IsNullOrEmpty(value))
throw new ProviderException("ApplicationName Cacnnot be Empty");
if(value.Length > 0x100)
throw new ProviderException("provider application name too long");
_ApplicationName = value;
}
}
public override void CreateRole(string roleName)
{
throw …Run Code Online (Sandbox Code Playgroud) 我正在运行umbraco 7的实例.但我似乎无法设置miniprofiler来使用它.
在我的global.asax上设置它:
protected void Application_BeginRequest()
{
if (Request.IsLocal)
{
MiniProfiler.Start();
}
}
protected void Application_EndRequest()
{
MiniProfiler.Stop();
}
Run Code Online (Sandbox Code Playgroud)
还定义了web.config上的处理程序:
<add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" />
Run Code Online (Sandbox Code Playgroud)
真的很感激任何帮助.
我正在与这个作斗争。在 Umbraco 6 中,您可以使用以下方法轻松完成此操作:
Member.AddMemberToCache(
Member.GetMemberFromEmail(email),
true,
new TimeSpan(0, 30, 0)
);
Run Code Online (Sandbox Code Playgroud)
我没有在 umbraco 7 成员的服务中找到同样的东西。
有谁知道是否有适用于 Umbraco 7 的软件包,它会生成一份报告,列出在指定日期范围内所做的内容更改?
我希望能够指定日期范围并列出所有内容更改。理想情况下,我希望在发布之前和之后拥有日期、时间、用户和内容。
有谁知道这是否可能?
我想知道 Umbraco (7.5) 网站是否有默认的 Robots.txt。现在,我用这些物品创建了一个。我还要添加什么吗?
User-Agent: *
Disallow: /umbraco/
Disallow: /umbraco_client/
Disallow: /css
Disallow: /Errorpages/
Disallow: /scripts/
Disallow: /Config/
Run Code Online (Sandbox Code Playgroud) 我在部署网络应用程序期间遇到错误。错误的标题是Could not open Source file: Could not find a part of the path
'无法打开源文件:找不到路径的一部分'E:\ARCHIVES\Projects\Main\Jahan.Handicraft\Jahan.Handicraft.Web.Mvc.UmbracoCms.App\obj\Release\AspnetCompileMerge\TempBuildDir\App_Plugins \UmbracoForms\Data\Web.config;\App_Plugins\UmbracoForms\Data\Web.config'.'。
我在我的项目中使用了Umbraco 7.4.3und ASP.NET MVC。我想将其部署在本地主机上。
umbraco ×10
umbraco7 ×10
asp.net-mvc ×3
c# ×3
.net ×1
azure ×1
cookies ×1
deployment ×1
login ×1
pagination ×1
robots.txt ×1
roleprovider ×1