using System;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.Write(”Content-type: text/htmlnn”);
Console.Write(”Hello World!”);
}
}
}

After the build-ing, you will get an executable file. If you try to execute it from console, you will see some text printed out - inluding a ‘hello world!’.

Now the configuration part :)

1. Invoke your IIS - Internet Information Services.
2. On the website, click right button -> Properties
3. Home Directory Tab
4. Configuration Button. ‘Applicaiton Window’
5. Click ‘Add’
6. Now you point your new exe file and give your own extension
7. done :)
8. For testing, create a dummy file with the extension you provided. (content can be anything or empty file)
9. Call it from your browser - like http://localhost/test.cgix
10. You should see ‘Hello World!’ :)

Note: This is not a standard ISAPI extension. Miles to go …

VN:F [1.1.6_502]
Rating: 0.0/5 (0 votes cast)
Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DotNetKicks
  • LinkedIn
  • Live
  • MySpace
  • StumbleUpon
  • Technorati

Related posts:

  1. ASP.NET - Download as ZIP
  2. Simple WPF ViewModel implementaion with VisualBasic.NET
  3. Sample ruby program
  4. Invoke a ASP.NET WebService from Flex
  5. Strip SQL Comments using RegularExpression with C#