Tuesday, May 26, 2009

how to execute asp.net files with different extension

Hi again.
You might be wondering that sometimes some websites choose different extensions for their web pages as an instance their web site is build by asp.net and you are supposed to see aspx extension at the end of their address but it is not like that you will see something like acme.

Well here I'm gonna show you how to make change.
thanks to the Microsoft and his new understanding of how to build our life easier, this job will done only in matter of 5 minutes or less .

go to your WINDOWS\Microsoft.NET\Framework\{frame work version}\CONFIG

here you will find the heart of your asp.net config files such as machine.config , web.config , etc...

open web.config

and follow the below XML file

<?xml version="1.0" encoding="UTF-8"?>

<add name="ASPNETLikeHandler-Classic" path="*.acme"
verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll"
requireAccess="Script" preCondition="classicMode,runtimeVersionv2.0,bitness32"
<add name="ASPNETLikeHandler" path="*.acme"
verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory" modules="ManagedPipelineHandler"
requireAccess="Script" preCondition="integratedMode" />

<validation validateIntegratedModeConfiguration="false" />


<add extension=".acme" type="System.Web.Compilation.PageBuildProvider"

<add path="*.acme" type="System.Web.UI.PageHandlerFactory"
verb="*" />

I assume that your familiar with how to make changes in web.config.

1 comment:

  1. Hi,
    I am Programmer with Chessboss.com. Chessboss.com is absolutely FREE chess server where you can play chess,create your own tournament with players online. No Gambling and explicit talk. This website is purely meant to increase the fan-base of chess and for entertainment. I Need your help to promote the FREE chess server around the world. I would like to be on your blog as i found it a useful and informative resource. By adding chessboss.com you will recognized and added as a top resource on our chess server. I really believe in FREE flow of information. I have included the code and title.

    Please email me back with subject line of your URL for the featured resource code. This is to avoid spam and to make sure you get the award.

    I hope you understand and co-operate with us.

    Thank you,
    Sophie Vierra