随笔分类 -  .NET Core

上一页 1 2 3 下一页

.NET Core 学习
The library 'hostpolicy.dll' required to execute the application was not found in
摘要:1、.NET CORE 运行时和IIS handle 不一致,删除不一致的,下载一直的从新安装,注意安装和下载都需要重启程序 阅读全文

posted @ 2021-01-12 22:07 topguntopgun 阅读(1338) 评论(0) 推荐(0) 编辑

ABP 发布以后nlog4.NET写入不到日志文件里
摘要:1、权限问题,选择IIS User用户,everyone 用户,选择完全控制,记住是完全控制,让后选中app_data文件夹设置权限 阅读全文

posted @ 2020-12-06 13:06 topguntopgun 阅读(217) 评论(0) 推荐(0) 编辑

ABP 生成Application.xml 文件无法复制到Host目录下面
摘要:1、application项目生成的文件地址选择项目地址,而不是bin目录,生成后会自动跑到ebug/Release目录,文件选择始终运行复制,放到bin下面发布就报错 阅读全文

posted @ 2020-11-02 14:33 topguntopgun 阅读(156) 评论(0) 推荐(0) 编辑

ABP 数据迁移 System.Exception: Could not find content root folder!
摘要:私自改项目名称造成的,改回去,哈哈 阅读全文

posted @ 2020-10-26 21:01 topguntopgun 阅读(98) 评论(0) 推荐(0) 编辑

PostgreSQL数据库忘记密码
摘要:1、找到程序安装目录,找到配置文件 改成trust,然后打开pgadmin,重新连接, 不需要登录密码直接连接 从新设置密码,关闭后从新登录 阅读全文

posted @ 2020-10-17 22:49 topguntopgun 阅读(824) 评论(0) 推荐(0) 编辑

.ne core 3.1部署各种坑,大家自己看看
摘要:1、下载地址 https://dotnet.microsoft.com/download/dotnet-core/3.1 2、报错 IIS部署Asp.Net Core 项目运行时报错,处理程序“aspNetCore”在其模块列表中有一个错误模块“AspNetCoreModuleV2" 下载最新的ho 阅读全文

posted @ 2020-07-24 10:54 topguntopgun 阅读(278) 评论(0) 推荐(0) 编辑

Unhandled Exception: System.ArgumentNullException: Value cannot be null.
摘要:.net core 程序部署,报错,找到程序所在目录运行,否则会报错 Unhandled Exception: System.ArgumentNullException: Value cannot be null.Parameter name: value at System.Boolean.Par 阅读全文

posted @ 2020-06-23 06:53 topguntopgun 阅读(2900) 评论(0) 推荐(0) 编辑

Win10 家庭版安装docker
摘要:1、win10 家庭版 不支持hyper -v,无法直接下载软件安装 2、win7、win8 等需要利用 docker toolbox 来安装,国内可以使用阿里云的镜像来下载,下载地址:http://mirrors.aliyun.com/docker-toolbox/windows/docker-t 阅读全文

posted @ 2020-06-08 15:53 topguntopgun 阅读(283) 评论(0) 推荐(0) 编辑

SQLSERVER:Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.
摘要:1、Max Pool Size 默认为100。 2、查看当前数据库连接数量, select * from sysprocesses where dbid= db_id('数据库名称') 结果为190, 3、添加数据库查询的最大连接数量 Data Source=.;Initial Catalog=i_ 阅读全文

posted @ 2020-04-08 11:23 topguntopgun 阅读(717) 评论(0) 推荐(0) 编辑

.NET CORE 部署3
摘要:1、缺少证书 In the process of installing Microsoft .NET Core SDK 3.0.100-preview, error ocurred and prompted "A file that is required cannot be installed b 阅读全文

posted @ 2020-03-17 16:42 topguntopgun 阅读(398) 评论(0) 推荐(0) 编辑

InvalidOperationException: Cannot create a DbSet for 'IdentityUserClaim<string>' because this type is not included in the model for the context.
摘要:An unhandled exception occurred while processing the request. InvalidOperationException: Cannot create a DbSet for 'IdentityUserClaim<string>' because 阅读全文

posted @ 2020-02-05 18:44 topguntopgun 阅读(2149) 评论(0) 推荐(0) 编辑

.NET CORE部署各种问题
摘要:1、安装运行时以后,执行dotnet --version查看版本提示 丢失api-ms-win-crt-runtime-l1-1-0.dll, 当本地api-ms-win-crt-runtime-l1-1-0.dll 版本过低或者不存在时就会出现此问题。那么怎么解决问题呢, 首先把C:\Window 阅读全文

posted @ 2019-11-06 15:58 topguntopgun 阅读(372) 评论(0) 推荐(0) 编辑

.NET CORE AutoMapper使用
摘要:1、通过nuget安装AutoMapper,版本是7.0.1, 安装AutoMapper.Extensions.Microsoft.DependencyInjection 版本是4.0.1 不是以上版本的容易报错 2、startup注入automapper services.AddAutoMappe 阅读全文

posted @ 2019-10-26 22:09 topguntopgun 阅读(567) 评论(0) 推荐(0) 编辑

.NET CORE 配置Swagger文档
摘要:1、先通过NuGet安装Swashbuckle.AspNetCore ,支持.NET core,版本是4.0.1,以上版本好像有些功能不支持 2、startup文件里注入swagger,ConfigureServices 方法注入swagger内容, 以上最坑地方是PlatformServices这 阅读全文

posted @ 2019-10-26 20:36 topguntopgun 阅读(796) 评论(0) 推荐(0) 编辑

windows server 2012 ftp搭建
摘要:1、安装IIS的时候勾选ftp 2、创建ftp站点,先检查21端口是否开放 一定要勾选身份认证,匿名去掉,不然一直登陆不了,也不提示 一直点下一步, 遇到的坑,第一个:出现“打开ftp服务器上的文件夹时发生错误,请检查是否有权限访问该文件夹"错误。 解决方法: 设置IE浏览器>>Internet选项 阅读全文

posted @ 2019-09-30 14:30 topguntopgun 阅读(368) 评论(0) 推荐(0) 编辑

.NET CORE 热更新,否则提示DLL文件在使用中
摘要:1、创建空目录,取名updatesite,里面放置app_ffline.htm文件,网站更新中访问使用,内容随意 2、updatesite目录下面创建Release目录,用于放置更新的dll文件 3、把一下代码放到bat文件里,执行更新操作 @echo offset updatePackRootPa 阅读全文

posted @ 2019-09-03 15:53 topguntopgun 阅读(1766) 评论(0) 推荐(0) 编辑

.NETCore部署步骤
摘要:1、下载.NET CORE运行时 下载地址:https://dotnet.microsoft.com/download 2、windows安装下载的运行时 3、检查.是否安装成功 ,dotnet --version 4、新建IIS网站,总是会报各种各样的错误,找到程序集,执行dotnet 你的程序集 阅读全文

posted @ 2019-08-27 08:59 topguntopgun 阅读(301) 评论(0) 推荐(0) 编辑

关于域名转发proxy_pass
摘要:在配置nginx的时候,有一个需求,访问m.XXX.com的时候,需要实际访问www.YYY.com/m,并且域名不能发生变化。 达成这个需求有两种做法: 第一种就是301跳转,使用rewrite来跳转域名,不过这样域名就会发生变化,与需求不符。 第二种就是用proxy_pass跳转,只要指定跳转目 阅读全文

posted @ 2019-05-17 21:48 topguntopgun 阅读(779) 评论(0) 推荐(0) 编辑

.NET CORE 获取微信支付回调
摘要:1、获取微信支付的回调的数据 Stream stream = HttpContext.Request.Body; byte[] buffer = new byte[HttpContext.Request.ContentLength.Value]; stream.Read(buffer, 0, buf 阅读全文

posted @ 2019-05-15 14:14 topguntopgun 阅读(1177) 评论(1) 推荐(0) 编辑

深入理解IIS的多线程工作机制
摘要:首先让我们来看看IIS里面的这2个数字:最大并发连接数,队列长度。先说这2个数字在哪里看。 最大并发连接数:在IIS中选中一个网站,右键网站名称,在右键菜单中找到并点击【管理网站】->【高级设置】。打开对话框如下图: 队列长度:在IIS中选中【应用程序池】,在应用程序池列表中,右键你想查看的,在右键 阅读全文

posted @ 2019-05-07 11:29 topguntopgun 阅读(196) 评论(0) 推荐(0) 编辑

上一页 1 2 3 下一页

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示