Skip to content

Help Needed: Blank Screen Issue with Microsoft Reverse Proxy in .NET CoreΒ #501

@rubenc57

Description

@rubenc57

Hi everyone,

I'm currently working on incrementally updating my WebForms website using the Microsoft Reverse Proxy in a new .NET Core application. I've added the necessary services in program.cs, but when I run the app, I encounter a blank screen. Here is the relevant code snippet from my program.cs:

builder.Services.AddSystemWebAdapters()
.AddJsonSessionSerializer(options =>
{
options.RegisterKey("MachineName");
options.RegisterKey("SessionStartTime");
//options.RegisterKey("DemoItem");
})
.AddRemoteAppClient(options =>
{
options.RemoteAppUrl = new(builder.Configuration["ProxyTo"]);
options.ApiKey = builder.Configuration["RemoteAppApiKey"];
})
.AddSessionClient();
If I remove the builder.Services.AddSystemWebAdapters() snippet, index page is shown again

I've double-checked my configuration settings and everything seems to be in place. However, when I execute the app, all I get is a blank screen without any error messages or logs that indicate what might be going wrong.

Details:
Framework: .NET Core
Proxy: Microsoft Reverse Proxy
Configuration:
ProxyTo and RemoteAppApiKey are set in the configuration file.
Troubleshooting Steps Taken:
Verified configuration settings in appsettings.json.
Checked for any runtime errors or logs – none found.
Uncommented the RegisterKey("DemoItem") line – no change.
Has anyone experienced a similar issue or have any ideas on how to resolve this?
Any help or suggestions would be greatly appreciated!

I'm following this tutorial: https://youtu.be/_XG3EYRcgY8?si=2ARtMWNSIcIDEvCO

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions