locked
ISAPI using C# RRS feed

  • Question

  • Can we create ISAPI Extensions using c#?

    (If not please explain the reason)


    sujithsb
    Friday, December 30, 2011 7:15 AM

Answers

  • No, you cannot create an ISAPI extension using only C#.  It's probably possible to create a C++/CLI wrapper that exposes the native ISAPI interface and is implemented internally by classes written in C#. 

    HttpHandler is not unique to IIS7.  They've been supported since ASP.NET 1.0.


    -cd Mark the best replies as answers!
    • Proposed as answer by Carl Daniel Wednesday, January 4, 2012 4:31 PM
    • Marked as answer by Paul Zhou Monday, January 9, 2012 4:19 AM
    Saturday, December 31, 2011 12:12 AM

All replies

  • Yes. You can. Take a look at this article.

    http://mvolo.com/blogs/serverside/archive/2007/08/15/Developing-IIS7-web-server-features-with-the-.NET-framework.aspx

    This one is also useful,

    http://msdn.microsoft.com/en-us/library/ms972974.aspx


    Please mark this post as answer if it solved your problem. Happy Programming!
    Friday, December 30, 2011 8:48 AM
  • Thanks for your reply.

    Using HTTPHandlers we can implement the same functionality of ISAPI extension.But HTTPHandlers are not similar to ISAPI EXtensions.So

    how can i implement this in IIS6 ?

    Can we replace the current code of VC++ ISAPI with the C# code without using the concept of HTTPHandlers

     

     


    sujithsb
    • Edited by sujith sb Saturday, December 31, 2011 7:32 AM
    Friday, December 30, 2011 10:40 AM
  • No, you cannot create an ISAPI extension using only C#.  It's probably possible to create a C++/CLI wrapper that exposes the native ISAPI interface and is implemented internally by classes written in C#. 

    HttpHandler is not unique to IIS7.  They've been supported since ASP.NET 1.0.


    -cd Mark the best replies as answers!
    • Proposed as answer by Carl Daniel Wednesday, January 4, 2012 4:31 PM
    • Marked as answer by Paul Zhou Monday, January 9, 2012 4:19 AM
    Saturday, December 31, 2011 12:12 AM