Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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)
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.
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">
<pages enableEventValidation="false" enableSessionState="true">
Nothing works. Please help :)
Comment author was deleted
Hmmmm mind sending the site to tg at umbraco dot com so I can take a look.
Hey, sorry, but I can't send the link.
And a backup is that possible? Not much else then that I can do then lmgtfy
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?
@Umbraco.RenderMacro("umbracoContour.RazorRenderForm", new { FormGuid = "2fba1f0c-ff9c-4595-bdd2-3abf08bee0ce" })
This seems to rendering the form
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.
Hi Vaidas,
Can you please let me know what reference is missing?
Thanks, Lokesh
Great, thanks for letting us know!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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:
Even tried
<pages enableEventValidation="false" enableSessionState="true">
Nothing works. Please help :)
Comment author was deleted
Hmmmm mind sending the site to tg at umbraco dot com so I can take a look.
Hey, sorry, but I can't send the link.
Comment author was deleted
And a backup is that possible? Not much else then that I can do then lmgtfy
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?
@Umbraco.RenderMacro("umbracoContour.RazorRenderForm", new { FormGuid = "2fba1f0c-ff9c-4595-bdd2-3abf08bee0ce" })
This seems to rendering the form
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.
Hi Vaidas,
Can you please let me know what reference is missing?
Thanks, Lokesh
Comment author was deleted
Great, thanks for letting us know!
is working on a reply...