
Asp.net
野狼位位
将自己在工作中遇到的问题进行详细的总结。
展开
-
Asp.net core 2.0 发布在IIs上,出现异常
将程序发布在IIs上,在计算机管理中找到IIs的日志,显示302.5异常;在CMD中输出dotnet --version 显示Failed to load the dll from [C:\Program Files\dotnet\host\fxr\1.0.1\hostfxr.dll], HRESULT: 0x80070057】错误异常:解决的方式:http://www.cnblogs.com/x...原创 2018-03-15 16:55:31 · 1051 阅读 · 0 评论 -
Asp.net windows authentication 简单流程
API 程序的认证过程:编写api程序在startup.cs中的configureServices中添加services.AddAuthentication(IISDefaults.AuthenticationScheme)在launchSettings.json中将 :"windowsAuthentication": true, "anonymousAuthentication": tru...原创 2018-03-13 17:40:59 · 1488 阅读 · 0 评论 -
总结Asp.net core2.0的常用知识点(补充中。。。)
在编写zip压缩文件的时候,这里可以使用asp.net core 2.0自带的System.IO.Compression.FileSystem;具体的流程可以参考:https://johnlnelson.com/tag/system-io-compression-filesystem/ https://www.codeproject.com/tips/315115/zip-using-s...原创 2018-03-28 19:35:49 · 587 阅读 · 0 评论 -
.net core 将项目发布到linux上,操作sh脚本
string backOfficePath = brm.BackOfficePath; Console.WriteLine(backOfficePath); string analysisResultPath = brm.AnalysisResultPath; string dataTime = DateTi...原创 2018-07-04 10:34:54 · 2503 阅读 · 3 评论 -
linux asp.net IIs localhost 关联调试
1,将Asp.net的服务在本地使用管理员权限运行2,在IIsh中的config修改applicationhost.config,在IIs上将配置中的config进行修改3,在中将bingding 中添加IIs上服务器的地址4,之后使用管理员权限重启VS就可以了...原创 2018-08-17 10:32:34 · 247 阅读 · 0 评论 -
nlog config配置
<?xml version="1.0" encoding="utf-8" ?><nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" autoReload="true"原创 2018-10-11 19:40:26 · 5420 阅读 · 0 评论