Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
ASP.NET MVC 6 (ASP.NET 5) 中的 Application_PreSendRequestHeaders 和 Application_BeginRequest
如何在 ASP NET 5 MVC6 中使用这些方法 在 MVC5 中 我在 Global asax 中使用了它 现在呢 也许是入门班 protected void Application PreSendRequestHeaders obj
c
ASPNETCore
aspnetcoremvc
在 ASP.NET Core 3.1 中使用包含“System.Web.HttpContext”的旧项目
我们有一些用 Net Framework编写的遗留项目 应该由由ASP NET Core3 1编写的API项目使用 问题是这些遗留项目正在使用 System Web HttpContext 您知道它不再存在于 net core 中 现在我们
c
ASPNETCore
NetCore
增加在 Azure 上运行的 Dockerized ASP.NET Core 站点的最大上传大小限制?
以下是应用程序的架构 使用 ASP NET Core 编写的 Web API Dockerfile 使用以下命令构建 Web 应用程序microsoft dotnet 2 1 sdk并使用执行 APImicrosoft dotnet asp
Azure
ASPNETCore
azurewebappservice
kestrel
ASP.NET Core Tag Helper Checkbox 不保存未选中的值
我正在使用标签帮助程序在 MVC 表单中添加一个复选框 div class form group div
ASPNETMVC
ASPNETCore
aspnetcore20
taghelpers
ASP.NET Core Serilog 未将属性推送到其自定义列
我有这个设置appsettings json对于我的 Serilog 安装 Serilog MinimumLevel Information Enrich LogUserName Override Microsoft Critical Wr
c
aspnet
ASPNETMVC
ASPNETCore
如何从本地运行的docker容器访问Azure Keyvault?
我有一个包含 ASP NET Core 应用程序的 docker 映像 该应用程序使用 Azure Key Vault 来访问连接字符串等内容 当我在本地运行图像时 出现以下错误 Unhandled Exception Microsoft
Azure
Docker
ASPNETCore
azurekeyvault
azurecli
.NET CORE WEB API 接受整数列表作为 HTTP GET API 中的输入参数
我正在使用 net core 3 Web api 下面是我的操作的样子 它使用 HTTP GET 我想传递几个字段 其中一个字段是整数列表 HttpGet Route cities public ActionResult
ASPNETCore
aspnetcorewebapi
aspnetcore31
使用 NLog .NET Core 将日志记录到 PostgreSQL DB
我尝试将日志记录集成到 NET Core 中的数据库 我能够设置 NLog 并将消息记录到 SQL Server 这很容易 但是当我尝试将 DB 切换到 PostgreSQL 时 似乎没有记录任何内容 以下是startup cs中的代码 p
postgresql
logging
ASPNETCore
NetCore
npgsql
使用 Entity Framework Core 2 将原始 SQL 将存储过程结果映射到 POCO/DTO
我几乎到处寻找 但很难找到解决方案 我花了一周时间使用存储过程创建一个极其复杂的计算查询 我想从该查询中获取结果并将其放入 POCO 类中 类似于我在使用 EF 6 之前所做的操作 将存储过程列名称映射到 POCO DTO https fo
storedprocedures
ASPNETCore
efcore20
Blazor 与 Razor
随着 Blazor 的发明 我想知道这两种语言之间是否存在显着的效率 无论是在代码创建方面还是在代码的实际编译 执行方面 https github com SteveSanderson Blazor https github com Ste
c
Razor
ASPNETCore
Blazor
如果.Net Core可以在Windows上运行,为什么不能在.Net Framework中引用.Net Core DLL?
我明白为什么 Net Framework 可能会在 Net Core IE 中导致问题 因为不存在特定于 Windows 平台的 API 但是为什么不能直接引用 Net Core 作为 Net Framework 中的库呢 如果 Net C
c
NET
WPF
ASPNETCore
NetCore
Azure 应用服务在配置中添加字符串数组
Net core 应用程序并在 Azure 应用服务中部署该应用程序 在我的应用程序中 我有一个包含以下内容的应用程序 settings json 文件 Roles Roles Admins Users 我的 ARM 模板中有以下配置 参数
json
ASPNETCore
appSettings
azureappservice
检测到 NuGet 包的版本冲突
我正在开发 ASP Net core 2 1 Web 应用程序项目 我的解决方案中有 1 个项目和 3 个其他库 它是高级架构 数据访问层 DAL 业务层 BL 公共层 CL 所以我需要添加引用来连接一些库和项目 我已经添加了CL参考我的项
c
aspnet
ASPNETCore
.NET Core MVC 中的可选模型属性绑定
我已经创建了一个AccountModel它具有以下属性 public class AccountModel Required EmailAddress public string Email get set Required StringL
c
ASPNETMVC
ASPNETCore
NetCore
依赖注入错误:在注册类时尝试激活时无法解析类型的服务
我创建了一个 NET Core MVC 应用程序 并使用依赖注入和存储库模式将存储库注入到我的控制器中 但是 我收到错误 InvalidOperationException 尝试激活 WebApplication1 Controllers
c
dependencyinjection
ASPNETCore
aspnetcoremvc
mvc core 2.0,如何通过配置使用appSettings.json文件
今天 我正在尝试新的 asp net core 2 0 但使用 JSON 配置文件时遇到了一些麻烦 我没有在 IConfiguration 配置构造函数属性中注入该文件 在 asp net core 1 1 中 我将在 StartUp 中使
c
ASPNETCore
dependencyinjection
aspnetcore20
当路径长度超过 260 个字符时 System.IO.DirectoryNotFoundException [重复]
这个问题在这里已经有答案了 我有 ASP NET Core MVC 项目 针对 NET 4 62 我正在尝试保存文件 当路径长度低于 260 或 248 我不确定 时 一切正常 但是当路径长度更长时 我会得到一个System IO Dire
c
aspnet
ASPNETCore
netframeworkversion
当实体位于不同项目中时,为什么 Mediatr 不解析方法?
我有一个简单的项目来尝试 Mediatr 问题 当我的处理程序的具体类位于我的 API 的同一项目中时 它就可以工作 但是 当我将该处理程序类放入不同的项目 并且 API 引用该项目 ofc 时 它不会解析注册表 我收到此错误 未找到该类型
c
ASPNETCore
mediatr
检测到的包版本超出依赖性约束:Microsoft.AspNetCore.App 2.1.1
我正在尝试使用以下命令在我的 API 中安装一些软件包 Install Package Microsoft EntityFrameworkCore SqlServer 它抛出一个错误 如下所示 NU1608 Detected package
ASPNETCore
aspnetcorewebapi
如何获取 OpenIdConnectOptions StateDataFormat
我有一个自定义 Open Id Connect 服务器 使用身份服务器4 https github com IdentityServer IdentityServer4 此 SSO 服务器具有用于非标准 Open Id Connect 操作
c
ASPNETCore
openid
1
2
3
4
5
6
...100
»