Active Query Builder support area

ASP.NET core without IIS

Avatar
  • updated
  • Completed

Is it possible now with v3 of your ASP.NET control to build a solution that doesn't require IIS? 

Would this article apply to a solution built with your control for ASP.NET core for use with an Apache server?

https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?tabs=aspnetcore2x#when-to-use-kestrel-with-a-reverse-proxy

I tried debugging your AspNetCoreSamples.sln from the v3 trial setup, but get this error:

An error occurred while starting the application.

InvalidOperationException: No public 'Invoke' or 'InvokeAsync' method found.

Microsoft.AspNetCore.Builder.UseMiddlewareExtensions+<>c__DisplayClass4_0.<UseMiddleware>b__0(RequestDelegate next)

  • InvalidOperationException: No public 'Invoke' or 'InvokeAsync' method found.

    • Microsoft.AspNetCore.Builder.UseMiddlewareExtensions+<>c__DisplayClass4_0.<UseMiddleware>b__0(RequestDelegate next)

    • Microsoft.AspNetCore.Builder.Internal.ApplicationBuilder.Build()

    • Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()

  • System.InvalidOperationException: No public 'Invoke' or 'InvokeAsync' method found.
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass4_0.<UseMiddleware>b__0(RequestDelegate next)
       at Microsoft.AspNetCore.Builder.Internal.ApplicationBuilder.Build()
       at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
.NET Framework 4.7.2633.0 X86 v4.0.0.0    |   Microsoft.AspNetCore.Hosting version 2.0.1-rtm-125    |    Microsoft Windows 10.0.1629

 

 

Avatar
Andrey Zavyalov, PM

Hello, Marc.

We need more information to understand the reason for this problem.

1. Do you use ASP.NET Core over classic .NET Framework or pure ASP.NET Core? The current version of AQB can work only over the classic .NET Framework. We are planning to add support for pure Core next month.

2. Does the provided sample work under the Visual Studio with and without IIS on your side? We have tested it in both configurations and it works just fine on our side.

3. Please try to remove the AQB middleware ("app.UseActiveQueryBuilder();" in the Startup.cs file) from your project and check that this problem has gone. This way we will check that this problem relates to Active Query Builder.

Avatar
Andrey Zavyalov, PM

We've found the bug. It will be fixed in the next version.

Avatar
Marc

Our main application is using Tomcat, and we embed our ASP.NET web forms page in an IFRAME so it appears integrated with the rest of our solution. However, on the backend, it is the only thing running on an IIS server that is maintained in each of our 5 development and staging environments. Based on the Microsoft link I provided, it sounds like we could create a reverse proxy with Apache if the AQB solution is pure ASP.NET core, correct? To be honest, I am just now barely familiar with ASP.NET core and need to do some basic homework on that front.

Avatar
Andrey Zavyalov, PM
  • Completed

Support for Tomcat is added.