|
| 1 | +--- |
| 2 | +title: Complex migration scenarios - Deep dive areas |
| 3 | +description: Detailed guidance for complex ASP.NET Framework to ASP.NET Core migration scenarios |
| 4 | +author: twsouthwick |
| 5 | +ms.author: tasou |
| 6 | +ms.date: 6/20/2025 |
| 7 | +uid: migration/fx-to-core/areas |
| 8 | +--- |
| 9 | +# Complex migration scenarios - Deep dive areas |
| 10 | + |
| 11 | +This section provides detailed guidance for migrating complex ASP.NET Framework features and scenarios that require careful consideration and specialized knowledge when moving to ASP.NET Core. |
| 12 | + |
| 13 | +## Overview |
| 14 | + |
| 15 | +While many ASP.NET Framework applications can be migrated to ASP.NET Core following standard patterns, certain areas present unique challenges due to fundamental architectural differences between the frameworks. This section focuses on the most complex migration scenarios that developers commonly encounter. |
| 16 | + |
| 17 | +These deep dive guides address areas where: |
| 18 | + |
| 19 | +* The ASP.NET Core equivalent requires significant architectural changes |
| 20 | +* Multiple interconnected components need to be migrated together |
| 21 | +* Legacy patterns need to be completely reimagined for modern development practices |
| 22 | +* Platform-specific knowledge is required for successful migration |
| 23 | + |
| 24 | +## Complex migration areas |
| 25 | + |
| 26 | +The following guides provide comprehensive coverage of the most challenging migration scenarios: |
| 27 | + |
| 28 | +### [HTTP Modules and Handlers Migration](http-modules.md) |
| 29 | + |
| 30 | +HTTP modules and handlers represent one of the most complex migration scenarios due to fundamental differences in request processing architecture. |
| 31 | + |
| 32 | +**Key challenges:** |
| 33 | +* Understanding the shift from IIS-integrated pipeline to middleware pipeline |
| 34 | +* Migrating complex module interactions and dependencies |
| 35 | +* Handling order-dependent processing logic |
| 36 | +* Converting Web.config-based configuration to code-based setup |
| 37 | + |
| 38 | +**What you'll learn:** |
| 39 | +* [Migrating HTTP Modules](http-modules.md) - Convert IHttpModule implementations to middleware |
| 40 | +* [Migrating HTTP Handlers](http-handlers.md) - Transform IHttpHandler logic for ASP.NET Core |
| 41 | +* [HttpContext Migration](http-context.md) - Adapt to the new HttpContext API surface |
| 42 | + |
| 43 | +### Authentication and Authorization Patterns |
| 44 | + |
| 45 | +Complex authentication scenarios often involve custom implementations that don't map directly to ASP.NET Core's identity system. |
| 46 | + |
| 47 | +**Key challenges:** |
| 48 | +* Migrating custom authentication modules |
| 49 | +* Converting complex authorization logic |
| 50 | +* Handling legacy session management patterns |
| 51 | +* Integrating with existing identity providers |
| 52 | + |
| 53 | +### Legacy Data Access and ORM Migration |
| 54 | + |
| 55 | +Applications with complex data access patterns require careful migration planning. |
| 56 | + |
| 57 | +**Key challenges:** |
| 58 | +* Migrating from Entity Framework 6.x to Entity Framework Core |
| 59 | +* Converting LINQ to SQL implementations |
| 60 | +* Handling connection string management changes |
| 61 | +* Migrating custom data access abstractions |
| 62 | + |
| 63 | +### Configuration and Dependency Injection |
| 64 | + |
| 65 | +ASP.NET Core's configuration and DI systems require significant changes to legacy patterns. |
| 66 | + |
| 67 | +**Key challenges:** |
| 68 | +* Migrating from Web.config to the new configuration system |
| 69 | +* Converting to built-in dependency injection |
| 70 | +* Handling complex service lifetime scenarios |
| 71 | +* Migrating custom configuration providers |
| 72 | + |
| 73 | +## Migration strategy recommendations |
| 74 | + |
| 75 | +When tackling complex migration scenarios: |
| 76 | + |
| 77 | +1. **Start with isolated components** - Begin with self-contained features that have minimal dependencies |
| 78 | +2. **Plan for architectural changes** - Accept that direct port may not be the best approach |
| 79 | +3. **Leverage modern patterns** - Use migration as an opportunity to adopt better practices |
| 80 | +4. **Test thoroughly** - Complex migrations require comprehensive testing strategies |
| 81 | +5. **Consider incremental migration** - Break large migrations into manageable phases |
| 82 | + |
| 83 | +## Getting help |
| 84 | + |
| 85 | +For complex migration scenarios not covered in these guides: |
| 86 | + |
| 87 | +* Review the [ASP.NET Core migration overview](xref:migration/fx-to-core/index) |
| 88 | +* Consult the [ASP.NET Core fundamentals documentation](xref:fundamentals/index) |
| 89 | +* Engage with the community through [GitHub discussions](https://github.com/dotnet/aspnetcore/discussions) |
| 90 | +* Consider professional migration services for mission-critical applications |
0 commit comments