Last post Nov 05, 2012 08:42 AM by BrockAllen
Member
1 Points
12 Posts
Nov 04, 2012 02:35 PM|shankhan|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
20376 Points
6505 Posts
ASPInsiders
MVP
Nov 04, 2012 04:12 PM|BrockAllen|LINK
The handler needs to implement IRequireSessionState or IReadOnlySessionState. No members -- they're just flag interfaces.
Nov 05, 2012 02:34 AM|shankhan|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
189 Points
185 Posts
Nov 05, 2012 02:47 AM|Madha Dhanasekar|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 08:42 AM|BrockAllen|LINK
What's your handler code that implements the interface look like?
Member
1 Points
12 Posts
set session in httphandlers
Nov 04, 2012 02:35 PM|shankhan|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
20376 Points
6505 Posts
ASPInsiders
MVP
Re: set session in httphandlers
Nov 04, 2012 04:12 PM|BrockAllen|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/
Member
1 Points
12 Posts
Re: set session in httphandlers
Nov 05, 2012 02:34 AM|shankhan|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
Member
189 Points
185 Posts
Re: set session in httphandlers
Nov 05, 2012 02:47 AM|Madha Dhanasekar|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
All-Star
20376 Points
6505 Posts
ASPInsiders
MVP
Re: set session in httphandlers
Nov 05, 2012 08:42 AM|BrockAllen|LINK
What's your handler code that implements the interface look like?
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/