Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. HttpModule server problem [modified]

HttpModule server problem [modified]

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netsysadminquestion
8 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sepel
    wrote on last edited by
    #1

    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

    V 1 Reply Last reply
    0
    • S sepel

      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

      V Offline
      V Offline
      Vinit Sambhare
      wrote on last edited by
      #2

      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

      S 1 Reply Last reply
      0
      • V Vinit Sambhare

        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

        S Offline
        S Offline
        sepel
        wrote on last edited by
        #3

        Hi. I resolve my problem. Set your http module in webserver section for iis7.

        sepel

        V 1 Reply Last reply
        0
        • S sepel

          Hi. I resolve my problem. Set your http module in webserver section for iis7.

          sepel

          V Offline
          V Offline
          Vinit Sambhare
          wrote on last edited by
          #4

          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

          S 1 Reply Last reply
          0
          • V Vinit Sambhare

            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

            S Offline
            S Offline
            sepel
            wrote on last edited by
            #5

            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

            V 1 Reply Last reply
            0
            • S sepel

              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

              V Offline
              V Offline
              Vinit Sambhare
              wrote on last edited by
              #6

              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

              S 1 Reply Last reply
              0
              • V Vinit Sambhare

                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

                S Offline
                S Offline
                sepel
                wrote on last edited by
                #7

                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

                V 1 Reply Last reply
                0
                • S 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

                  V Offline
                  V Offline
                  Vinit Sambhare
                  wrote on last edited by
                  #8

                  Yes, I set it in the web.config. My local IIS version is 5.1. thanks

                  ok

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups