cost 223 ms
添加 wcf 端點時 Visual Studio 2017 .net 核心項目引導程序錯誤

[英]Visual Studio 2017 .net core project bootstrapper error when adding wcf endpoint

在ASP.NET Core 2.2 Class Library Project中,我正在嘗試更新已添加的連接服務中的服務。 問題陳述: 當我嘗試更新/添加 WCF 服務時,我遇到以下錯誤(快照在問題下方添加)。 這似乎是引導程序的一些問題。 但錯誤信息不是很清楚地理解這個問題。 示例端點 URL: ...

NHibernate 創建條件,在具有可為空外鍵的相關表上添加限制

[英]NHibernate create criteria, add Restrictions on related table with nullable foreign key

我使用 NHibernate (5.2.5) 在 .NET core 2.2 中開發一個 Api 項目表 A 具有來自表 B 的可為空的外鍵 我需要創建一個條件來過濾表 A,使用指向表 B 的可為空的外鍵(不為空),其中表 B 中的狀態為 3 這是我嘗試過的東西: 還有 and 運算符 但這是我得 ...

返回類型為字符串時,NSwagStudio 反序列化錯誤

[英]NSwagStudio deserializing error when return type is string

我遇到以下錯誤:當 api 返回類型為純字符串時,NSwagStudio 會生成一個 typescript 客戶端,該客戶端試圖反序列化 json。 我正在使用 .netCore 2.2 和 NSwagStudio 13.16.1 生成的客戶端是: 而 API 具有以下裝飾器: 如您所見,客戶端正在 ...

作為獨立應用程序運行時找不到 ASP.NET Core MVC 視圖

[英]ASP.NET Core MVC View not found when running as a standalone application

我有一個案例,當 ASP.NET Core 2.2 應用程序的啟動過程發生在庫中時。 應用程序調用該庫來構建和運行主機。 庫中的設置代碼將應用程序本身作為 ApplicationPart 添加到 ASP.NET Core MVC,以便應用程序也可以定義 ASP.NET Core MVC 控制器和視 ...

Azure Active Directory in .NET Core 2.2 Web-App | 簽名無效/未找到簽名密鑰

[英]Azure Active Directory in .NET Core 2.2 Web-App | the signature is invalid / signature key was not found

對於現有的 Angular 和 .NET Core 2.2 應用程序,我配置了可選的 Microsoft Azure AD 登錄,但 IIS 服務器告訴我令牌的簽名無效。 這可以在對帶有 [Authorize] 注釋的 API 的請求中看到: 在成功登錄組織帳戶后,我復制了 Microsoft 服務 ...

ASP.NET 核心 - Azure 活動目錄身份驗證 - 無法從以下位置獲取配置:'System.String'

[英]ASP.NET Core - Azure Active directory Authentication - Unable to obtain configuration from: 'System.String'

我有一個 .NET Core 2.2 / Angular 10 應用程序,我想在其中實現 Azure AD 登錄。 該應用程序已經使用 JWT 進行了簡單的用戶/密碼登錄: 現在我嘗試添加這個: 我嘗試了幾種變體,例如以不同格式對權限等進行硬編碼。 我進入登錄頁面,在那里我可以使用默認的用戶/密碼 ...

這些 HttpClient 調用是否被並行調用?

[英]Does these HttpClient call be called in parallel?

我有一個 .NET Core web 應用程序,一旦調用 web 方法(即 Test()),調用另一個遠程 Z7D135DAAZ77D105724。 基本上,我是這樣做的(這是一個 POST 示例,在 web 方法 Test() 中調用): 問題是:如果我的 Web App 中的 Test() 被 ...

.NET 核心:區域屬性路由值未正確傳遞

[英].NET Core : Areas attribute route value not passed correctly

帶參數返回的區域路由鏈接 代替 這反過來分散了我的界面,同時我使用標准的 ASP.NET 標簽助手鏈接生成器asp-action="edituser" asp-controller="home" asp-area="admin" asp-route-id="@user.Id" 難道我做錯了什么? ...

