Registering http handlers within the same Application context - Sharepoint
This is a discussion on Registering http handlers within the same Application context - Sharepoint ; Hi all,
In a custom control, I am saving something (image data, specifically) in the
Application cache and then retrieving that data in my custom http handler.
Question is where do I register this custom http handler?
People have suggested ...
-
Registering http handlers within the same Application context
Hi all,
In a custom control, I am saving something (image data, specifically) in the
Application cache and then retrieving that data in my custom http handler.
Question is where do I register this custom http handler?
People have suggested that I register it in the "_layouts folder", but that
results in my http handler getting invoked in a DIFFERENT application
context. But, I want my http handler to be invoked right within the same
application context.
Thanks
Praveen
-
RE: Registering http handlers within the same Application context
Hi Praveen,
I built a similar sample and got same result with you. The web part doesn't
share cached object with the HttpHandler since they are not in same ASP.NET
application instance.
I recommand you consider the suggetion I provide in another thread, put the
the images files in a local folder. You can create a virtual folder so that
the image files has a url, or get the image files directly in your http
handler from disk. This solution increases the File I/O on the server, but
consume less memory since we don't have cached object (Normally image
caching may consume much memory in ASP.NET application). I think it is
acceptable solution for current situation.
If there is any further questions, please feel free to let us know.
Sincerely,
Luke Zhang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project ****ysis and dump ****ysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Similar Threads
-
By Application Development in forum Javascript
Replies: 6
Last Post: 09-12-2007, 11:42 AM
-
By Application Development in forum Javascript
Replies: 0
Last Post: 09-11-2007, 05:46 AM
-
By Application Development in forum Java
Replies: 3
Last Post: 08-27-2007, 02:24 AM
-
By Application Development in forum Sharepoint
Replies: 6
Last Post: 11-01-2006, 05:29 AM
-
By Application Development in forum Inetserver
Replies: 2
Last Post: 09-05-2006, 06:26 PM