iis-10

ASP.NET returns HTTP 500 instead of 404

落爺英雄遲暮 提交于 2020-04-27 07:28:54
问题 For some reason, my ASP.NET web application returns error 500 (apparently originating from handler "ExtensionlessUrlHandler-Integrated-4.0") when a non-existing route is accessed. This issue has started to occur after I had changed path="*." to path="*" in the <add name="ExtensionlessUrlHandler-Integrated-4.0" ... line of my Web.config file in order to solve another problem (failure to process routes with a dot after the last slash). I cannot change path back to "*." , even though exactly

ASP.NET returns HTTP 500 instead of 404

蓝咒 提交于 2020-04-27 07:26:42
问题 For some reason, my ASP.NET web application returns error 500 (apparently originating from handler "ExtensionlessUrlHandler-Integrated-4.0") when a non-existing route is accessed. This issue has started to occur after I had changed path="*." to path="*" in the <add name="ExtensionlessUrlHandler-Integrated-4.0" ... line of my Web.config file in order to solve another problem (failure to process routes with a dot after the last slash). I cannot change path back to "*." , even though exactly

How do I increase the maximum size for failed request logs?

£可爱£侵袭症+ 提交于 2020-04-17 22:32:31
问题 I am using the Failed Request Tracing component in IIS. One of the logs it has written ends with a LOG_FILE_MAX_SIZE_TRUNCATE error. According to the documentation, this is controlled by the maxLogFileSizeKB settings: If failed request tracing logs exceed this value, IIS will truncate the logs at the maximum file size and specify LOG_FILE_MAX_SIZE_TRUNCATE for the trace event. The default value is 1024. Apparently, I am supposed to be able to configure that value by clicking the Sites node,

HTTP Error 500.31 - ANCM Failed to Find Native Dependencies in IIS

限于喜欢 提交于 2020-04-10 07:50:46
问题 I try to run a Blazor application. Web.Server runs .NET Core 3.0 Web.Client runs .NET Standard 2.0 Web.Shared runs .NET Standard 2.0 After publishing and uploading the application to IIS i get this error: HTTP Error 500.31 - ANCM Failed to Find Native Dependencies Common solutions to this issue: The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found. Event Viewer contains this error message: HTTP Error 500.31 - ANCM Failed to Find Native Dependencies When I

ASP.NET suddenly wants a trailing slash

若如初见. 提交于 2020-04-07 09:29:29
问题 In an ASP.NET application, we have plenty (think, several dozen) of controller classes like this: [RoutePrefix("some/thing/1.0")] public class SomeController : ApiController { [HttpGet] [Route("")] public string GetInfo() { return "hello world"; } [HttpPut] [Route("")] public void StoreInfo(string info) { // ... } } This has been working fine for some weeks, without any issues. We could call those endpoints as follows: GET https://myWebApp/client/some/thing/1.0 Now, with yesterday's nightly

ASP.NET suddenly wants a trailing slash

↘锁芯ラ 提交于 2020-04-07 09:28:08
问题 In an ASP.NET application, we have plenty (think, several dozen) of controller classes like this: [RoutePrefix("some/thing/1.0")] public class SomeController : ApiController { [HttpGet] [Route("")] public string GetInfo() { return "hello world"; } [HttpPut] [Route("")] public void StoreInfo(string info) { // ... } } This has been working fine for some weeks, without any issues. We could call those endpoints as follows: GET https://myWebApp/client/some/thing/1.0 Now, with yesterday's nightly

Attach debugger to local IIS without administrator permission

血红的双手。 提交于 2020-03-23 12:16:25
问题 To be able to attach to w3wp.exe Visual Studio wants to have elevated permissions so I either have to start VS as admin or add my local user to the Administrators group. Is there any other way, another group etc, to be able to attach to w3wp.exe without having elevated permissions? 回答1: Attach debugger to local IIS without administrator permission I am afraid you can NOT do that without administrator permission. According to the ASP.NET Debugging: System Requirements: If you change the ASP

How to create and trust certificate Using OpenSSL?

那年仲夏 提交于 2020-01-24 00:27:35
问题 How to create valid certificate using OpenSSL for using HTTPS binding in IIS ?? It must work in Firefox and all other browsers as well I am using IIS 10 server. And Firefox v70, Firefox Dev edition v72b5, Chrome v79, Edge v44. I want the HTTPS binding to work in all of these browsers. 回答1: Ok. I think, I found out the answer, A certification authourity have to be created to use HTTPS binding and hereby all our certificates will be signed from it. For that download a suitable version of

IIS 10 gives me an “ERR_DISALLOWED_URL_SCHEME” when trying to connect with WS://

喜欢而已 提交于 2020-01-17 05:36:09
问题 I have set up the WebSocket support on the server. I run windows 10 and IIS 10. I tried to add the ws as an allowed protocol in the site, but that did not help. I'm running all on localhost. 回答1: Seems like I missunderstood something. I could not connect directly to the websocket handler. This had to be done in JS, through the WS object. 来源: https://stackoverflow.com/questions/33168633/iis-10-gives-me-an-err-disallowed-url-scheme-when-trying-to-connect-with-ws

Why can't users authenticate after deploying locally the ASP.NET 4.6 application to the IIS 10 server?

核能气质少年 提交于 2020-01-13 20:28:31
问题 In my ASP.NET Web Forms application I am using ASP.NET Identity 2.2 for the membership system. The Development stage works as expected. Users get authenticated and have access to different areas of the website according to their roles. After the deployment to the IIS 10 local server the authentication is overturned. The login is successful and, yet, the user does not authenticate. The Login page loads once again empty and fresh. I know that the login is successful through some test I've made