DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Migrated ASMX Handler Returning 404 Error

Sort:
You are not authorized to post a reply.





Veteran Member





    I have a site where there is an existing ASMX handler service that I need to ensure still works.  The path is as shown below. 

    ~/system/services/existinghandler.asmx/EndpointName (domain removed so the forums doesn't parse the URL path)

    As you can see, there is an existing path that I need to try and maintain, system/services.  

    Why is DNN intercepting this request and how would you go about forcing DNN to ignore the URL so the handler can process the request? 






    Growing Member





      Did you try adding it to the "ignore URL regex"?






      Veteran Member





        Thanks, John!  I totally forgot about that setting!  

        Here's my updated code, just in case anyone else runs into this. 

        Original (ships with DNN): 

        (?<!linkclick\.aspx.+)(?:(?<!\?.+)(\.pdf$|\.gif$|\.png($|\?)|\.css($|\?)|\.js($|\?)|\.jpg$|\.axd($|\?)|\.swf$|\.flv$|\.ico$|\.xml($|\?)|\.txt$))

        Updated:  

        (?<!linkclick\.aspx.+)(?:(?<!\?.+)(\.pdf$|\.gif$|\.png($|\?)|\.css($|\?)|\.js($|\?)|\.jpg$|\.axd($|\?)|\.swf$|\.flv$|\.ico$|\.xml($|\?)|\.txt$)|\/system\/services\/[^\/]+\.asmx(\/[^\/?]*|$))






        Growing Member





          Did it work?





          Veteran Member





            Posted By johnhenley on 4/23/2024 10:21 AM
            Did it work?

            Yes, it did.  Thanks, John!  😎 

             






            Growing Member





              Incredible!





              Veteran Member





                I think it is so easy to forget about some of these more hidden yet powerful capabilities of DNN. Thanks for the refresher John!

                David Poindexter


                Creator:







                Advanced Member





                  This is exactly why I always recommend reading all the possible forum threads! you learn so much with just a few minutes of reading! Thank you John for pointing suh an important DNN feature.

                  Ing. Marco Alvarado Gómez MSc | Globalode
                  Phone. +506 6049-1880 | WhatsApp. +506 6049-1880 | Email. [email protected]
                  Address. Costa Rica (A Pura Vida place!).
                  You are not authorized to post a reply.

                  These Forums are dedicated to the discussion of DNN Platform.

                  For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

                  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
                  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
                  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
                  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
                  5. No Flaming or Trolling.
                  6. No Profanity, Racism, or Prejudice.
                  7. Site Moderators have the final word on approving / removing a thread or post or comment.
                  8. English language posting only, please.

                  Would you like to help us?

                  Awesome! Simply post in the forums using the link below and we'll get you started.

                  Get Involved