錯誤訪問 XMLHttpRequest at file from origin has been blocked by CORS policy

[英]error Access to XMLHttpRequest at file from origin has been blocked by CORS policy

我在 asp.net 核心應用程序 2.2 上工作,從服務器路徑下載文件時遇到問題,如下所示 我嘗試的是: 從服務器下載 static excel 文件時出現錯誤,為什么顯示此錯誤以及如何解決問題? 更新后的帖子我為我的啟動應用程序設置了核心策略 前端是 angular 8 如下: 鏈接生成如下: ...

覆蓋 DistributedMemoryCache 以使用 DistributedSQLCache

[英]Overriding DistributedMemoryCache to Use DistributedSQLCache

我有一個使用 DistributedMemoryCache 的 aspnet core 2.2 應用程序,我想將其更改為 DistributedSQLCache,而不需要重新編譯和更改該應用程序(它已經編譯),所以我想向它添加一個插件(它有一個插件系統)來更改從內存緩存到 SQL 緩存的緩存。 這可 ...

C# .NET Core 2.2 API not receiving parameter object being sent from Angular front end

[英]C# .NET Core 2.2 API not receiving parameter object being sent from Angular front end

我正在嘗試從 Angular 向我的 C# ASP.NET Core 2.2 后端發出發布請求。 API 被擊中,但我的參數沒有被 API 接收,而是被初始化為 null。 當我檢查網絡選項卡時,我的參數正在發送並且與 function 中的參數類型匹配,但它仍然顯示為 null。 我也嘗試向參 ...

將我的 ASP.NET Core 2.2 升級到 3.1 時找不到類型或命名空間名稱“OpenIdConnectOptions”

[英]The type or namespace name 'OpenIdConnectOptions' could not be found while upgrading my ASP.NET Core 2.2 to 3.1

我正在嘗試將我的 ASP.NET Core 2.2 升級到 3.1,但出現以下錯誤。 不知道如何解決它。 我收到以下錯誤嚴重性代碼說明項目文件行抑制 State 錯誤 CS0234 命名空間“Microsoft.AspNetCore.Authentication”中不存在類型或命名空間名稱“Ope ...

.net core 2.2 get action and controller name in logging middleware without ControllerContext

[英].net core 2.2 get action and controller name in logging middleware without ControllerContext

我正在 .net 核心 2.2 中編寫中間件。 我想在中間件中獲取 Action 的名稱和 Controller 的名稱。 我不能使用ControllerContext因為它當時不可用。 這是核心 3.1 中的解決方案, 在 middleware.Net Core 中讀取 Controller 和 ...

如何使用 Include - ThenInclude 查詢 IQueryable?

[英]How to query IQueryable with Include - ThenInclude?

在 .NET Core 2.2 中,我堅持過濾IQueryable構建為: 在多對多的關系中。 實體模型如下: 基於this SO answer我設法像這樣創建 LINQ : 但我需要找到所有端口記錄,其中: VesselsPorts.Arrival > DateTime.UtcNow.Ad ...

添加WCF參考in.Net Core 2.2 Web API失敗

[英]Adding WCF Reference in .Net Core 2.2 Web API failed

我正在使用 VS 2017、.Net Core 2.2 API 項目,其中一些 WCF 引用了其他服務。 一切正常,直到我在同一台機器上安裝了 VS 2019。 現在嘗試Add Connected Service時,它在步驟中停留了一段時間: 然后失敗並顯示以下錯誤消息。 ...

asp.net core 2.2 web api “No authenticationScheme was specified, and there was no DefaultChallengeScheme found” error Azure AD

[英]asp.net core 2.2 web api “No authenticationScheme was specified, and there was no DefaultChallengeScheme found” error Azure AD

配置看起來不錯。 但是在嘗試添加基於 Azure AD 的身份驗證時出現錯誤。 Startup.cs => ConfigureServices Startup.cs => Configure Message: "No authenticationScheme was specified ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM