Git Product home page Git Product logo

orchardcms / orchard Goto Github PK

View Code? Open in Web Editor NEW
2.4K 263.0 1.1K 198.33 MB

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.

Home Page: https://orchardproject.net

License: BSD 3-Clause "New" or "Revised" License

JavaScript 43.35% CSS 1.67% C# 44.60% HTML 5.74% XSLT 0.56% C 0.02% TypeScript 0.24% Batchfile 0.02% PowerShell 0.05% Gherkin 0.47% Rich Text Format 0.80% TSQL 0.01% ASP.NET 0.01% Less 1.50% SCSS 0.96%

orchard's Introduction

Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.

Join the chat at https://gitter.im/OrchardCMS/Orchard

You can try it for free on DotNest.com or on Microsoft Azure by clicking on this button.

Deploy to Azure

About The Orchard Project

Please visit our website at https://orchardproject.net for the most current information about this project.

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.

Orchard is built on a modern architecture that puts extensibility up-front, as its number one concern. All components in Orchard can be replaced or extended. Content is built from easily composable building blocks. Modules extend the system in a very decoupled fashion, where a commenting module for example can as easily apply to pages, blog posts, photos or products. A rich UI composition system completes the picture and ensures that you can get the exact presentation that you need for your content.

Orchard is delivered under the .NET Foundation. It is licensed under a New BSD license, which is approved by the OSI.

Our mission is to empower our users and foster a dedicated and diverse community that builds the CMS that we all want to use.

Project Status

Orchard is currently in version 1.10.3: It contains bugfixes and the more impactful changes and new features added in the latest major version (1.10).

We invite participation by the developer community in shaping the project’s direction, so that we can publicly validate our designs and development approach. All our releases are available on our Releases page, and we encourage interested developers to check out the source code on the Orchard GitHub site and get involved with the project.

How To Get Involved

We hope that by engaging with the community we will continue to shape Orchard into a valuable set of tools and applications. The Orchard team is committed to open community participation and accepts code contributions. We encourage community participation at all levels from general project feedback to bug fixes and patches.

There are many ways you can contribute to Orchard:

The Future Of Orchard CMS: Orchard Core

As the underlying frameworks (.NET, ASP.NET and ASP.NET MVC) are constantly evolving, Orchard of course keeps track of the changes and improvements of these: Orchard Core is the next generation of Orchard releases that is based on ASP.NET Core. Just like the current Orchard project, it's fully open-source and is publicly available on GitHub. Orchard Core (as a framework) is being built from scratch: it's still in development and does not share any of its code base (at least directly) with the current versions (1.x) of Orchard.

orchard's People

Contributors

agriffard avatar andreapiovanelli avatar benedekfarkas avatar bleroy avatar darosenberg avatar giuseppemusso-laser avatar hermessbicego-laser avatar heskew avatar infofromca avatar j3ffb avatar jayharris avatar jersiovic avatar jetski5822 avatar jtkech avatar keesd avatar lombiqtechnologies avatar mahsaro avatar matteopiovanelli-laser avatar mvarblow avatar netp9c avatar oppedijk avatar piedone avatar pszmyd avatar rtpharry avatar sebastienros avatar sfmskywalker avatar skrypt avatar stanleygoldman avatar suhacan avatar tfleury avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

orchard's Issues

Duplicate class names where we may not want them

jowall created:
https://orchard.codeplex.com/workitem/15911

In Comments.HasComments.ascx and ListOfComments.ascx we are using the string comment for a class on the form element and on a div. If I set a font size of 80% for this class it is problematic. We may want to change one of these class names.

1 Comment

  •     <div class="comment">
            <span class="who">administrator</span>
    
            <span>said <a href="#">a moment ago</a></span>
        </div>
        <div class="text">
    
            <p>This is a test comment. Praesent eget arcu sapien, eget porttitor est. Phasellus nibh metus, interdum ut cursus vel, feugiat non erat. Morbi consectetur pulvinar vehicula.</p>
        </div>
    
    </li>
    

Themes - Theme.gif and Themes/Themes Missing!

@Jetski5822 created:
https://orchard.codeplex.com/workitem/15512

1 Start up site
2. Admin
3. Manage Themes

Blows Twice. Both errors are below. The fix is to make sure you have a Themes.Gif file and the /Themes/Themes directory with the relevant gif in.

System.Web.HttpException was unhandled by user code
Message="The controller for path '/Themes/Themes/Theme.gif' was not found or does not implement IController."
Source="System.Web.Mvc"
ErrorCode=-2147467259
StackTrace:
at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType)
at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName)
at Orchard.Mvc.OrchardControllerFactory.CreateController(RequestContext requestContext, String controllerName) in D:\InformationServices\Prototypes\CMS\orchard-44272\trunk\src\Orchard\Mvc\OrchardControllerFactory.cs:line 27
at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
InnerException:

System.Web.HttpException was unhandled by user code
Message="The controller for path '/Themes/TheAdmin/Theme.gif' was not found or does not implement IController."
Source="System.Web.Mvc"
ErrorCode=-2147467259
StackTrace:
at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType)
at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName)
at Orchard.Mvc.OrchardControllerFactory.CreateController(RequestContext requestContext, String controllerName) in D:\InformationServices\Prototypes\CMS\orchard-44272\trunk\src\Orchard\Mvc\OrchardControllerFactory.cs:line 27
at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
InnerException:

StartUp - Blows when attempting to update database on intial startup

@Jetski5822 created:
https://orchard.codeplex.com/workitem/15841

1 Get a fresh version of orchard (for me it was changeset 45231)
2 Hit F5
3 Error encountered further down page.

My Temp Solution (As i didnt really spead any time on it)

Change
Line 103: //TEMP: this is to transition people with old databases
Line 104: if (versionRecord == null && !record.Versions.Any() && options.IsPublished) {

to

Line 103: //TEMP: this is to transition people with old databases
Inserted Line: if (record != null)
Line 104: if (versionRecord == null && !record.Versions.Any() && options.IsPublished) {

This should solve the problem if the record is not found. But i dont know how it will affect the overall running of the project - I didnt seem to encounter any problems But then again i didnt do any unit tests around it..

Error -
Should get an error.......

Server Error in '/' Application.
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 102:
Line 103: //TEMP: this is to transition people with old databases
Line 104: if (versionRecord == null && !record.Versions.Any() && options.IsPublished) {
Line 105: versionRecord = new ContentItemVersionRecord {
Line 106: ContentItemRecord = record,

Source File: D:\OpenSource\orchard\trunk\src\Orchard\ContentManagement\DefaultContentManager.cs Line: 104

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
Orchard.ContentManagement.DefaultContentManager.Get(Int32 id, VersionOptions options) in D:\OpenSource\orchard\trunk\src\Orchard\ContentManagement\DefaultContentManager.cs:104
Orchard.ContentManagement.DefaultContentManager.Get(Int32 id) in D:\OpenSource\orchard\trunk\src\Orchard\ContentManagement\DefaultContentManager.cs:71
Orchard.Security.Providers.FormsAuthenticationService.GetAuthenticatedUser() in D:\OpenSource\orchard\trunk\src\Orchard\Security\Providers\FormsAuthenticationService.cs:70
Orchard.Security.SecurityFilter.OnResultExecuting(ResultExecutingContext filterContext) in D:\OpenSource\orchard\trunk\src\Orchard\Security\SecurityFilter.cs:23
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +45 System.Web.Mvc.<>c__DisplayClass16.<InvokeActionResultWithFilters>b__13() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251
System.Web.Mvc.<>c__DisplayClass16.b__13() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251 System.Web.Mvc.<>c__DisplayClass16.<InvokeActionResultWithFilters>b__13() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251
System.Web.Mvc.<>c__DisplayClass16.b__13() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251 System.Web.Mvc.<>c__DisplayClass16.<InvokeActionResultWithFilters>b__13() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251
System.Web.Mvc.<>c__DisplayClass16.b__13() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +178
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +314
System.Web.Mvc.Controller.ExecuteCore() +105
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +39
System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +7
System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) +58
System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) +57
System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext) +7
System.Web.Mvc.MvcHttpHandler.VerifyAndProcessRequest(IHttpHandler httpHandler, HttpContextBase httpContext) +61
System.Web.Routing.UrlRoutingHandler.ProcessRequest(HttpContextBase httpContext) +111
System.Web.Routing.UrlRoutingHandler.ProcessRequest(HttpContext httpContext) +40
System.Web.Routing.UrlRoutingHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) +7
Orchard.Web._Default.Page_Load(Object sender, EventArgs e) in D:\OpenSource\orchard\trunk\src\Orchard.Web\Default.aspx.cs:16
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

Blogs - Add Comment to Post with only name

@Jetski5822 created:
https://orchard.codeplex.com/workitem/15840

1 Create Blog called 'Test'
2 Create Post called 'TestPost'
3 Add a comment, but ONLY enter your name and a comment. Leave URL and Email blank.

Change Set - 45231

You should get......

Server Error in '/' Application.
The view 'Create' or its master was not found. The following locations were searched:
~/Themes\TheAdmin/Views/Orchard.Comments/admin/Create.ascx
~/Themes\TheAdmin/Views/Orchard.Comments/admin/Create.aspx
~/Themes\TheAdmin/Views/Create.ascx
~/Themes\TheAdmin/Views/Create.aspx
~/Core/Orchard.Comments/Views/admin/Create.ascx
~/Core/Orchard.Comments/Views/admin/Create.aspx
~/Packages/Orchard.Comments/Views/admin/Create.ascx
~/Packages/Orchard.Comments/Views/admin/Create.aspx
~/Core\Common/Views/Create.ascx
~/Core\Common/Views/Create.aspx
~/Core\Settings/Views/Create.ascx
~/Core\Settings/Views/Create.aspx
~/Core\Themes/Views/Create.ascx
~/Core\Themes/Views/Create.aspx
~/Core\XmlRpc/Views/Create.ascx
~/Core\XmlRpc/Views/Create.aspx
~/Packages\Orchard.Blogs/Views/Create.ascx
~/Packages\Orchard.Blogs/Views/Create.aspx
~/Packages\Orchard.Comments/Views/Create.ascx
~/Packages\Orchard.Comments/Views/Create.aspx
~/Packages\Orchard.Media/Views/Create.ascx
~/Packages\Orchard.Media/Views/Create.aspx
~/Packages\Orchard.Pages/Views/Create.ascx
~/Packages\Orchard.Pages/Views/Create.aspx
~/Packages\Orchard.Roles/Views/Create.ascx
~/Packages\Orchard.Roles/Views/Create.aspx
~/Packages\Orchard.Sandbox/Views/Create.ascx
~/Packages\Orchard.Sandbox/Views/Create.aspx
~/Packages\Orchard.Tags/Views/Create.ascx
~/Packages\Orchard.Tags/Views/Create.aspx
~/Packages\Orchard.Users/Views/Create.ascx
~/Packages\Orchard.Users/Views/Create.aspx
~/Packages\TinyMce/Views/Create.ascx
~/Packages\TinyMce/Views/Create.aspx
~/Areas/Orchard.Comments/Views/admin/Create.aspx
~/Areas/Orchard.Comments/Views/admin/Create.ascx
~/Areas/Orchard.Comments/Views/Shared/Create.aspx
~/Areas/Orchard.Comments/Views/Shared/Create.ascx
~/Views/admin/Create.aspx
~/Views/admin/Create.ascx
~/Views/Shared/Create.aspx
~/Views/Shared/Create.ascx
~/Areas/Orchard.Comments/Views/admin/Create.aspx
~/Areas/Orchard.Comments/Views/admin/Create.ascx
~/Areas/Orchard.Comments/Views/Shared/Create.aspx
~/Areas/Orchard.Comments/Views/Shared/Create.ascx
~/Views/admin/Create.aspx
~/Views/admin/Create.ascx
~/Views/Shared/Create.aspx
~/Views/Shared/Create.ascx
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.InvalidOperationException: The view 'Create' or its master was not found. The following locations were searched:
~/Themes\TheAdmin/Views/Orchard.Comments/admin/Create.ascx
~/Themes\TheAdmin/Views/Orchard.Comments/admin/Create.aspx
~/Themes\TheAdmin/Views/Create.ascx
~/Themes\TheAdmin/Views/Create.aspx
~/Core/Orchard.Comments/Views/admin/Create.ascx
~/Core/Orchard.Comments/Views/admin/Create.aspx
~/Packages/Orchard.Comments/Views/admin/Create.ascx
~/Packages/Orchard.Comments/Views/admin/Create.aspx
~/Core\Common/Views/Create.ascx
~/Core\Common/Views/Create.aspx
~/Core\Settings/Views/Create.ascx
~/Core\Settings/Views/Create.aspx
~/Core\Themes/Views/Create.ascx
~/Core\Themes/Views/Create.aspx
~/Core\XmlRpc/Views/Create.ascx
~/Core\XmlRpc/Views/Create.aspx
~/Packages\Orchard.Blogs/Views/Create.ascx
~/Packages\Orchard.Blogs/Views/Create.aspx
~/Packages\Orchard.Comments/Views/Create.ascx
~/Packages\Orchard.Comments/Views/Create.aspx
~/Packages\Orchard.Media/Views/Create.ascx
~/Packages\Orchard.Media/Views/Create.aspx
~/Packages\Orchard.Pages/Views/Create.ascx
~/Packages\Orchard.Pages/Views/Create.aspx
~/Packages\Orchard.Roles/Views/Create.ascx
~/Packages\Orchard.Roles/Views/Create.aspx
~/Packages\Orchard.Sandbox/Views/Create.ascx
~/Packages\Orchard.Sandbox/Views/Create.aspx
~/Packages\Orchard.Tags/Views/Create.ascx
~/Packages\Orchard.Tags/Views/Create.aspx
~/Packages\Orchard.Users/Views/Create.ascx
~/Packages\Orchard.Users/Views/Create.aspx
~/Packages\TinyMce/Views/Create.ascx
~/Packages\TinyMce/Views/Create.aspx
~/Areas/Orchard.Comments/Views/admin/Create.aspx
~/Areas/Orchard.Comments/Views/admin/Create.ascx
~/Areas/Orchard.Comments/Views/Shared/Create.aspx
~/Areas/Orchard.Comments/Views/Shared/Create.ascx
~/Views/admin/Create.aspx
~/Views/admin/Create.ascx
~/Views/Shared/Create.aspx
~/Views/Shared/Create.ascx
~/Areas/Orchard.Comments/Views/admin/Create.aspx
~/Areas/Orchard.Comments/Views/admin/Create.ascx
~/Areas/Orchard.Comments/Views/Shared/Create.aspx
~/Areas/Orchard.Comments/Views/Shared/Create.ascx
~/Views/admin/Create.aspx
~/Views/admin/Create.ascx
~/Views/Shared/Create.aspx
~/Views/Shared/Create.ascx

Source Error:

Line 46: }
Line 47: else {
Line 48: invocation.Proceed();
Line 49: }
Line 50: }

Source File: D:\OpenSource\orchard\trunk\src\Orchard\Security\SecurityModule.cs Line: 48

Stack Trace:

[InvalidOperationException: The view 'Create' or its master was not found. The following locations were searched:
~/Themes\TheAdmin/Views/Orchard.Comments/admin/Create.ascx
~/Themes\TheAdmin/Views/Orchard.Comments/admin/Create.aspx
~/Themes\TheAdmin/Views/Create.ascx
~/Themes\TheAdmin/Views/Create.aspx
~/Core/Orchard.Comments/Views/admin/Create.ascx
~/Core/Orchard.Comments/Views/admin/Create.aspx
~/Packages/Orchard.Comments/Views/admin/Create.ascx
~/Packages/Orchard.Comments/Views/admin/Create.aspx
~/Core\Common/Views/Create.ascx
~/Core\Common/Views/Create.aspx
~/Core\Settings/Views/Create.ascx
~/Core\Settings/Views/Create.aspx
~/Core\Themes/Views/Create.ascx
~/Core\Themes/Views/Create.aspx
~/Core\XmlRpc/Views/Create.ascx
~/Core\XmlRpc/Views/Create.aspx
~/Packages\Orchard.Blogs/Views/Create.ascx
~/Packages\Orchard.Blogs/Views/Create.aspx
~/Packages\Orchard.Comments/Views/Create.ascx
~/Packages\Orchard.Comments/Views/Create.aspx
~/Packages\Orchard.Media/Views/Create.ascx
~/Packages\Orchard.Media/Views/Create.aspx
~/Packages\Orchard.Pages/Views/Create.ascx
~/Packages\Orchard.Pages/Views/Create.aspx
~/Packages\Orchard.Roles/Views/Create.ascx
~/Packages\Orchard.Roles/Views/Create.aspx
~/Packages\Orchard.Sandbox/Views/Create.ascx
~/Packages\Orchard.Sandbox/Views/Create.aspx
~/Packages\Orchard.Tags/Views/Create.ascx
~/Packages\Orchard.Tags/Views/Create.aspx
~/Packages\Orchard.Users/Views/Create.ascx
~/Packages\Orchard.Users/Views/Create.aspx
~/Packages\TinyMce/Views/Create.ascx
~/Packages\TinyMce/Views/Create.aspx
~/Areas/Orchard.Comments/Views/admin/Create.aspx
~/Areas/Orchard.Comments/Views/admin/Create.ascx
~/Areas/Orchard.Comments/Views/Shared/Create.aspx
~/Areas/Orchard.Comments/Views/Shared/Create.ascx
~/Views/admin/Create.aspx
~/Views/admin/Create.ascx
~/Views/Shared/Create.aspx
~/Views/Shared/Create.ascx
~/Areas/Orchard.Comments/Views/admin/Create.aspx
~/Areas/Orchard.Comments/Views/admin/Create.ascx
~/Areas/Orchard.Comments/Views/Shared/Create.aspx
~/Areas/Orchard.Comments/Views/Shared/Create.ascx
~/Views/admin/Create.aspx
~/Views/admin/Create.ascx
~/Views/Shared/Create.aspx
~/Views/Shared/Create.ascx]
System.Web.Mvc.ViewResult.FindView(ControllerContext context) +241489
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +139
System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +10
System.Web.Mvc.<>c__DisplayClass14.b__11() +20
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251 System.Web.Mvc.<>c__DisplayClass16.<InvokeActionResultWithFilters>b__13() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251
System.Web.Mvc.<>c__DisplayClass16.b__13() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251 System.Web.Mvc.<>c__DisplayClass16.<InvokeActionResultWithFilters>b__13() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251
System.Web.Mvc.<>c__DisplayClass16.b__13() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251 System.Web.Mvc.<>c__DisplayClass16.<InvokeActionResultWithFilters>b__13() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251
System.Web.Mvc.<>c__DisplayClass16.b__13() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) +178 System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +314 System.Web.Mvc.Controller.ExecuteCore() +105 AdminControllerProxy0332bfe4d8a74dc09b0bed72c58d8611.ExecuteCore_callback_5() +28 InvocationExecuteCore_5.InvokeMethodOnTarget() +34 Castle.DynamicProxy.AbstractInvocation.Proceed() +76 Orchard.Security.SecurityModuleInterceptor.Intercept(IInvocation invocation) in D:\OpenSource\orchard\trunk\src\Orchard\Security\SecurityModule.cs:48 Castle.DynamicProxy.AbstractInvocation.Proceed() +177 Orchard.Settings.SettingsModuleInterceptor.Intercept(IInvocation invocation) in D:\OpenSource\orchard\trunk\src\Orchard\Settings\SettingsModule.cs:48 Castle.DynamicProxy.AbstractInvocation.Proceed() +177 AdminControllerProxy0332bfe4d8a74dc09b0bed72c58d8611.ExecuteCore() +138 System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +39 AdminControllerProxy0332bfe4d8a74dc09b0bed72c58d8611.Execute_callback_26(RequestContext requestContext) +36 InvocationExecute_26.InvokeMethodOnTarget() +98 Castle.DynamicProxy.AbstractInvocation.Proceed() +76 Orchard.Security.SecurityModuleInterceptor.Intercept(IInvocation invocation) in D:\OpenSource\orchard\trunk\src\Orchard\Security\SecurityModule.cs:48 Castle.DynamicProxy.AbstractInvocation.Proceed() +177 Orchard.Settings.SettingsModuleInterceptor.Intercept(IInvocation invocation) in D:\OpenSource\orchard\trunk\src\Orchard\Settings\SettingsModule.cs:48 Castle.DynamicProxy.AbstractInvocation.Proceed() +177 AdminControllerProxy0332bfe4d8a74dc09b0bed72c58d8611.Execute(RequestContext requestContext) +157 System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +7 System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__4() +34 System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21 System.Web.Mvc.Async.<>c__DisplayClass81.b__7(IAsyncResult _) +12
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +59
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +44
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +7
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8679150
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

Admin Screen - Weird ASCI encoding.

@Jetski5822 created:
https://orchard.codeplex.com/workitem/15513

I have got this really strange issue where the Title of the page and the section for Manage Users does some weird stuff with the Asci characters.

I have sent you a screenshot to take a look at.

This only happens in Firefox. Not Internet Explorer.

Sorry if im plaguing you with issues, but we are looking at using Orchard at a university at the start of jan.

Generating Database in SQL Server 2008 Fails to generate correctly for latest build

@Jetski5822 created:
https://orchard.codeplex.com/workitem/16043

Generating of the database works in orchard-43977 but fails in the latest build orchard-45838 - Heres what happens

If you change the Hack Session locator to point to a SQL Server database

    private ISessionFactory BindSessionFactory() {
        // TEMP: a real scenario would call for a session factory locator 
        // that would eventually imply the need for configuration against one or more actual sources
        // and a means to enlist record types from active packages into correct session factory

        var database = MsSqlConfiguration.MsSql2005.ConnectionString(c => c.FromAppSetting("database"));

        //var hackPath = HostingEnvironment.MapPath("~/App_Data/hack.db");

        //var database = SQLiteConfiguration.Standard.UsingFile(hackPath);

        var recordTypes = _compositionStrategy.GetRecordTypes();

        return _sessionFactory ??
               Interlocked.CompareExchange(
                   ref _sessionFactory,
                   BuildSessionFactory(database, recordTypes), null) ?? _sessionFactory;
    }

And run Orchard.... You recieve the below error. This problem did not occur in Release orchard-43977 but occurs in the latest build orchard-45838

Server Error in '/' Application.
The INSERT statement conflicted with the FOREIGN KEY constraint "FK7D663EC52BE2D2B1". The conflict occurred in database "Orchard", table "dbo.CommonRecord", column 'Id'.
The statement has been terminated.
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.Data.SqlClient.SqlException: The INSERT statement conflicted with the FOREIGN KEY constraint "FK7D663EC52BE2D2B1". The conflict occurred in database "Orchard", table "dbo.CommonRecord", column 'Id'.
The statement has been terminated.

Source Error:

Line 110: public virtual void Create(T entity) {
Line 111: Logger.Debug("Create {0}", entity);
Line 112: Session.Save(entity);
Line 113: }
Line 114:

Source File: D:\InformationServices\Prototypes\CMS\orchard-45731\trunk\src\Orchard\Data\Repository.cs Line: 112

Stack Trace:

