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
I have a very simple user control that sets a session variable, however when I host it in umbraco I am getting the following error:
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive.
I have updated the web.config as follows however the error still occurs. I am running IIS7.
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />
<pages enableEventValidation="false" enableSessionState="true">
what version of IIS are you using? If you are using IIS7 with extensionless URLs you will need to modify the modules tag in the IIS7. For some reason with extensionless URLs the Session State
does not get initialized. To ensure that the Session State is
initialized everytime you need to add
runAllManagedModulesForAllRequests="True" to the modules tag in the
system.webServer section of the web.config II7. it should
look like this.
Hope that sorts out your problems.
Brilliant I had the same problem completely overlooked this directive. thanks.
Thanks, you just saved my day :)
Sounds very fine and it deserves a try! But can somone please tell me where to find the web.config file in installed Umbraco!
Pls note: Don't type "True", type "true" indstead. "True" returns the error: "
<modules runAllManagedModulesForAllRequests="True"> to <modules runAllManagedModulesForAllRequests="true">
I have the same problem, but my site is hosted and i dont have access to iis config..Is there any methods to fix/override it in the umbraco web.config?
My problem is still not fixed. But it sounds interesting to me if Umbraco simply overrides my connection string. I have tried with real many combinations including the one used by my Visual Web Developer. Nothing works!
anyone with ideas here?
runAllManagedModulesForAllRequests="True" this keyword has performance issues as well so keep in mind.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted