首页 > 其他分享 >.netCoreApi5.0+部署iis站点webconfig配置 HTTP 错误 500.24 - Internal Server Error的解决方法

.netCoreApi5.0+部署iis站点webconfig配置 HTTP 错误 500.24 - Internal Server Error的解决方法

时间:2023-11-07 17:14:21浏览次数:32  
标签:HTTP iis webconfig Server Internal Error

 

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <location path="." inheritInChildApplications="false">
    <system.webServer>
      <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
      </handlers>
      <aspNetCore processPath=".\PLCSYS.APi.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess">
      <environmentVariables>
        <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
      </environmentVariables>
    </aspNetCore>
    </system.webServer>
  </location>
</configuration>

保存为web.config放到iis根目录即可!

标签:HTTP,iis,webconfig,Server,Internal,Error
From: https://www.cnblogs.com/shijiehaiyang/p/17815398.html

相关文章

  • win10定时关机、定时休眠和定时睡眠的命令行【转载自https://blog.csdn.net/conanluff
    1、定时关机#注:/s关机,/t后面接时间,单位是秒shutdown/s/t3600 #一个小时后关机shutdown-a#取消定时关机注:"shutdown/h"是立即进入休眠的命令,但/h参数不能与/t连用,故不能用shutdown实现定时休眠的功能。/h可与/f连用,/f表示强制关闭正在运行的应用程序而不事先警告用户。......
  • nginx配置http跳转https的几种要求和方式记录
    以nginx-1.23.2测试 (80被占用了,测试换成81端口)要求一:nginx端口有443,81,即能访问http访问81,也能https访问。nginx配置如下:server{listen81;listen443ssl;server_namexx.com.cn192.168.3.1127.0.0.1;ssl......
  • GuzzleHttp 超时后处理
     publicfunctionhttpTest(){$url="自己可以写一个模拟地址,例如下面的httpTest2先让他挂起一定的时间,timeout设置超时时间,如果超过timeout的时间会自动抛出异常,去发短信等...";$client=newClient();try{$respo......
  • QT发起http/https请求
    示例1、在.pro工程描述文件中添加网络模块QT+=network2、示例代码#ifndefMAINWINDOW_H#defineMAINWINDOW_H#include<QMainWindow>#include"ui_mainwindow.h"#include<QDebug>#include<QWidget>#include<QObject>#include<QHttpMultiPar......
  • http参数解析
    http传参解析第一种:/delete/{id}前端传参:get、restful;后端接参:@GetMapping、@PathVariable第二种:/delete?id=11前端传参:get、params;后端接参:@GetMapping、@RequestParam第三种:{id:1}前端传参:post、data;后端接参:@PostMapping、@Req......
  • 异常详细信息: System.Web.HttpException: 服务器太忙
    HTTP双连接限制HTTP规范表明,一个HTTP客户端与任一服务器最多可以同时建立两个TCP连接。这可以防止单个浏览器在浏览某个页面(例如,具有120个嵌入的缩略图)时,由于连接请求过多而使服务器负载过重。此时,浏览器将仅创建2个连接,然后通过这两个管道开始发送120个HTTP请求,而......
  • http://localhost:xxxxx/sockjs-node/info?t=1699323049868
    http://localhost:xxxxx/sockjs-node/info?t=1699323049868 sockjs-node是一个JavaScript库,提供跨浏览器JavaScript的API,创建了一个低延迟、全双工的浏览器和web服务器之间通信通道。解决办法: 配置devServer,然后重启项目1.在vue.config.js中找到devServer中加入 host:'l......
  • requests-mock:轻松模拟HTTP请求的利器
    一、简介requests-mock一个python库,用于单元测试中模拟HTTP请求的响应,它可以进行来模拟接口的各种场景。安装:pipinstallrequests-mock二、使用方法模拟post请求 importrequestsimportrequests_mockdeftest_01():withrequests_mock.Mocker()as......
  • vue修改http请求头_vue-resouce设置请求头的三种方法
    vue修改http请求头_vue-resouce设置请求头的三种方法本文主要介绍了vue-resouce设置请求头的三种方法,分享给大家,具体如下:第一种:在Vue实例中设置varvm=newVue({el:'#rrapp',data:{showList:true,title:null},http:{root:'/',headers:{token:tok......
  • HttpClient报错 org.apache.http.NoHttpResponseException : 10.1.1.0:13001 failed t
    一、问题描述使用HttpClient并发调用http接口,并发量稍微大一点就会报错org.apache.http.NoHttpResponseException:10.1.1.0:13001failedtorespond 二、排查过程最开始怀疑是服务端连接过多,拒绝请求了,监控发现服务端并没有多少连接找运维搭建了一个新环(只有我们请求服务端),......