two bugs in Orchard.ContentTypes module

Dec 17, 2010 at 7:12 AM

in Orchard.Web\Modules\Orchard.ContentTypes\Views\Admin\Edit.cshtml:
@{
Style.Require("ContentTypesAdmin");
Script.Require("jQuery");
@*Script.Include("admin.js");*@ @*throw a 'serviceKey=null' exception*@
}

in Orchard.Web\Modules\Orchard.ContentTypes\Views\Admin\EditPart.cshtml:
@{
Style.Require("ContentTypesAdmin");
Script.Require("jQuery");
@*Script.Include("admin.js");*@ @*throw a 'serviceKey=null' exception*@

}

Coordinator
Dec 17, 2010 at 6:49 PM

Hi,

We can't reproduce this. Can you give a little more context?

Dec 18, 2010 at 2:27 PM

if you visit 'Admin Panel => Content Types => Edit  any Content Type or any Content Part' ;

and if you visit 'Admin Panel => Modules => click 'Install a module' button'

will throw an exception as follows:

{"Value cannot be null.\r\nParameter name: serviceKey"}

   at Autofac.Util.Enforce.ArgumentNotNull[T](T value, String name)
   at Autofac.Core.KeyedService..ctor(Object serviceKey, Type serviceType)
   at Orchard.Mvc.OrchardControllerFactory.TryResolve[T](WorkContext workContext, Object serviceKey, T& instance)
   at Orchard.Mvc.OrchardControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType)
   at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName)
   at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
   at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<BeginProcessRequest>b__2()
   at System.Web.Mvc.SecurityUtil.<>c__DisplayClassb`1.<ProcessInApplicationTrust>b__a()
   at System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f)
   at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action)
   at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust[TResult](Func`1 func)
   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 Orchard.Mvc.Routes.ShellRoute.HttpAsyncHandler.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)

Coordinator
Dec 18, 2010 at 4:56 PM

Can you please file a bug and we'll investigate?

Feb 2, 2011 at 1:43 AM
Edited Feb 2, 2011 at 1:49 AM

 

Admin Panel => Modules => click 'Install a module' button' >>>>>>>>>>>>>>>>>this is  ok

Admin Panel => Content Types => Edit  any Content Type or any Content Part' >>>>>>>>yes, i have the same as  neilbao said, also  "create new type" .

after @*Script.Include("admin.js");*@ @*throw a 'serviceKey=null' exception*@, >>>>>>>>>>>it can go to next step,  ok

=============================

for "create new type", if i use source code of changeset today 9e12e4777bf6, got OrchardControllerFactory did not return  a controller for the name "Orchard.ContentTypes"

 


Mar 15, 2011 at 7:53 PM

i uninstalled webmatrix ago, n everything is ok without change any thing of the src 1.0.20:

without this: 

-----------------------------------

Admin Panel => Modules => click 'Install a module' button' >>>>>>>>>>>>>>>>>this is  ok

Admin Panel => Content Types => Edit  any Content Type or any Content Part' >>>>>>>>yes, i have the same as  neilbao said, also  "create new type" .

after @*Script.Include("admin.js");*@ @*throw a 'serviceKey=null' exception*@, >>>>>>>>>>>it can go to next step,  ok

=============================

for "create new type", if i use source code of changeset today 9e12e4777bf6, got OrchardControllerFactory did not return  a controller for the name "Orchard.ContentTypes"

------------------------------------------------

but days ago, i installed vs sp1, it returned this same problem.

i noticed that Orchard.ContentTypes module, there is lack of   admin.js file,

after i added dummy admin.js:

(function ($) {
    $(function () {
        alert("Admin");
    });
})(jQuery);
under scripts folder , everthing is ok
Coordinator
Mar 15, 2011 at 7:58 PM

That's weird, I can see the file under Themes/TheAdmin/Scripts. Are you sure you have the whole source?