HttpModule server problem [modified]
-
Hi Any one. I use a httpmodule for urlRewriting in my web site. At local i use a "SimpleRewriter" class in App_code and Set Webconfig as here: add name="SimpleRewriter" type="SimpleRewriter, App_Code" But When i Upload my site on server it doesn't work and give Some Error as "Page Requested not found". I think on server asp.net doesn't have reach to my module and cant access it. Any help? Thanks.
sepel
modified on Friday, November 28, 2008 9:02 AM
-
Hi Any one. I use a httpmodule for urlRewriting in my web site. At local i use a "SimpleRewriter" class in App_code and Set Webconfig as here: add name="SimpleRewriter" type="SimpleRewriter, App_Code" But When i Upload my site on server it doesn't work and give Some Error as "Page Requested not found". I think on server asp.net doesn't have reach to my module and cant access it. Any help? Thanks.
sepel
modified on Friday, November 28, 2008 9:02 AM
Hi sepel, I am facing the same problem. Did you able to resolve this problem. If yes, then please send me the details of the same. Thanks in advance. Regards Vinit
ok
-
Hi sepel, I am facing the same problem. Did you able to resolve this problem. If yes, then please send me the details of the same. Thanks in advance. Regards Vinit
ok
-
Hi Thanks for your reply. I made the following changes in the web.config file configuration system.webserver modules add name="CustomModule" type="Samples.CustomModule" modules system.webserver configuration But it still not working. Can you please provide your settings for this? Regards Vinit
ok
modified on Monday, December 8, 2008 9:23 AM
-
Hi Thanks for your reply. I made the following changes in the web.config file configuration system.webserver modules add name="CustomModule" type="Samples.CustomModule" modules system.webserver configuration But it still not working. Can you please provide your settings for this? Regards Vinit
ok
modified on Monday, December 8, 2008 9:23 AM
-
Put your urlRewriter class in App_code folder. And put these line in your module section of webserver section: If it still don't work send me error and your code.
sepel
Hi Thanks for your reply. I put the urlRewriter class in App_code folder as per your suggestion. I made following changes in the web.config file. system.webServer modules add name="HttpErrorHandler" type="AssemblyName.HttpErrorHandler" precondition="managedHandler" modules system.webServer The error was occured as HTTP 404 - File not found Internet Information Services Thanks.
ok
-
Hi Thanks for your reply. I put the urlRewriter class in App_code folder as per your suggestion. I made following changes in the web.config file. system.webServer modules add name="HttpErrorHandler" type="AssemblyName.HttpErrorHandler" precondition="managedHandler" modules system.webServer The error was occured as HTTP 404 - File not found Internet Information Services Thanks.
ok
Hi. sorry for dellay. First visit this link: http://ruslany.net/2008/09/wildcard-script-mapping-and-iis-7-integrated-pipeline/[^] Make sure if you set namespace for your code you must set it in app.config. For me i have a single class named SimpleRewriter without any namespace so i set it: If it works on local? what's your iis version?
sepel
-
Hi. sorry for dellay. First visit this link: http://ruslany.net/2008/09/wildcard-script-mapping-and-iis-7-integrated-pipeline/[^] Make sure if you set namespace for your code you must set it in app.config. For me i have a single class named SimpleRewriter without any namespace so i set it: If it works on local? what's your iis version?
sepel
Yes, I set it in the web.config. My local IIS version is 5.1. thanks
ok