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

  • SEARCH
  • Home
  • 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 6136297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:35:09+00:00 2026-05-23T17:35:09+00:00

First of all I am stumped. I have a search-module for a CMS that

  • 0

First of all I am stumped. I have a search-module for a CMS that runs fine on one site, but it won’t run as it’s supposed to on another site.

I have this code I call both with an Ajax call and simply when loading the search site:

private string GetSearchContent()
    {
        Query q = GetQuery();  

        //for each area, set it up, perform search and render result

        IArea products = new ProductArea(GetEcomExcludedGroupIDs(), GetEcomLanguage()).Search(q);

        IArea pages = new PageArea(GetAreaId())
            .Search(q);

        IArea news = new NewsArea(GetIncludedNewsCategoryIDs())
            .Search(q);            
        ....
    }

The important part here is the Search function. This is implemented in the classes, but for some reason the code won’t be executed.

I have tried splitting the code up so I am sure that is where the error lies. The freaky part is that it does not throw any exceptions, but it just stops executing whenever I try to call the Search function. It doesn’t even enter the function.

The Search function looks like this:

public override IArea Search(Query q)
    {
        log.Debug("Product search");
        ....
    }

The function it overrides is simply an abstract function on an interface that declares the function.

I have tried copying the function to the same class that are executing it with no luck, and I have tried accessing other functions on the classes, and that worked fine.

My question is then. What could cause this behavior? I have tried looking around but couldn’t really find any others with the same problem. And as mentioned before, the exact same code is running smoothly on another site.

I really hope someone can help me get closer to a fix, or at least to understand the problem.

  • 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-23T17:35:10+00:00Added an answer on May 23, 2026 at 5:35 pm

    The question is unanswerable as written. You assert that the Search method never runs, and that the faulty line is this one:

    IArea news = new NewsArea(GetIncludedNewsCategoryIDs()).Search(q);
    

    There are a few different things that could be wrong outside of the Search method:

    • The NewsArea constructor throws an exception
    • The GetIncludedNewsCategoryIDs method throws an exception
    • Either of the above could call into unmanaged code and generate a native Win32 exception, which under some circumstances will simple cause the process to terminate rather than ever returning to managed code.

    You state that “there is no try-catch” — all the more reason to disbelieve your assertion that the method just stops without throwing an exception. Try the following for diagnostic purposes:

    try
    {
        IArea news = new NewsArea(GetIncludedNewsCategoryIDs()).Search(q);
    }
    catch (Exception e)
    {
        Logger.Log("Caught in the act: " + e.ToString());
        throw;
    }
    

    If you’ve run this and still see that the execution stops without logging any exception, then we’ll look at other possibilities.

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

Sidebar

Related Questions

First of all, apologize because I have seen some posts about this, but I
Stumped by this one: I have a function that returns an array of folders
First of all there is probably a question like this already but i couldn't
First of all I want to mention two things, One: My code isn't perfect
First of all, let me say that I am not a professional coder -
this is my first question. This has stumped me for 2 days. I have
I'm stumped. I have an NSMutableDictionary w/ nested dictionaries that I am enumerating through
I have been working on an app all day which has been working fine
I'm relatively(read: stupid newbie) familiar with disassembly but this bit stumped me: I have
I'm just starting with Scala and have run into a problem that has me

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.