View Full Version : Handler for URL Rewriting
connectingindustry
06-17-2009, 10:18 PM
Hello,
I am using httphandler for URL rewriting and added (BusinessProfileRedirect.cs) in the root
<httpModules>
<add name="BusinessProfileRedirectModule" type="ConInd.WebApp.BusinessProfileRedirect, ConInd.WebApp"/>
</httpModules>
in web config to call it. The page is working on my local mashine and other server but is not working upon discoundASP.NET server please help thanks in advance.
Ramses
06-17-2009, 11:12 PM
Are you getting any specific errors that may indicate the problem that you're having?
connectingindustry
06-17-2009, 11:17 PM
no its just displaying discountasp.net error page for page cannot be displayed and asking for check url.
It is generating error
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
You can see the error
http://www.connectingindustries.com/Joe
Please do the needful
connectingindustry
06-18-2009, 06:29 AM
Hi,
I am using handler for URL rewriting it is working on my mashine and on one other server but is not working on discountasp server i am using
HandleBeginRequest for handling and other imp code along with this
In web config i have added:
<httpModules>
<add name="BusinessProfileRedirectModule" type="ConInd.WebApp.BusinessProfileRedirect, ConInd.WebApp"/>
</httpModules>
But the result i am getting is
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
URL for reference : http://www.connectingindustries.com/joe (http://www.connectingindustries.com/joe)
Please help
raymondp
06-18-2009, 02:04 PM
Can you verify if this module requires that it needs to be directly insatlled on the server?
connectingindustry
06-18-2009, 09:48 PM
This module does not need any extra componenet on the server we just need to register it in IIS. I am attaching my class file file which works as handler for reference in .txt format.
connectingindustry
06-18-2009, 10:31 PM
Thanks but i have managed to solve my problem actully including httpmodule i have to add these things also in web config.
<modules runAllManagedModulesForAllRequests="true">
<add name="BusinessProfileRedirectModule" type="ConInd.WebApp.BusinessProfileRedirect, ConInd.WebApp"/>
</modules>
Which i was not adding before now its working you can check
http://www.connectingindustries.com/joe
vBulletin® ©Jelsoft Enterprises Ltd.