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.
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!
Accessing Session State in User Control
Hi,
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:
I have updated the web.config as follows however the error still occurs. I am running IIS7.
Any ideas?
Thanks,
Aaron
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.
Peter
.
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: "
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?
is working on a reply...