Active Query Builder support area

Error ActiveQueryBuilderHandler?action=ping

Avatar
  • updated
  • Completed

Hello,

I have the latest version of AQB ASP.NET Edition 2.10.1. The problem occurs on previous versions as well. This is a screen from MVC asp.net template web project where I installed only AQB component. After few minutes when AQB is not used I get HTTP Error 404 - "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable." The problem occurs on each of browsers. After a few minutes more, session of AQB expired, and the page has to reload.

Could you explain why it's happening? What configuration of AQB has to be changed to solve this problem?

 

 


Avatar
Nati

Firefox catch this error and show message like on the picture.

Avatar
Andrey Zavyalov, PM

This message looks like a good piece of advice. All of the Quick Start Guides contain the following directives. Can you check that your project complies with them?


  1. Apply the necessary changes to the "web.config" file according to your web server version.
    • For IIS 6 or Visual Studio Development Server, add the following module to the "configuration/system.web/modules" section:
      <add name="HttpModule"
      	type="ActiveDatabaseSoftware.ActiveQueryBuilder.Web.Server.HttpModule,
      	ActiveDatabaseSoftware.ActiveQueryBuilder2.Web.Server"/>
      
      and the following assembly to the "configuration/system.web/compilation" section:
      <assemblies>
      	<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
      	PublicKeyToken=B77A5C561934E089" />
      </assemblies>
      
    • For IIS 7 and higher, add the following module to the "configuration/system.webServer/modules" section:
      <remove name="Session" />
      <add name="Session" type="System.Web.SessionState.SessionStateModule"
      	preCondition="managedHandler" />
      <add name="HttpModule" preCondition="integratedMode"
      	type="ActiveDatabaseSoftware.ActiveQueryBuilder.Web.Server.HttpModule,
      	ActiveDatabaseSoftware.ActiveQueryBuilder2.Web.Server" />
      
      and the following assembly to the "configuration/system.web/compilation" section:
      <assemblies>
      	<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
      	PublicKeyToken=B77A5C561934E089" />
      </assemblies>
      
  2. Add the following route to the RegisterRoutes method in the RouteConfig file:
    routes.Add(ActiveDatabaseSoftware.ActiveQueryBuilder.Web.Mvc.Routing.GetRoute());
    
    If you want to change the default HTTP handler URL for this route ("/ActiveQueryBuilderHandler.axd"), you can specify it as a parameter for the GetRoute method.

Avatar
Andrey Zavyalov, PM

Regarding the first described problem (error with the ping action), we've found the reason. It will be fixed in the next build

Avatar
Nati

It's a great news. I look forward to get the latest version of component.

Avatar
Andrey Zavyalov, PM

Hello, Nati.


The bug is fixed now. The new version is available for downloading.


By the way, I see that you still use the old Database Schema control. We've made the new tree-like control in the version 2.10. To use it please replace the AQB:ObjectTree with the AQB:ObjectTreeView control. I hope you'll like it.


In the latest version we also made the ability to resize AQB controls by the end user. You can read this article for details.

Avatar
Nati

Thank you for quick response. I downloaded the latest version and the error with the ping action has been fixed.

Do you have maybe explanation about the session why in my web application session expire after 10 minutes? I haven't found a solution for this bug yet.

Avatar
Andrey Zavyalov, PM
May be because it is specified in your "web.config" file? Have a look at the "system.web" section, "sessionState" tag, "timeout" attribute.
Avatar
Andrey Zavyalov, PM

If it's not specified, please specify it and set to a higher value (60).