[SqlException (0x80131904): The INSERT statement conflicted with the FOREIGN KEY constraint "FK7D663EC52BE2D2B1". The conflict occurred in database "Orchard", table "dbo.CommonRecord", column 'Id'.
The statement has been terminated.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1951450
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4849003
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2394
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +33
System.Data.SqlClient.SqlDataReader.get_MetaData() +83
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +297
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +954
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +141
System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +12
System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() +12
NHibernate.AdoNet.AbstractBatcher.ExecuteReader(IDbCommand cmd) +306
NHibernate.Id.InsertSelectDelegate.ExecuteAndExtract(IDbCommand insert, ISessionImplementor session) +83
NHibernate.Id.Insert.AbstractReturningDelegate.PerformInsert(SqlCommandInfo insertSQL, ISessionImplementor session, IBinder binder) +113

[GenericADOException: could not insert: [Orchard.ContentManagement.Records.ContentItemRecord][SQL: INSERT INTO ContentItemRecord VALUES (?); select SCOPE_IDENTITY()]]
NHibernate.Id.Insert.AbstractReturningDelegate.PerformInsert(SqlCommandInfo insertSQL, ISessionImplementor session, IBinder binder) +290
NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object[] fields, Boolean[] notNull, SqlCommandInfo sql, Object obj, ISessionImplementor session) +266
NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object[] fields, Object obj, ISessionImplementor session) +358
NHibernate.Action.EntityIdentityInsertAction.Execute() +260
NHibernate.Engine.ActionQueue.Execute(IExecutable executable) +187
NHibernate.Event.Default.AbstractSaveEventListener.PerformSaveOrReplicate(Object entity, EntityKey key, IEntityPersister persister, Boolean useIdentityColumn, Object anything, IEventSource source, Boolean requiresImmediateIdAccess) +780
NHibernate.Event.Default.AbstractSaveEventListener.PerformSave(Object entity, Object id, IEntityPersister persister, Boolean useIdentityColumn, Object anything, IEventSource source, Boolean requiresImmediateIdAccess) +539
NHibernate.Event.Default.AbstractSaveEventListener.SaveWithGeneratedId(Object entity, String entityName, Object anything, IEventSource source, Boolean requiresImmediateIdAccess) +254
NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.SaveWithGeneratedOrRequestedId(SaveOrUpdateEvent event) +98
NHibernate.Event.Default.DefaultSaveEventListener.SaveWithGeneratedOrRequestedId(SaveOrUpdateEvent event) +56
NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.EntityIsTransient(SaveOrUpdateEvent event) +199
NHibernate.Event.Default.DefaultSaveEventListener.PerformSaveOrUpdate(SaveOrUpdateEvent event) +153
NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.OnSaveOrUpdate(SaveOrUpdateEvent event) +325
NHibernate.Impl.SessionImpl.FireSave(SaveOrUpdateEvent event) +204
NHibernate.Impl.SessionImpl.Save(Object obj) +165
Orchard.Data.Repository1.Create(T entity) in D:\InformationServices\Prototypes\CMS\orchard-45731\trunk\src\Orchard\Data\Repository.cs:112 Orchard.Data.Repository1.Orchard.Data.IRepository.Create(T entity) in D:\InformationServices\Prototypes\CMS\orchard-45731\trunk\src\Orchard\Data\Repository.cs:36
Orchard.ContentManagement.DefaultContentManager.Create(ContentItem contentItem, VersionOptions options) in D:\InformationServices\Prototypes\CMS\orchard-45731\trunk\src\Orchard\ContentManagement\DefaultContentManager.cs:304
Orchard.ContentManagement.DefaultContentManager.Create(ContentItem contentItem) in D:\InformationServices\Prototypes\CMS\orchard-45731\trunk\src\Orchard\ContentManagement\DefaultContentManager.cs:278
Orchard.ContentManagement.ContentCreateExtensions.Create(IContentManager manager, String contentType, Action1 initialize) in D:\InformationServices\Prototypes\CMS\orchard-45731\trunk\src\Orchard\ContentManagement\ContentExtensions.cs:39 Orchard.Core.Settings.Services.SiteService.GetSiteSettings() in D:\InformationServices\Prototypes\CMS\orchard-45731\trunk\src\Orchard.Web\Core\Settings\Services\SiteService.cs:30 Orchard.Mvc.Filters.AdminFilter.OnActionExecuting(ActionExecutingContext filterContext) in D:\InformationServices\Prototypes\CMS\orchard-45731\trunk\src\Orchard\Mvc\Filters\AdminFilter.cs:21 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) +47
System.Web.Mvc.<>c__DisplayClassf.b__c() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) +254 System.Web.Mvc.<>c__DisplayClassf.<InvokeActionMethodWithFilters>b__c() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) +254
System.Web.Mvc.<>c__DisplayClassf.b__c() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList1 filters, ActionDescriptor actionDescriptor, IDictionary2 parameters) +192
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +314
System.Web.Mvc.Controller.ExecuteCore() +105
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +39
System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +7
System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) +58
System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) +57
System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext) +7
System.Web.Mvc.MvcHttpHandler.VerifyAndProcessRequest(IHttpHandler httpHandler, HttpContextBase httpContext) +61
System.Web.Routing.UrlRoutingHandler.ProcessRequest(HttpContextBase httpContext) +111
System.Web.Routing.UrlRoutingHandler.ProcessRequest(HttpContext httpContext) +40
System.Web.Routing.UrlRoutingHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) +7
Orchard.Web._Default.Page_Load(Object sender, EventArgs e) in D:\InformationServices\Prototypes\CMS\orchard-45731\trunk\src\Orchard.Web\Default.aspx.cs:16
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

Theme - Template not found after set theme and add page

@Jetski5822 created:
https://orchard.codeplex.com/workitem/15571

Current Version - 44436

I set my new theme in the themes section to orange.
I then create a page with a ThreeColumn Template.
I then go to view the page (http://localhost:30320/Pages/Templates/Show?Slug=test1)
And i get this error.....

Server Error in '/' Application.
The view 'ThreeColumns' or its master was not found. The following locations were searched:
~/Areas/Orchard.CmsPages/Views/Templates/ThreeColumns.aspx
~/Areas/Orchard.CmsPages/Views/Templates/ThreeColumns.ascx
~/Areas/Orchard.CmsPages/Views/Shared/ThreeColumns.aspx
~/Areas/Orchard.CmsPages/Views/Shared/ThreeColumns.ascx
~/Views/Templates/ThreeColumns.aspx
~/Views/Templates/ThreeColumns.ascx
~/Views/Shared/ThreeColumns.aspx
~/Views/Shared/ThreeColumns.ascx
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.InvalidOperationException: The view 'ThreeColumns' or its master was not found. The following locations were searched:
~/Areas/Orchard.CmsPages/Views/Templates/ThreeColumns.aspx
~/Areas/Orchard.CmsPages/Views/Templates/ThreeColumns.ascx
~/Areas/Orchard.CmsPages/Views/Shared/ThreeColumns.aspx
~/Areas/Orchard.CmsPages/Views/Shared/ThreeColumns.ascx
~/Views/Templates/ThreeColumns.aspx
~/Views/Templates/ThreeColumns.ascx
~/Views/Shared/ThreeColumns.aspx
~/Views/Shared/ThreeColumns.ascx

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: The view 'ThreeColumns' or its master was not found. The following locations were searched:
~/Areas/Orchard.CmsPages/Views/Templates/ThreeColumns.aspx
~/Areas/Orchard.CmsPages/Views/Templates/ThreeColumns.ascx
~/Areas/Orchard.CmsPages/Views/Shared/ThreeColumns.aspx
~/Areas/Orchard.CmsPages/Views/Shared/ThreeColumns.ascx
~/Views/Templates/ThreeColumns.aspx
~/Views/Templates/ThreeColumns.ascx
~/Views/Shared/ThreeColumns.aspx
~/Views/Shared/ThreeColumns.ascx]
System.Web.Mvc.ViewResult.FindView(ControllerContext context) +215305
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +139
System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +10
System.Web.Mvc.<>c__DisplayClass14.b__11() +20
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251 System.Web.Mvc.<>c__DisplayClass16.<InvokeActionResultWithFilters>b__13() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251
System.Web.Mvc.<>c__DisplayClass16.b__13() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251 System.Web.Mvc.<>c__DisplayClass16.<InvokeActionResultWithFilters>b__13() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251
System.Web.Mvc.<>c__DisplayClass16.b__13() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251 System.Web.Mvc.<>c__DisplayClass16.<InvokeActionResultWithFilters>b__13() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251
System.Web.Mvc.<>c__DisplayClass16.b__13() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) +178 System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +392 System.Web.Mvc.Controller.ExecuteCore() +105 System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +39 System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +7 System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__4() +34 System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21 System.Web.Mvc.Async.<>c__DisplayClass81.b__7(IAsyncResult _) +12
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +138
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +44
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +7
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8679150
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

Blog module interferes with ~/devtools route

@bradmi created:
https://orchard.codeplex.com/workitem/15041

  1. Attempt to navigate to the DevTools interface: http://localhost/devtools

RESULT:

Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 17: public Blog Get(string slug) {
Line 18: BlogRecord record = _repository.Get(br => br.Slug == slug && br.Enabled);
Line 19: return _contentManager.Get(record.Id);
Line 20: }
Line 21:

Source File: C:\Orchard\trunk\src\Orchard.Web\Packages\Orchard.Blogs\Services\BlogService.cs Line: 19

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
Orchard.Blogs.Services.BlogService.Get(String slug) in C:\Orchard\trunk\src\Orchard.Web\Packages\Orchard.Blogs\Services\BlogService.cs:19
Orchard.Blogs.Routing.IsBlogConstraint.Match(HttpContextBase httpContext, Route route, String parameterName, RouteValueDictionary values, RouteDirection routeDirection) in C:\Orchard\trunk\src\Orchard.Web\Packages\Orchard.Blogs\Routing\IsBlogConstraint.cs:14
System.Web.Routing.Route.ProcessConstraint(HttpContextBase httpContext, Object constraint, String parameterName, RouteValueDictionary values, RouteDirection routeDirection) +56
System.Web.Routing.Route.ProcessConstraints(HttpContextBase httpContext, RouteValueDictionary values, RouteDirection routeDirection) +153
System.Web.Routing.Route.GetRouteData(HttpContextBase httpContext) +220
System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext) +194
System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +26
System.Web.Routing.UrlRoutingModule.OnApplicationPostResolveRequestCache(Object sender, EventArgs e) +80
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

Database - SQL2008 - Max length on certain fields

@Jetski5822 created:
https://orchard.codeplex.com/workitem/15728

I have hooked up orchard to SQL2008 and let the database self generate the tables for me. I have then noticed the columns for example on BlogPosts get automatically set to Nvarchar(255) when really they should be set to Ntext, or something similar. I’m not sure if this issue is highlighted under a SQLITE database. But I thought I would report it as it can cause issues when creating blog posts or creating pages.

Changeset 44851

Failure to resolve AntiForgeryAuthorizationFilter

nesteruk created:
https://orchard.codeplex.com/workitem/16184

Build 46131 - get the following error after deploying solution:

The component 'Orchard.Mvc.Filters.AntiForgeryAuthorizationFilter' has no resolvable constructors. Unsuitable constructors included:
Void .ctor(Orchard.Settings.ISiteService, Orchard.Security.IAuthenticationService): parameter 'siteService' of type 'Orchard.Settings.ISiteService' is not resolvable.

Manage Pages: Click on Action/Filter "Apply" buttons when nothing is selected, get an exception

@bradmi created:
https://orchard.codeplex.com/workitem/16212

Two bugs in one...

Repro #1:

  1. Go to Manage Pages
  2. With no pages in the list, click the Action "Apply" button

RESULT:
[ArgumentNullException: Value cannot be null.
Parameter name: source]
System.Linq.Enumerable.Where(IEnumerable1 source, Func2 predicate) +704032
Orchard.Pages.Controllers.AdminController.ListPOST(PagesOptions options, IList`1 pageEntries) in C:\Orchard\trunk\src\Orchard.Web\Packages\Orchard.Pages\Controllers\AdminController.cs:56
lambda_method(ExecutionScope , ControllerBase , Object[] ) +109
System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +17

Repro #2:

  1. Go to Manage Pages
  2. With no pages in the list, select "Offline Pages" and click the Filter "Apply" button

RESULT:
[InvalidOperationException: Could not find entity named: Orchard.ContentManagement.Records.ContentPartVersionRecord]
NHibernate.Linq.Util.CriteriaUtil.GetRootType(CriteriaImpl criteria) +300
NHibernate.Linq.Util.CriteriaUtil.GetRootType(ICriteria criteria) +187
NHibernate.Linq.Visitors.MemberNameVisitor.IsRootEntity(EntityExpression expr) +126
NHibernate.Linq.Visitors.MemberNameVisitor.VisitEntity(EntityExpression expr) +151

Blogs - Editing recieves a 404

@Jetski5822 created:
https://orchard.codeplex.com/workitem/15516

  1. Create a blog.
  2. Click Manage Blogs.
  3. Click 'Edit Blog' (see the status bar on my Screeny for a link to where it was heading)

You will recieve a 404. Most likely caused due to an issue earlier stated about their being no Admin controller.

Current Version - 44272

Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /Admin/Blogs/accommodation/blog/Edit

Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

Attempt to upload a single media file throws System.MissingMethodException

@bradmi created:
https://orchard.codeplex.com/workitem/14930

  1. Click Manage Media
  2. Click the Images folder
  3. Click "Add media" link
  4. Browse for a media image (e.g. JPEG file)
  5. Click Upload button

RESULT:

Method not found: 'System.Web.Mvc.IValueProvider System.Web.Mvc.FormCollection.ToValueProvider()'.
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.MissingMethodException: Method not found: 'System.Web.Mvc.IValueProvider System.Web.Mvc.FormCollection.ToValueProvider()'.

Source Error:

Line 163: return View(viewModel);
Line 164: }
Line 165: }
Line 166:
Line 167: public ActionResult EditMedia(string name, string caption, DateTime lastUpdated, long size, string folderName, string mediaPath) {

Source File: C:\Orchard\trunk\src\Orchard.Web\Packages\Orchard.Media\Controllers\AdminController.cs Line: 165

Stack Trace:

[MissingMethodException: Method not found: 'System.Web.Mvc.IValueProvider System.Web.Mvc.FormCollection.ToValueProvider()'.]
Orchard.Media.Controllers.AdminController.Add(FormCollection input) in C:\Orchard\trunk\src\Orchard.Web\Packages\Orchard.Media\Controllers\AdminController.cs:165
lambda_method(ExecutionScope , ControllerBase , Object[] ) +86
System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +17
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) +178 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) +24
System.Web.Mvc.<>c__DisplayClassa.b__7() +52
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) +254 System.Web.Mvc.<>c__DisplayClassc.<InvokeActionMethodWithFilters>b__9() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) +254
System.Web.Mvc.<>c__DisplayClassc.b__9() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList1 filters, ActionDescriptor actionDescriptor, IDictionary2 parameters) +192
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +392
System.Web.Mvc.Controller.ExecuteCore() +126
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +39
System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +7
System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) +151
System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) +57
System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext) +7
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

Delete Hack.db database and run Orchard; fails to recreate the database

@bradmi created:
https://orchard.codeplex.com/workitem/14888

  1. Delete App_Data\Hack.db
  2. Run the Orchard app - assumption is the database will be recreated automatically when you run the Orchard app

RESULT:

SQLite error
no such table: Published
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.Data.SQLite.SQLiteException: SQLite error
no such table: Published

Source Error:

Line 6: public static class ReadOnlyCollectionExtensions {
Line 7: public static IList ToReadOnlyCollection(this IEnumerable enumerable) {
Line 8: return new ReadOnlyCollection(enumerable.ToArray());
Line 9: }
Line 10: }

Source File: C:\Orchard\trunk\src\Orchard\Utility\ReadOnlyCollectionExtensions.cs Line: 8

Roles - Delete when existing users attached.

@Jetski5822 created:
https://orchard.codeplex.com/workitem/15707

1 Create a role.
2 Add a couple of users to that role.
3 Delete role.

Looks like you have missed a cascade delete on the DB or at application level.

Server Error in '/' Application.
The DELETE statement conflicted with the REFERENCE constraint "FK43A22D322A3119A4". The conflict occurred in database "Orchard", table "dbo.UserRolesRecord", column 'Role_id'.
The statement has been terminated.
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.Data.SqlClient.SqlException: The DELETE statement conflicted with the REFERENCE constraint "FK43A22D322A3119A4". The conflict occurred in database "Orchard", table "dbo.UserRolesRecord", column 'Role_id'.
The statement has been terminated.

Source Error:

Line 31: if (!_cancelled)
Line 32: _scope.Complete();
Line 33: _scope.Dispose();
Line 34: }
Line 35: }

Source File: D:\InformationServices\Prototypes\CMS\orchard-44851\trunk\src\Orchard\Data\TransactionManager.cs Line: 33

Stack Trace:

[SqlException (0x80131904): The DELETE statement conflicted with the REFERENCE constraint "FK43A22D322A3119A4". The conflict occurred in database "Orchard", table "dbo.UserRolesRecord", column 'Role_id'.
The statement has been terminated.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1951450
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4849003
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2394
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +204
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +954
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +175
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +137
NHibernate.AdoNet.AbstractBatcher.ExecuteNonQuery(IDbCommand cmd) +303
NHibernate.AdoNet.NonBatchingBatcher.AddToBatch(IExpectation expectation) +64
NHibernate.Persister.Entity.AbstractEntityPersister.Delete(Object id, Object version, Int32 j, Object obj, SqlCommandInfo sql, ISessionImplementor session, Object[] loadedState) +1656

[GenericADOException: could not delete: [Orchard.Roles.Records.RoleRecord#1][SQL: DELETE FROM [RoleRecord] WHERE Id = ?]]
NHibernate.Persister.Entity.AbstractEntityPersister.Delete(Object id, Object version, Int32 j, Object obj, SqlCommandInfo sql, ISessionImplementor session, Object[] loadedState) +2145
NHibernate.Persister.Entity.AbstractEntityPersister.Delete(Object id, Object version, Object obj, ISessionImplementor session) +430
NHibernate.Action.EntityDeleteAction.Execute() +624
NHibernate.Engine.ActionQueue.Execute(IExecutable executable) +187
NHibernate.Engine.ActionQueue.ExecuteActions(IList list) +125
NHibernate.Engine.ActionQueue.ExecuteActions() +110
NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session) +221
NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent event) +101
NHibernate.Impl.SessionImpl.Flush() +297
NHibernate.Transaction.DistributedTransactionContext.System.Transactions.IEnlistmentNotification.Prepare(PreparingEnlistment preparingEnlistment) +444

[TransactionAbortedException: The transaction has aborted.]
System.Transactions.TransactionStateAborted.EndCommit(InternalTransaction tx) +11
System.Transactions.CommittableTransaction.Commit() +225
System.Transactions.TransactionScope.InternalDispose() +328
System.Transactions.TransactionScope.Dispose() +1607
Orchard.Data.TransactionManager.System.IDisposable.Dispose() in D:\InformationServices\Prototypes\CMS\orchard-44851\trunk\src\Orchard\Data\TransactionManager.cs:33
Autofac.Disposer.Dispose(Boolean disposing) in d:\Projects\svn\autofac-1.4\src\Source\Autofac\Disposer.cs:57
Autofac.Disposable.Dispose() in d:\Projects\svn\autofac-1.4\src\Source\Autofac\Disposable.cs:23
Autofac.Container.Dispose(Boolean disposing) in d:\Projects\svn\autofac-1.4\src\Source\Autofac\Container.cs:478
Autofac.Disposable.Dispose() in d:\Projects\svn\autofac-1.4\src\Source\Autofac\Disposable.cs:23
Autofac.Integration.Web.ContainerProvider.DisposeRequestContainer() in d:\Projects\svn\autofac-1.4\src\Source\Autofac.Integration.Web\ContainerProvider.cs:59
Orchard.Environment.DefaultOrchardHost.EndRequest() in D:\InformationServices\Prototypes\CMS\orchard-44851\trunk\src\Orchard\Environment\DefaultOrchardHost.cs:49
Orchard.Environment.DefaultOrchardHost.Orchard.Environment.IOrchardHost.EndRequest() in D:\InformationServices\Prototypes\CMS\orchard-44851\trunk\src\Orchard\Environment\DefaultOrchardHost.cs:114
Orchard.Web.MvcApplication.Application_EndRequest() in D:\InformationServices\Prototypes\CMS\orchard-44851\trunk\src\Orchard.Web\Global.asax.cs:99

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +71
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +350
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
System.Web.Util.ArglessEventHandlerProxy.Callback(Object sender, EventArgs e) +42
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

User name and email uniqueness should be enforced

@bradmi created:
https://orchard.codeplex.com/workitem/14887

Symptom: Log in throws System.InvalidOperationException: Sequence contains more than one element

  1. Click Log In link
  2. Click Register to create a new account and sign in
  3. Click Log Out link to sign out
  4. Click Log In link again
  5. Attempt to sign in with previously specified credentials

RESULT:

Sequence contains more than one element
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.InvalidOperationException: Sequence contains more than one element

Source Error:

Line 97:
Line 98: public virtual T Get(Expression<Func<T, bool>> predicate) {
Line 99: return Fetch(predicate).SingleOrDefault();
Line 100: }
Line 101:

Source File: C:\Orchard\trunk\src\Orchard\Data\Repository.cs Line: 99

Stack Trace:
[InvalidOperationException: Sequence contains more than one element]
System.Linq.Enumerable.SingleOrDefault(IEnumerable1 source) +733860 NHibernate.Linq.Visitors.ImmediateResultsVisitor1.HandleSingleOrDefaultCall(MethodCallExpression call) +62
NHibernate.Linq.Visitors.ImmediateResultsVisitor1.VisitMethodCall(MethodCallExpression call) +408 NHibernate.Linq.Visitors.ExpressionVisitor.Visit(Expression exp) +341 NHibernate.Linq.Visitors.NHibernateExpressionVisitor.Visit(Expression exp) +204 NHibernate.Linq.Visitors.ImmediateResultsVisitor1.GetResults(MethodCallExpression expr) +12
NHibernate.Linq.Visitors.RootVisitor.HandleImmediateResultsCall(MethodCallExpression call) +174
NHibernate.Linq.Visitors.RootVisitor.VisitMethodCall(MethodCallExpression expr) +703
NHibernate.Linq.Visitors.ExpressionVisitor.Visit(Expression exp) +341

Attempt to access the Admin panel without logging in throws NullRefException

@bradmi created:
https://orchard.codeplex.com/workitem/14929

  1. Run the app
  2. Click the admin link

Note: same exception occurs when clicking "Manage Users" link in admin panel after logging in as Administrator

RESULT:

Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 61:
Line 62: // create a context with a new instance to load
Line 63: var context = new LoadContentContext {
Line 64: Id = contentItemRecord.Id,
Line 65: ContentType = contentItemRecord.ContentType.Name,

Source File: C:\Orchard\trunk\src\Orchard\Models\DefaultContentManager.cs Line: 63

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
Orchard.Models.DefaultContentManager.Get(Int32 id) in C:\Orchard\trunk\src\Orchard\Models\DefaultContentManager.cs:63
Orchard.Core.Settings.Services.SiteService.GetSiteSettings() in C:\Orchard\trunk\src\Orchard.Web\Core\Settings\Services\SiteService.cs:33
Orchard.Settings.<>c__DisplayClass2.b__0(Object sender, ActivatedEventArgs e) in C:\Orchard\trunk\src\Orchard\Settings\SettingsModule.cs:14
System.EventHandler1.Invoke(Object sender, TEventArgs e) +0 Autofac.Component.Registration.<DuplicateForNewContext>b__8(Object s, ActivatedEventArgs e) in d:\Projects\svn\autofac-1.4\src\Source\Autofac\Component\Registration.cs:159 System.EventHandler1.Invoke(Object sender, TEventArgs e) +0
Autofac.Component.Registration.InstanceActivated(IContext context, Object instance) in d:\Projects\svn\autofac-1.4\src\Source\Autofac\Component\Registration.cs:208
Autofac.Context.ActivationsComplete() in d:\Projects\svn\autofac-1.4\src\Source\Autofac\Context.cs:447
Autofac.Context.TryResolve(Service service, Object& instance, IEnumerable`1 parameters) in d:\Projects\svn\autofac-1.4\src\Source\Autofac\Context.cs:573
Autofac.Context.TryResolve(String componentName, Object& instance, Parameter[] parameters) in d:\Projects\svn\autofac-1.4\src\Source\Autofac\Context.cs:297
Autofac.Container.TryResolve(String componentName, Object& instance, Parameter[] parameters) in d:\Projects\svn\autofac-1.4\src\Source\Autofac\Container.cs:893
Orchard.Mvc.OrchardControllerFactory.CreateController(RequestContext requestContext, String controllerName) in C:\Orchard\trunk\src\Orchard\Mvc\OrchardControllerFactory.cs:23
System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) +128
System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) +57
System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext) +7
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

