Everything was all right, in the web.config and in the "< % @ Page " too.
It was still giving me the error.
I made it work doing this:
start -- control panel -- administrative tools -- services -- asp.net state server
by default it is stopped. i started it.