asp.net

▼
顯示具有 ConfigureServices 標籤的文章。 顯示所有文章
顯示具有 ConfigureServices 標籤的文章。 顯示所有文章

System.InvalidOperationException: 'Unable to find the required services. Please add all the required services by calling 'IServiceCollection.AddRazorPages' inside the call to 'ConfigureServices(...)' in the application startup code.'

›
這個錯誤訊息表示在您的 ASP.NET Core 應用程序中,缺少必要的服務配置。具體來說,您需要在 ConfigureServices 方法中添加 Razor Pages 的服務。 設定 AddRazorPages 確保在 Program.cs 中的 ConfigureS...
›
首頁
查看網路版
技術提供:Blogger.