Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Adnan Inayat 28 posts 98 karma points
    Jun 29, 2017 @ 15:52
    Adnan Inayat
    0

    Custom dev with event callendar

    Hi @David, Hope you doing well. I was using your extension and its really cool for me until I got a new requirement from client :( Simple and short is I want to implement the event creation with some front-end form like contact us form. I want to implement an option like "Submit your event" or to be precise submit your event.

    If you can guide me from where should I start will be vert appreciated. P.S I had developed custom contact us form, that means I know how to send get/post request from front-end form to back-end code.

    Thank you,

    M Adnan

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Jun 30, 2017 @ 10:50
    David Brendel
    0

    Hi Adnan,

    the package has a sort of API which you can use to create stuff yourself.

     var commandDispatcher = EventCalendarServiceContainer.GetService<ICommandDispatcher>();
     commandDispatcher.Dispatch(new AddCalendarCommand { Calendar = calendar });
    

    So there are command handler which let you create calendar, events, locations and organiser.

    The usage is simmilar to the sample above. AddEventCommand, AddLocationCommand, AddOrganiserCommand.

    Regards David

  • Adnan Inayat 28 posts 98 karma points
    Jun 30, 2017 @ 21:35
    Adnan Inayat
    0

    Thank you @David, I am trying it today. Also should I expect any update compatible to latest version of umbraco?

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Jun 30, 2017 @ 22:05
    David Brendel
    0

    Hi Adnan,

    currently working on a version which is compatible with umbraco 7.6

  • Adnan Inayat 28 posts 98 karma points
    Jun 30, 2017 @ 23:00
    Adnan Inayat
    0

    FYI I tried the options you told me in version 2.3.2

    And its obvious the solution you provide me is for 3+.

    But the problem is I tried to install it on 7.3.0, 7.3.7, 7.5.4, 7.6.3 (All fresh installs)

    None of them are working.

    Can you please look into it if you have some extra time. I am attaching screenshot of error.

    Thank you

    7.3.0

  • Adnan Inayat 28 posts 98 karma points
    Jun 30, 2017 @ 23:08
    Adnan Inayat
    0

    Here is the full stack trace:

    Server Error in '/' Application.

    Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

    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.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

    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:

    [ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.] System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0 System.Reflection.RuntimeModule.GetTypes() +9 System.Reflection.Assembly.GetTypes() +70 Ninject.Extensions.Conventions.BindingBuilder.TypeSelector.

    [HttpException (0x80004005): Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +10063289 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +173 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

    [HttpException (0x80004005): Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10044576 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2046.0

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Jul 04, 2017 @ 05:10
    David Brendel
    0

    Hi Adnan,

    sorry for the late response, some busy days.

    The v3 version currently only works on 7.4 and 7.5 in general. Which version have you tried to install? 3.3.0?

    Will test it and see if I can find any issues.

    Regards David

  • Adnan Inayat 28 posts 98 karma points
    Jul 04, 2017 @ 05:34
    Adnan Inayat
    0

    I had tried 3.30 with almost 7.6.3, 7.3.7, 7.3.6 3.2.4 with almost all of the above except 7.6.3 3.1.7 with 7.3.7 and 7.3.6

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Jul 04, 2017 @ 18:35
    David Brendel
    0

    Hi Adnan,

    as said the version only works on 7.4 and 7.5. Have you updated Newtonsoft.Json to version 7.0.1? Th epackage uses the google calendar api which depends on that version of Newtonsoft.Json.

    I will try it myself and see if I can find any issues.

    Regards David

Please Sign in or register to post replies

Write your reply to:

Draft