Skip to content

Enable Proxying step 4 generates an error #36082

@cas-matt

Description

@cas-matt

Description

app.ServiceProvider.GetRequiredService<IOptions>() generates an error message:

error CS1061: 'WebApplication' does not contain a definition for 'ServiceProvider' and no accessible extension method 'ServiceProvider' accepting a first argument of type 'WebApplication' could be found (are you missing a using directive or an assembly reference?)

Page URL

https://learn.microsoft.com/en-us/aspnet/core/migration/fx-to-core/inc/remote-app-setup?view=aspnetcore-9.0&pivots=manual

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/migration/fx-to-core/inc/remote-app-setup.md

Document ID

f3b2ce81-5438-1d1a-1c2b-6cc9a089a0ea

Platform Id

f8610778-e458-a8a6-8136-0ee8c72f11e8

Article author

@wadepickett

Metadata

  • ID: f3b2ce81-5438-1d1a-1c2b-6cc9a089a0ea
  • PlatformId: f8610778-e458-a8a6-8136-0ee8c72f11e8
  • Service: aspnet-core
  • Sub-service: migration

Related Issues


Associated WorkItem - 488325

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions