cost 313 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 进行了简单的用户/密码登录: 现在我尝试添加这个: 我尝试了几种变体,例如以不同格式对权限等进行硬编码。 我进入登录页面,在那里我可以使用默认的用户/密码 ...

错误访问 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 和 ...

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