Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
修改 CookieAuthenticationOptions LoginPath OnRedirectToReturnUrl 事件
我的 MVC 6 ASP NET 5 项目中有以下设置 配置方法中的Startup cs app UseCookieAuthentication options gt options AuthenticationScheme Cookie
c
ASPNETMVC
authentication
ASPNETCore
aspnetcoremvc
ASP.NET Core 中的默认日志级别、系统日志级别和 Microsoft 日志级别是什么
默认项目模板具有以下日志记录配置appSettings json Logging IncludeScopes true LogLevel Default Debug System Information Microsoft Informat
aspnet
logging
ASPNETCore
aspnetcoremvc
如何使用反射或其他准确方法获取控制器内当前的 ASP.NET Core 控制器方法名称
我想获取我的当前方法名称ASP NET Core控制器 我尝试通过反射获取方法名称 HttpGet public async Task
c
Reflection
ASPNETCore
aspnetcoremvc
.NET Core:Process.Start() 留下
子进程
我正在构建一个部署在 CentOS 7 2 上的 ASP Net Core netcore 1 1 应用程序 我有一个通过 System Diagnostics Process 调用外部进程 也是使用 net core 构建的控制台应用程序
aspnetcoremvc
NetCore
MVC 6 中的捆绑和缩小
看起来捆绑和缩小不再内置于 MVC 6 中 因为不再有App Start and Bundle Config 最终版本发布后会出现这种情况吗 我猜应该使用 Grunt 因为它似乎已融入 Visual Studio 2015 中 UPDATE
bundlingandminification
ASPNETCore
aspnetcoremvc
读取请求正文两次
我试图读取中间件中的主体以进行身份 验证 但是当请求到达 api 控制器时 对象为空 因为主体已被读取 有没有办法解决 我在中间件中像这样读取正文 var buffer new byte Convert ToInt32 context Re
ASPNETCore
aspnetcoremvc
aspnetcorewebapi
ASP NET Core 2 找不到包“Projectname.Model”的编译库位置
在我的解决方案中 我有两个项目 其中之一是web项目 另一个是Model项目 您可以在下面看到我的解决方案结构 现在 当我运行应用程序时 出现以下错误 InvalidOperationException 找不到包 ContosoUniver
ASPNETCore
aspnetcoremvc
Saml 无 Cookie 保留状态 ASP.NET CORE
var certbase env IsDevelopment AppDomain CurrentDomain BaseDirectory var pathpfx Path Combine certbase xxxxx pfx var pat
ASPNETCore
authentication
aspnetcoremvc
saml
sustainsyssaml2
在开发中运行时,Google Chrome 中未设置 ASP.net core auth cookie
我的解决方案中有三个应用程序 全部内置于 asp net core 1 MVC 6 中 应用程序 1 是一个 MVC 应用程序 用于验证用户身份 应用程序 2 是一个 Angular SPA 应用程序 是解决方案中的主要应用程序 App 3
Googlechrome
cookies
aspnetcoremvc
claimsbasedidentity
如何从 helper/service 访问 ViewContext,通过 ViewImports @injected
我正在编写辅助类并注入 ViewImports with inject HtmlHelperInject TestHelper TestHelper 并注册在Startup ConfigureServices with services A
ASPNETMVC
aspnetcoremvc
在 ASP.NET Core 1.0 上处理大文件上传
当我将大文件上传到 ASP NET Core 中的 Web api 时 运行时会在触发处理和存储上传的函数之前将文件加载到内存中 对于大量上传 这会成为一个问题 因为它既慢又需要更多内存 对于早期版本的 ASP NET有一些文章 http
c
aspnet
ASPNETMVC
ASPNETCore
aspnetcoremvc
ASP.NET 5 MVC6 User.GetUserId() 返回错误的 ID
我在 ASP NET 5 中有一个简单的项目 只有一个注册用户 我尝试通过扩展方法获取当前登录用户的IDGetUserId from using System Security Claims命名空间 不幸的是 这个方法返回给我不存在的ID
c
aspnet
aspnetidentity
aspnetcoremvc
同一解决方案中的 ASP.NET Core 5 MVC/Razor Pages 和 Web API 项目
许多网站分为两部分 www example com 公众MVC https learn microsoft com en us aspnet core mvc overview view aspnetcore 5 0 剃刀页面 https
ASP.NET Core 2 - 使用 IISExpress 使用自定义域名和 ssl 进行开发
我希望能够使用自定义域和 ssl 而不是本地主机进行本地开发 如何在 VS 解决方案中设置自定义域 ssl 而不是 localhost 简单设置 使用服务器 URL 如果您想关联您的服务器以使用分配给服务器 网络主机的所有 IP 地址 那么
ASPNETCore
aspnetcoremvc
aspnetcore20
如何在一个解决方案中为两个单独的项目在 asp.net core 中设置路由?
我创建了两个 asp net core mvc 项目 它们分别工作正常 每一个在其 startup cs 文件中都有自己的路由 当我启动它们时 它们运行良好 我的问题是 如何从第一个项目设置第二个项目路线 我应该在第一个项目中更改哪里 我应
routes
VisualStudio2017
aspnetcoremvc
ASP.NET Core 授权重定向到错误的 URL
我正在尝试运行一个映射了以下路由的 Web 应用程序 app UseMvc routes gt routes MapRoute default WoL controller Account action Login id 如果用户未经过身份
redirect
routes
ASPNETCore
aspnetcoremvc
NetCore
asp.net 5 / mvc 6 中的 PushStreamContent 不起作用
我正在尝试将使用 PushStreamContent 的 Web api 项目 经典 web config 项目 迁移到最新的 asp net 5 Web 应用程序 project json 我的问题是我无法让 PushStreamCont
c
ASPNETCore
aspnetcoremvc
pushstreamcontent
发布到 Azure 失败,出现“无法识别的链接扩展‘contentLibExtension’”错误
我正在尝试使用 Visual Studio 2015 CTP 将 ASP NET MVC 6 应用程序发布到 Azure 并收到以下错误 Publishing with publish method MSDeploy Calling msd
Azure
webdeploy
aspnetcoremvc
visualstudio2015
从 ASP.NET Core 应用程序启动外部进程 (.exe)
我有以下内容 HttpPost public IActionResult LaunchExternalProcess Process Start C Windows System32 calc exe return Ok 这在我的本地计算机
IIS
ASPNETCore
aspnetcoremvc
aspnetcore20
kestrelhttpserver
如何在 Swagger 中显示类属性的 XML 注释 (MVC 6 Web API JsonResult)
我已向我的类成员添加了 XML 注释 但 Swagger 不会在 UI 中显示它们 难道我做错了什么 更新 看起来您无法在中记录您的模型类 Swashbuckle 5 5 3 带有 ApiModel 和 ApiModelProperty 注
aspnetwebapi2
aspnetcoremvc
swagger
SwaggerUI
1
2
3
4
5
6
...22
»