Feature Request - Pages, URLs

irgordon created:
https://orchard.codeplex.com/workitem/15699

I think, pages should be created in a tree-list format so:

http://www.domain.com/Home.aspx
http://www.domain.com/About.aspx

That way you have accessible URLs that are easy to use and create a multi-level site without having to resort to something like: "Default.aspx?id=234&Section=34595", which is not very readable and conducive to sharing with visitors.

Users - Create New User blows when no details entered

@Jetski5822 created:
https://orchard.codeplex.com/workitem/15904

1 Log in as Administrator
2 Click on Add new user
3 Click Create

Change Set 45372

-- Should get this error....

Server Error in '/' Application.
The model of type 'Orchard.Users.ViewModels.UserCreateViewModel' could not be updated.
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.InvalidOperationException: The model of type 'Orchard.Users.ViewModels.UserCreateViewModel' could not be updated.

Source Error:

Line 53:
Line 54: var model = new UserCreateViewModel();
Line 55: UpdateModel(model);
Line 56:
Line 57: var user = _membershipService.CreateUser(new CreateUserParams(

Source File: D:\OpenSource\orchard\trunk\src\Orchard.Web\Packages\Orchard.Users\Controllers\AdminController.cs Line: 55

Stack Trace:

[InvalidOperationException: The model of type 'Orchard.Users.ViewModels.UserCreateViewModel' could not be updated.]
System.Web.Mvc.Controller.UpdateModel(TModel model, String prefix, String[] includeProperties, String[] excludeProperties, IValueProvider valueProvider) +381749
System.Web.Mvc.Controller.UpdateModel(TModel model) +73
Orchard.Users.Controllers.AdminController._Create() in D:\OpenSource\orchard\trunk\src\Orchard.Web\Packages\Orchard.Users\Controllers\AdminController.cs:55
lambda_method(ExecutionScope , ControllerBase , Object[] ) +74
System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +17
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) +178 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) +24
System.Web.Mvc.<>c__DisplayClassd.b__a() +52
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) +254 System.Web.Mvc.<>c__DisplayClassf.<InvokeActionMethodWithFilters>b__c() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) +254
System.Web.Mvc.<>c__DisplayClassf.b__c() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) +254 System.Web.Mvc.<>c__DisplayClassf.<InvokeActionMethodWithFilters>b__c() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList1 filters, ActionDescriptor actionDescriptor, IDictionary2 parameters) +192 System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +314 System.Web.Mvc.Controller.ExecuteCore() +105 System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +39 System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +7 System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__4() +34 System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21 System.Web.Mvc.Async.<>c__DisplayClass81.b__7(IAsyncResult _) +12
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +59
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +44
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +7
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8679150
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

