Starts in:
2 DAYS
3 HRS
51 MIN
51 SEC
Starts in:
2 D
3 H
51 M
51 S

Activities of "dwoodard"

This is now working.

I tried following what was discussed in https://support.abp.io/QA/Questions/1421/HTTP-deploy, but still unable to get the app working. There is something wrong with the redirect, it never redirects off of the login page.

I have a very similar problem. What document covers adding the production servers? Where do I add them?

Found this in the logs:

2021-05-24 22:20:30.702 -05:00 [ERR] scope is missing {"ClientId":"Wms_Swagger","ClientName":"Wms_Swagger","RedirectUri":"https://xx.xx.51.47:44330/swagger/oauth2-redirect.html","AllowedRedirectUris":["https://xx.xx.51.47:44330/swagger/oauth2-redirect.html"],"SubjectId":"anonymous","ResponseType":"code","ResponseMode":"query","GrantType":"authorization_code","RequestedScopes":"","State":"TW9uIE1heSAyNCAyMDIxIDIyOjIwOjMwIEdNVC0wNTAwIChDZW50cmFsIERheWxpZ2h0IFRpbWUp","UiLocales":null,"Nonce":null,"AuthenticationContextReferenceClasses":null,"DisplayMode":null,"PromptMode":"","MaxAge":null,"LoginHint":null,"SessionId":null,"Raw":{"response_type":"code","client_id":"Wms_Swagger","redirect_uri":"https://xx.xx.51.47:44330/swagger/oauth2-redirect.html","state":"TW9uIE1heSAyNCAyMDIxIDIyOjIwOjMwIEdNVC0wNTAwIChDZW50cmFsIERheWxpZ2h0IFRpbWUp"},"$type":"AuthorizeRequestValidationLog"} 2021-05-24 22:20:30.702 -05:00 [ERR] Request validation failed

However, I have no idea what I am supposed to do about this.

thx,

Ended up following this article: Fixing .NET Core tool update issues

In short, had to manually delete c:\Users<username>.dotnet\tools\abp-suite.exe

And then run the install command again.

Thanks. I disabled Telerik as directed. Geting a different error now:

Tool 'volo.abp.suite' failed to update due to the following:
Failed to create shell shim for tool 'volo.abp.suite': Command 'abp-suite' conflicts with an existing command from another tool.
Tool 'volo.abp.suite' failed to install.

@jackmcelhinney thanks! I also had to clear my browser cache and every worked as expected. Appreciate your help!

Okay, I have at least got a somewhat working example.

    static class Program
    {

        private static IHost _host;
        private static IAbpApplicationWithExternalServiceProvider _application;

        [STAThread]
        static void Main()
        {
            Application.SetHighDpiMode(HighDpiMode.SystemAware);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //
            // Create host and application
            //
            _host = Host
                .CreateDefaultBuilder(null)
                .UseAutofac()
                .UseSerilog()
                .ConfigureServices((hostContext, services) =>
                {
                    services.AddApplication<WmsHttpApiClientModule>();
                    services.AddScoped<Form1>();
                }).Build();
            _application = _host.Services.GetService<IAbpApplicationWithExternalServiceProvider>();



            //
            // Startup
            //
            Log.Logger = new LoggerConfiguration()
#if DEBUG
                .MinimumLevel.Debug()
#else
                .MinimumLevel.Information()
#endif
                .MinimumLevel.Override("Microsoft", LogEventLevel.Information)
                .Enrich.FromLogContext()
                .WriteTo.Async(c => c.File("Logs/logs.txt"))
                .CreateLogger();

            try
            {
                Log.Information("Starting WinForms host.");
                _host.StartAsync();
                _application.Initialize(_host.Services);

                var form1 = _host.Services.GetService<Form1>();
                
                Application.Run(form1);

            }
            catch (Exception ex)
            {
                Log.Fatal(ex, "Host terminated unexpectedly!");
            }
            finally
            {
                Log.CloseAndFlush();
            }


            //
            // Clean up after main form closes
            //
            _application.Shutdown();
            _host.StopAsync();
            _host.Dispose();

        }
    }

hi @dwoodard

I think there is no problem if Winforms can use the module system of abp. There is no example for now.

Thanks. Perhaps I am just don't know what to do. Following the documentation, I did the following:

  1. I created a FooBarHttpApiClientModule
public class FooBarHttpApiClientModule : AbpModule
  1. I added the ConfigureServices method to it.
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.AddHttpClientProxies(
                typeof(FooBarApplicationContractsModule).Assembly,
                RemoteServiceName
            );

            context.Services.Configure<AbpRemoteServiceOptions>(options =>
            {
                options.RemoteServices.Default = new RemoteServiceConfiguration("https://localhost:44330");
            });
        }
  1. I created a FooBarService class
public class FooBarService : ITransientDependency
  1. Now what? Do I instantiate the FooBarHttpApiClientModule? I assume I need to initiate DI, which I can do.

Moved the project over to windows. It is now generating the angular UI components fine.

Showing 1 to 10 of 11 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06