-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Description
Description
Hi Wade
Step 2 in Configure ASP.NET Framework Application is out of date. It generates a
warning CS0618: 'SystemWebAdapterConfiguration.AddSystemWebAdapters(HttpApplication)' is obsolete: 'Prefer using HttpApplicationHost.RegisterHost(...) instead'
I believe the code should be something like this:
HttpApplicationHost.RegisterHost(builder =>
{
builder.AddServiceDefaults();
builder.RegisterWebObjectActivator();
builder.AddSystemWebAdapters()
.AddVirtualizedContentDirectories();
builder.AddSystemWebAdapters()
.AddRemoteAppServer(options =>
{
// ApiKey is a string representing a GUID
options.ApiKey = System.Configuration.ConfigurationManager.AppSettings["RemoteAppApiKey"];
});
});
Also, we are having trouble trying to get the recipe to work. We have adapted the https://github.com/dotnet/systemweb-adapters/tree/main sample to work using a domain setup (have set up two domains as framework.noho.ca and core.noho.ca) on our dev machines. We can log in to framework and then when we try to load the core app, it does not pick up the login details even though it does have the shared cookie. There are no errors and we are a bit fuzzy regarding the communication mechanism between the two.
Do you know of any example code which show the domain version using the manual setup? We got the Aspire version to run from the sample using the local host and the dashboard and could see login in the core app, and are trying to get a version running that we could apply to our main app. It is a very large project with a million lines of combined code.
Page URL
Content source URL
Document ID
f3b2ce81-5438-1d1a-1c2b-6cc9a089a0ea
Platform Id
f8610778-e458-a8a6-8136-0ee8c72f11e8
Article author
Metadata
- ID: f3b2ce81-5438-1d1a-1c2b-6cc9a089a0ea
- PlatformId: f8610778-e458-a8a6-8136-0ee8c72f11e8
- Service: aspnet-core
- Sub-service: migration