Blogs - The controller name 'admin' is ambiguous

@Jetski5822 created:
https://orchard.codeplex.com/workitem/15511

When Attempting to View a blog thru the screen http://localhost:30320/Admin/Blogs

It would appear that the problem occurs when the project has no AdminController.

Server Error in '/' Application.

The controller name 'admin' is ambiguous between the following types:
Orchard.Tags.Controllers.AdminController
Orchard.CmsPages.Controllers.AdminController
Orchard.Comments.Controllers.AdminController
Orchard.Users.Controllers.AdminController
Orchard.Core.Settings.Controllers.AdminController
Orchard.Core.Themes.Controllers.AdminController
Orchard.Media.Controllers.AdminController
Orchard.Roles.Controllers.AdminController
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.InvalidOperationException: The controller name 'admin' is ambiguous between the following types:
Orchard.Tags.Controllers.AdminController
Orchard.CmsPages.Controllers.AdminController
Orchard.Comments.Controllers.AdminController
Orchard.Users.Controllers.AdminController
Orchard.Core.Settings.Controllers.AdminController
Orchard.Core.Themes.Controllers.AdminController
Orchard.Media.Controllers.AdminController
Orchard.Roles.Controllers.AdminController

Source Error:

Line 25: return (IController) controller;
Line 26: }
Line 27: return base.CreateController(requestContext, controllerName);
Line 28: }
Line 29:

Source File: D:\InformationServices\Prototypes\CMS\orchard-44272\trunk\src\Orchard\Mvc\OrchardControllerFactory.cs Line: 27

Stack Trace:

[InvalidOperationException: The controller name 'admin' is ambiguous between the following types:
Orchard.Tags.Controllers.AdminController
Orchard.CmsPages.Controllers.AdminController
Orchard.Comments.Controllers.AdminController
Orchard.Users.Controllers.AdminController
Orchard.Core.Settings.Controllers.AdminController
Orchard.Core.Themes.Controllers.AdminController
Orchard.Media.Controllers.AdminController
Orchard.Roles.Controllers.AdminController]
System.Web.Mvc.DefaultControllerFactory.GetControllerTypeWithinNamespaces(String controllerName, HashSet`1 namespaces) +222425
System.Web.Mvc.DefaultControllerFactory.GetControllerType(RequestContext requestContext, String controllerName) +439
System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +58
Orchard.Mvc.OrchardControllerFactory.CreateController(RequestContext requestContext, String controllerName) in D:\InformationServices\Prototypes\CMS\orchard-44272\trunk\src\Orchard\Mvc\OrchardControllerFactory.cs:27
System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +111
System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +46
System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) +63
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +13
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8679426
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155


Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

Log out throws System.MissingMethodException: No parameterless constructor defined for this object.

@bradmi created:
https://orchard.codeplex.com/workitem/14886

  1. Click Log in link
  2. Register a new account and sign in
  3. In the Orchard admin panel, click Log out link

RESULT:

No parameterless constructor defined for this object.
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.MissingMethodException: No parameterless constructor defined for this object.

Source Error:

Line 25: return (IController) controller;
Line 26: }
Line 27: return base.CreateController(requestContext, controllerName);
Line 28: }
Line 29:

Source File: C:\Orchard\trunk\src\Orchard\Mvc\OrchardControllerFactory.cs Line: 27

Stack Trace:
[MissingMethodException: No parameterless constructor defined for this object.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +86
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +230
System.Activator.CreateInstance(Type type, Boolean nonPublic) +67
System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) +80

Should all ViewPages and ViewUserControls inherit from Orchard.Mvc.X?

rdaddis created:
https://orchard.codeplex.com/workitem/16109

As of Build #45997, the following ViewPages and ViewUserControls do not inherit from Orchard.Mvc.X:

Orchard.Pages\Views\Page\Item.ascx,
Orchard.Blogs\Views\Blog\Item.ascx,
Orchard.Blogs\Views\BlogPost\Item.ascx,
Orchard.Blogs\Views\EditorTemplates\Items\Blogs.Blog.ascx
Orchard.Users\Views\Admin\EditorTemplates\inputPasswordLarge.ascx
Orchard.Users\Views\Admin\EditorTemplates\inputTextLarge.ascx
Orchard.Users\Views\EditorTemplates\Items\Users.User.ascx
TinyMce\Views\EditorTemplates\TinyMceTextEditor.ascx
Orchard.Sandbox\Views\Page\Show.aspx
Orchard.Sandbox\Views\DisplayTemplates\Parts\Sandbox.Page.Title.ascx
Orchard.Sandbox\Views\EditorTemplates\Parts\Sandbox.Page.ascx
Orchard.Tags\Views\EditorTemplates\Parts\Tags.EditTags.ascx
Orchard.Web\Core\Common\Views\DisplayTemplates\Parts\Common.Body.ascx
Orchard.Web\Core\Settings\Views\EditorTemplates\Items\Settings.Site.ascx
Orchard.Web\Core\Themes\Views\Document.aspx
Orchard.Web\Core\Themes\Views\HeadPreload.ascx
Orchard.Web\Core\Themes\Views\Layout.ascx
Orchard.Web\Core\Themes\Views\Messages.ascx
Orchard.Web\Core\XmlRpc\Views\Home\Index.aspx
Orchard.Web\Views\Home\Index.aspx

Should all ViewPages and ViewUserControls inherit from Orchard.Mvc.X?

SQLite binaries won't load

nesteruk created:
https://orchard.codeplex.com/workitem/14798

I'm getting the following exception:

Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. An attempt was made to load a program with an incorrect format.

I'm running 2008R2 64-bit, and thought it might be to do with SQLite drivers being 32-bit, but apparently even swapping in 64-bit ones does not help.

Ambiguous controller errors are difficult to interpret

@bleroy created:
https://orchard.codeplex.com/workitem/15917

When we can't resolve an area's action for whatever reason (module not there, etc.), the request bubbles up to the regular MVC logic, which usually ends up surfacing as an ambiguous controller name error.
We should find a way of maybe intercepting such exceptions and wrap them in our own so that even if there are false positives, we can at least give an indication about what very likely happened and how to solve it rather than give that naked cryptic error.

General Issue - NotFoundResult not fully implemented.

@Jetski5822 created:
https://orchard.codeplex.com/workitem/15883

If you throw a NotFoundResult in the blogs module i receive The following Error (See below).....

I Created my own module then added in the NotFound view, but alas no luck, i still ended up with the following error. I will try messing around the the Routes to see if that will fix it.

Server Error in '/' Application.
The view 'NotFound' or its master was not found. The following locations were searched:
~/Areas/Orchard.Blogs/Views/BlogAdmin/NotFound.aspx
~/Areas/Orchard.Blogs/Views/BlogAdmin/NotFound.ascx
~/Areas/Orchard.Blogs/Views/Shared/NotFound.aspx
~/Areas/Orchard.Blogs/Views/Shared/NotFound.ascx
~/Views/BlogAdmin/NotFound.aspx
~/Views/BlogAdmin/NotFound.ascx
~/Views/Shared/NotFound.aspx
~/Views/Shared/NotFound.ascx
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.InvalidOperationException: The view 'NotFound' or its master was not found. The following locations were searched:
~/Areas/Orchard.Blogs/Views/BlogAdmin/NotFound.aspx
~/Areas/Orchard.Blogs/Views/BlogAdmin/NotFound.ascx
~/Areas/Orchard.Blogs/Views/Shared/NotFound.aspx
~/Areas/Orchard.Blogs/Views/Shared/NotFound.ascx
~/Views/BlogAdmin/NotFound.aspx
~/Views/BlogAdmin/NotFound.ascx
~/Views/Shared/NotFound.aspx
~/Views/Shared/NotFound.ascx

Source Error:

Line 9: TempData = context.Controller.TempData;
Line 10:
Line 11: base.ExecuteResult(context);
Line 12:
Line 13: context.HttpContext.Response.StatusDescription = "File Not Found";

Source File: D:\InformationServices\Prototypes\CMS\orchard-44851\trunk\src\Orchard\Mvc\Results\NotFoundResult.cs Line: 11

Stack Trace:

[InvalidOperationException: The view 'NotFound' or its master was not found. The following locations were searched:
~/Areas/Orchard.Blogs/Views/BlogAdmin/NotFound.aspx
~/Areas/Orchard.Blogs/Views/BlogAdmin/NotFound.ascx
~/Areas/Orchard.Blogs/Views/Shared/NotFound.aspx
~/Areas/Orchard.Blogs/Views/Shared/NotFound.ascx
~/Views/BlogAdmin/NotFound.aspx
~/Views/BlogAdmin/NotFound.ascx
~/Views/Shared/NotFound.aspx
~/Views/Shared/NotFound.ascx]
System.Web.Mvc.ViewResult.FindView(ControllerContext context) +241489
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +139
Orchard.Mvc.Results.NotFoundResult.ExecuteResult(ControllerContext context) in D:\InformationServices\Prototypes\CMS\orchard-44851\trunk\src\Orchard\Mvc\Results\NotFoundResult.cs:11
System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +10
System.Web.Mvc.<>c__DisplayClass14.b__11() +20
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251 System.Web.Mvc.<>c__DisplayClass16.<InvokeActionResultWithFilters>b__13() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251
System.Web.Mvc.<>c__DisplayClass16.b__13() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251 System.Web.Mvc.<>c__DisplayClass16.<InvokeActionResultWithFilters>b__13() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251
System.Web.Mvc.<>c__DisplayClass16.b__13() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251 System.Web.Mvc.<>c__DisplayClass16.<InvokeActionResultWithFilters>b__13() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +251
System.Web.Mvc.<>c__DisplayClass16.b__13() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) +178 System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +314 System.Web.Mvc.Controller.ExecuteCore() +105 System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +39 System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +7 System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__4() +34 System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21 System.Web.Mvc.Async.<>c__DisplayClass81.b__7(IAsyncResult _) +12
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +59
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +44
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +7
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8679150
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

Error While Creating New Blog

nickknyc created:
https://orchard.codeplex.com/workitem/15872

Build 45266

Clean download - no changes to code
Loaded into VS2008
Hit F5
Register "Administrator" account
Create new blog "nickblog"
Add blog name to the Permalink
Hit create
Get error below
hit continue
go to Manage blogs
See that blog is created
click on link
get same error.

System.InvalidOperationException was unhandled by user code
Message="The controller name 'admin' is ambiguous between the following types:\r\nOrchard.Core.Themes.Controllers.AdminController\r\nOrchard.Core.Settings.Controllers.AdminController\r\nOrchard.Tags.Controllers.AdminController\r\nOrchard.Users.Controllers.AdminController\r\nOrchard.Media.Controllers.AdminController\r\nOrchard.Comments.Controllers.AdminController\r\nOrchard.Pages.Controllers.AdminController\r\nOrchard.Roles.Controllers.AdminController"
Source="System.Web.Mvc"
StackTrace:
at System.Web.Mvc.DefaultControllerFactory.GetControllerTypeWithinNamespaces(String controllerName, HashSet`1 namespaces)
at System.Web.Mvc.DefaultControllerFactory.GetControllerType(RequestContext requestContext, String controllerName)
at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName)
at Orchard.Mvc.OrchardControllerFactory.CreateController(RequestContext requestContext, String controllerName) in C:\Users\nickk\Documents_SVN\Orchard\trunk\src\Orchard\Mvc\OrchardControllerFactory.cs:line 27
at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
InnerException:

Referencing external components will throw notfoundexception

@Jetski5822 created:
https://orchard.codeplex.com/workitem/15781

Problem -
Adding a reference to a component in a project that is outside the scope of the project and not in the GAC will cause a notfound exception becuase it is not referenced within the Orchard.Web project.

How to reproduce -

  1. Create A new project
  2. Reference a component that is outside the scope of the project and not in the GAC
  3. Create a .cs file in the newly created project, and put a using statement to the component in the .cs file.
  4. run - You should see the bing error message below

Solution -

  1. You could add the reference in to the Orchard.Web Project
    or
  2. change the way BuildManager.GetReferencedAssemblies() works by going down the tree - A good article http://msdn.microsoft.com/en-us/magazine/cc163641.aspx
    I am part way to a solution for this, so once finished i will patch up.

Big Error ---

Server Error in '/' Application.
Could not load file or assembly 'file:///C:\Users\mayn2\AppData\Local\Temp\vsu96r7w.dll' or one of its dependencies. The system cannot find the file specified.
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.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\Users\mayn2\AppData\Local\Temp\vsu96r7w.dll' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 39: {
Line 40:
Line 41: throw;
Line 42: }
Line 43: }

Source File: D:\InformationServices\Prototypes\CMS\orchard-44851\trunk\src\Orchard\Extensions\Loaders\DynamicExtensionLoader.cs Line: 41

Assembly Load Trace: The following information can be helpful to determine why the assembly 'file:///C:\Users\mayn2\AppData\Local\Temp\vsu96r7w.dll' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value HKLM\Software\Microsoft\Fusion!EnableLog to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace:

[FileNotFoundException: Could not load file or assembly 'file:///C:\Users\mayn2\AppData\Local\Temp\vsu96r7w.dll' or one of its dependencies. The system cannot find the file specified.]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity) +26
System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly() +85
Orchard.Extensions.Loaders.DynamicExtensionLoader.Load(ExtensionDescriptor descriptor) in D:\InformationServices\Prototypes\CMS\orchard-44851\trunk\src\Orchard\Extensions\Loaders\DynamicExtensionLoader.cs:41
Orchard.Extensions.ExtensionManager.BuildEntry(ExtensionDescriptor descriptor) in D:\InformationServices\Prototypes\CMS\orchard-44851\trunk\src\Orchard\Extensions\ExtensionManager.cs:143
Orchard.Extensions.d__9.MoveNext() in D:\InformationServices\Prototypes\CMS\orchard-44851\trunk\src\Orchard\Extensions\ExtensionManager.cs:136
System.Collections.Generic.List1..ctor(IEnumerable1 collection) +7667732
System.Linq.Enumerable.ToList(IEnumerable`1 source) +61
Orchard.Extensions.ExtensionManager.ActiveExtensions() in D:\InformationServices\Prototypes\CMS\orchard-44851\trunk\src\Orchard\Extensions\ExtensionManager.cs:67
Orchard.Environment.DefaultCompositionStrategy.GetModuleTypes() in D:\InformationServices\Prototypes\CMS\orchard-44851\trunk\src\Orchard\Environment\DefaultCompositionStrategy.cs:27
Orchard.Environment.DefaultOrchardHost.CreateShellContainer() in D:\InformationServices\Prototypes\CMS\orchard-44851\trunk\src\Orchard\Environment\DefaultOrchardHost.cs:62
Orchard.Environment.DefaultOrchardHost.CreateShell() in D:\InformationServices\Prototypes\CMS\orchard-44851\trunk\src\Orchard\Environment\DefaultOrchardHost.cs:54
Orchard.Environment.DefaultOrchardHost.Initialize() in D:\InformationServices\Prototypes\CMS\orchard-44851\trunk\src\Orchard\Environment\DefaultOrchardHost.cs:39
Orchard.Environment.DefaultOrchardHost.Orchard.Environment.IOrchardHost.Initialize() in D:\InformationServices\Prototypes\CMS\orchard-44851\trunk\src\Orchard\Environment\DefaultOrchardHost.cs:111
Orchard.Web.MvcApplication.Application_Start() in D:\InformationServices\Prototypes\CMS\orchard-44851\trunk\src\Orchard.Web\Global.asax.cs:48

Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.