Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6352729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:16:41+00:00 2026-05-24T22:16:41+00:00

I have dynamic CMS-driven (custom rolled, I know, wheels, etc. but not my decision!)

  • 0

I have dynamic CMS-driven (custom rolled, I know, wheels, etc. but not my decision!) site, which uses an HttpModule to direct content. I have found that .asmx resources were not working. After investigation, I figured out that this was because I had essentially overridden the handler by taking the request out of the overall pipeline.

So I am now detecting if the resource exists and is an .asmx file, and handling accordingly. Which I think is to create a WebServiceHandler using WebServiceHandlerFactory and then remapping it.

This works fine with a ?wsdl querystring, but ask for the URI itself and you get (at point indicated by asterisks):

System.InvalidOperationException was unhandled by user code
Message=Failed to handle request.
[snip]
InnerException:
System.InvalidOperationException
Message=Unable to handle request.
Source=System.Web.Services
InnerException: System.Web.HttpException
Message=The file ‘/DefaultWsdlHelpGenerator.aspx’ does not
exist.

Note the final InnerException. This thread appears to suggest a corrupt .NET Framework install, but the file is present in the 4.0 Config folder. I suspect a mistake on my part. Am I remapping incorrectly?

public class xxxVirtualContentHttpModule : xxxHttpModule
{
        protected override void OnBeginRequest(IxxxContextProvider cmsContext, HttpContext httpContext)
        {
            string resolvePath = httpContext.Request.Url.AbsolutePath;

            // is path a physical file?
            IRootPathResolver rootPathResolver=new HttpServerRootPathResolver(httpContext.Server);
            string serverPath = rootPathResolver.ResolveRoot("~" + resolvePath);

            if (File.Exists(serverPath))
            {
                if (Path.GetExtension(serverPath).Equals(".asmx", StringComparison.CurrentCultureIgnoreCase))
                {
                    WebServiceHandlerFactory webServiceHandlerFactory = new WebServiceHandlerFactory();
                    IHttpHandler webServiceHttpHandler = webServiceHandlerFactory.GetHandler(httpContext, "Get", resolvePath, serverPath); // *****

                    httpContext.RemapHandler(webServiceHttpHandler);
                }
            }

        }

Update

I have removed all references to the HttpModules and this issue still occurs, meaning it has nothing to do with the CMS portion of the system.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T22:16:42+00:00Added an answer on May 24, 2026 at 10:16 pm

    Solved it.

    There seems to be a new configuration added to web.config:

    <system.web>
        <webServices>
            <wsdlHelpGenerator href="DefaultWsdlHelpGenerator.aspx" />
        </webServices>
    </system.web>
    

    Removed this, and it all works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a CMS site that uses dynamic navigation. There is one
I have a site which contains around 3000 static and dynamic pages. I think
I have dynamic array filled with bytes, which are read from .raw file with
I have a Dynamic Data Entities Web Application that uses a database with GUIDs
I have a dynamic query which I call and I put the Result set
I have a CMS app that allows custom fields to be added. One type
I have asked this question in Radiant CMS google group, but no one answered
I'm building a CMS on a SaaS principle. I have my webserver (dynamic dedicated)
we have a static, non-wicket CMS website and we want to include a dynamic
I have a small site I developed for a friend that uses ASP.Net MVC

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.