Copied to clipboard

Flag this post as spam?

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


  • Vaidas 22 posts 65 karma points
    Jul 15, 2015 @ 14:14
    Vaidas
    0

    The SessionStateTempDataProvider class requires session state to be enabled

    Hey,

    I have an issue embedding Contour form in a RTE. Whenever I select a form it says Error loading MacroEngine script (file: MvcRenderContourForm.cshtml)

    The error that is thrown in the MvcRenderContourForm.cshtml is

    An exception of type 'System.InvalidOperationException' occurred in System.Web.Mvc.dll but was not handled in user code

    Additional information: The SessionStateTempDataProvider class requires session state to be enabled.

    I am using Umbraco Contour v.3.0.28 and Umbraco 7.1.6

    I've tried:

    http://forums.asp.net/t/1891041.aspx?Session+state+can+only+be+used+when+enableSessionState+is+set+to+true

    and lots of other suggestions from google, but nothing helps.

    In web.config the session state settings are as follows:

        <sessionState mode="InProc" customProvider="DefaultSessionProvider">
          <providers>
            <add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection"/>
          </providers>
        </sessionState>
    

    Even tried <pages enableEventValidation="false" enableSessionState="true">

    Nothing works. Please help :)

  • Comment author was deleted

    Jul 15, 2015 @ 14:24

    Hmmmm mind sending the site to tg at umbraco dot com so I can take a look.

  • Vaidas 22 posts 65 karma points
    Jul 15, 2015 @ 14:35
    Vaidas
    0

    Hey, sorry, but I can't send the link.

  • Comment author was deleted

    Jul 15, 2015 @ 14:36

    And a backup is that possible? Not much else then that I can do then lmgtfy

  • Vaidas 22 posts 65 karma points
    Jul 15, 2015 @ 14:41
    Vaidas
    0

    I will try to recreate the problem on a fresh installation of umbraco and send that if it occurs.

    I could probably overcome this issue if I could get form content rendered through some action.

    Is it even possible to get a form's HTML rendered out when using e.g. web api and return it as a string?

  • Vaidas 22 posts 65 karma points
    Jul 15, 2015 @ 14:55
    Vaidas
    0

    @Umbraco.RenderMacro("umbracoContour.RazorRenderForm", new { FormGuid = "2fba1f0c-ff9c-4595-bdd2-3abf08bee0ce" })

    This seems to rendering the form

  • Vaidas 22 posts 65 karma points
    Jul 17, 2015 @ 09:11
    Vaidas
    0

    Seems that the issue was that I used Contour forms. After installing Umbraco Forms and adding a missing reference to an assembly in web.config it just started working.

  • Lokesh kumar Chippada 44 posts 249 karma points
    Feb 23, 2016 @ 11:19
    Lokesh kumar Chippada
    1

    Hi Vaidas,

    Can you please let me know what reference is missing?

    Thanks, Lokesh

  • Comment author was deleted

    Jul 17, 2015 @ 09:12

    Great, thanks for letting us know!

Please Sign in or register to post replies

Write your reply to:

Draft