Tuesday, May 26, 2009

how to execute 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 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 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.

No comments:

Post a Comment