Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 05, 2012 12:42 PM by BrockAllen
Member
3 Points
13 Posts
Nov 04, 2012 06:35 PM|LINK
Hi ,
I tried to do this :
tumbnail.Save(context.Server.MapPath("~/images/classifieds/"+ "nail_"+newFileName));
but getting null reference error. how to set session in httphandlers
All-Star
27502 Points
4895 Posts
MVP
Nov 04, 2012 08:12 PM|LINK
The handler needs to implement IRequireSessionState or IReadOnlySessionState. No members -- they're just flag interfaces.
Nov 05, 2012 06:34 AM|LINK
BrockAllen The handler needs to implement IRequireSessionState or IReadOnlySessionState. No members -- they're just flag interfaces.
Im getting this error :
Error 1 The type or namespace name 'IRequireSessionState' could not be found (are you missing a using directive or an assembly reference?)
But its in the main project and system.web is already referenced in that project
391 Points
188 Posts
Nov 05, 2012 06:47 AM|LINK
refer the link
http://stackoverflow.com/questions/1240732/how-can-i-use-session-variable-in-an-httphandler
http://forums.asp.net/t/1720644.aspx/1
Nov 05, 2012 12:42 PM|LINK
What's your handler code that implements the interface look like?
shankhan
Member
3 Points
13 Posts
set session in httphandlers
Nov 04, 2012 06:35 PM|LINK
Hi ,
I tried to do this :
tumbnail.Save(context.Server.MapPath("~/images/classifieds/"+ "nail_"+newFileName));
but getting null reference error. how to set session in httphandlers
BrockAllen
All-Star
27502 Points
4895 Posts
MVP
Re: set session in httphandlers
Nov 04, 2012 08:12 PM|LINK
The handler needs to implement IRequireSessionState or IReadOnlySessionState. No members -- they're just flag interfaces.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
shankhan
Member
3 Points
13 Posts
Re: set session in httphandlers
Nov 05, 2012 06:34 AM|LINK
Im getting this error :
Error 1 The type or namespace name 'IRequireSessionState' could not be found (are you missing a using directive or an assembly reference?)
But its in the main project and system.web is already referenced in that project
Madha Dhanas...
Member
391 Points
188 Posts
Re: set session in httphandlers
Nov 05, 2012 06:47 AM|LINK
refer the link
http://stackoverflow.com/questions/1240732/how-can-i-use-session-variable-in-an-httphandler
http://forums.asp.net/t/1720644.aspx/1
Ragards,
Madha.V
BrockAllen
All-Star
27502 Points
4895 Posts
MVP
Re: set session in httphandlers
Nov 05, 2012 12:42 PM|LINK
What's your handler code that implements the interface look like?
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/