Click here to Skip to main content
14,427,367 members
Rate this:
Please Sign up or sign in to vote.
See more:
If I add the following code to my web config in the System.Web section. I get a 403 error when trying to connect. Any thoughts?

<sessionState mode="InProc"

If I remove mode and cookieless flag the site comes up.

What I have tried:

taking it out, searching the web, etc...
Updated 14-Jan-20 23:57pm

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

If in doubt, look at the error message. A quick google tells you what you need to know:
403 error - Google Search[^]
Error 403 Means "Forbidden" - you don't have permission to access some resource on that page, or the page itself.
At a guess, it's in a folder that requires a user to log in with a specific role, but since we don't have any access to your codebase we can't tell.
Compare that page with a working page (probably in a different folder) and compare the web.config files to see if there is any security info in them.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100