Recent Discussions
Need Help Understanding Why .NET SDK and Runtime Were Required for IIS Hosting of ASP.NET
I'm hosting an ASP.NET Core application (v6.0.33) on an AWS virtual machine with IIS. I installed the .NET Hosting Bundle matching the application’s version. After verifying the website runs fine with dotnet run, I encountered an "HTTP Error 500.30 - ASP.NET Core App Failed to Start" when trying to access it via IIS. After troubleshooting extensively—including checking various threads on Stack Overflow, GitHub, and Microsoft forums—I found this articlehttps://www.quickpickdeal.com/coding/http-error-500-30-asp-net-core-app-failed-to-start-with-iis-a-real-world-solut that suggested installing not only the Hosting Bundle but also the .NET SDK and Runtime. Surprisingly, this approach worked. My question is: Why did I need all three components (Hosting Bundle, SDK, and Runtime) to get this application working in IIS? I expected the Hosting Bundle alone to be sufficient for deployment. Could there be a dependency that IIS requires that isn't covered by the Hosting Bundle?78Views0likes0CommentsChunked data through IIS
I am trying to chunk data through iis but it is not happning I tried <rewrite> <outboundRules> <!-- <rule name="Remove Content-Length" stopProcessing="false"> <match serverVariable="RESPONSE_Content-Length" pattern=".*" /> <action type="Rewrite" value="0" /> </rule> --> <!-- <rule name="Add Chunked Encoding" patternSyntax="ECMAScript"> <match serverVariable="RESPONSE_Transfer-Encoding" pattern=".*" /> <action type="Rewrite" value="chunked" /> </rule> --> and <rule name="Transfer-Encoding chunked"> <serverVariables> <set name="RESPONSE_Content-Length" value="" /> <set name="RESPONSE_Transfer-Encoding" value="chunked" /> </serverVariables> <action type="CustomResponse" statusCode="200" /> </rule> and <httpProtocol allowKeepAlive="false"> <customHeaders> <!-- <remove name="Content-Length" /> <add name="Transfer-Encoding" value="chunked" /> --> <add name="X-Content-Type-Options" value="nosniff" /> </customHeaders> </httpProtocol> in these cases in response header transfer-encoding is coming as chunked but response body is not coming306Views0likes4CommentsIIS Logs have Incorrect Date Modified
I have a server that is creating daily IIS logs (stored local) with a timestamp in the Date Modified that have the incorrect date for the "current" log. Example: Today is 9-10-2024, the current log is named correctly(u_ex240910.log), has correct information inside, but the Date Modified Timestamp is 9-9-2024 7:00PM. There is also a log file for u_ex240909.log) which has correct information in it as well. I have dozens of IIS servers, and this is not an issue on the rest of them. The Logging feature in IIS Manager is setup identical on this issue server and working servers so I am stumped. Screenshot of "problem" server. Screenshot of "working" server: Screenshot of Logging setup in IIS Manager(which is identical on both trouble and working servers):212Views0likes3CommentsHow to fix Error System.Web.HttpApplication does not implement IHttpModule in IIS
Hi, I need some help with error "Error System.Web.HttpApplication does not implement IHttpModule" with some steps for diagnose cause this error. Note: MY_SERVER has a single web site called "SitioNuevoVacio2" Context I have a web site called "SitioNuevoVacio2" this contains a single html file called "index.html" with following source code... <html> <body> -- empty web site -- </body> </html> when I browse "SitioNuevoVacio2", I get these error messages: " Server Error in '/' Application. ________________________________________ System.Web.HttpApplication does not implement IHttpModule. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Configuration.ConfigurationErrorsException: System.Web.HttpApplication does not implement IHttpModule. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [ConfigurationErrorsException: System.Web.HttpApplication does not implement IHttpModule.] System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) +11874417 System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +221 System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1103 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +122 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +173 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +255 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +347 [HttpException (0x80004005): System.Web.HttpApplication does not implement IHttpModule.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +552 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +122 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +732 ________________________________________ Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.9195.0 " And Event viewer has this warning: " Event code: 3008 Event message: A configuration error has occurred. Event time: 9/10/2024 8:56:20 a. m. Event time (UTC): 9/10/2024 1:56:20 p. m. Event ID: 5bffbb78122e470a85ffaa557e38532d Event sequence: 1 Event occurrence: 1 Event detail code: 0 Application information: Application domain: /LM/W3SVC/3/ROOT-2-133729557801407411 Trust level: Full Application Virtual Path: / Application Path: C:\inetpub\wwwroot\SitioNuevoVacio2\ Machine name: MY_SERVER Process information: Process ID: 9424 Process name: w3wp.exe Account name: IIS APPPOOL\DefaultAppPool Exception information: Exception type: ConfigurationErrorsException Exception message: System.Web.HttpApplication does not implement IHttpModule. at System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) at System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) at System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) Request information: Request URL: http://localhost:8085/ Request path: / User host address: ::1 User: Is authenticated: False Authentication Type: Thread account name: MY_SERVER\SomeUser Thread information: Thread ID: 12 Thread account name: MY_SERVER\SomeUser Is impersonating: False Stack trace: at System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) at System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) at System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) " I searched in the web and some post suggest check your source code in these files: - web.config - global.asax and find any reference to custom HttpModule, but "SitioNuevoVacio2" only has a single page. I don't know what to do, any suggestions? Technical Specs - SO: windows server 2022 standard 21H2 - IIS: Version 10.0.20438.1 - .NET Framework Version:4.0.30319 - ASP.NET Version:4.8.9195.0 TRY 1. List of 12 Handlers manually created... 1. PageHandlerFactory-ISAPI-4.0_32bit • Request path: *.aspx • Type: C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\aspnet_isapi.dll • Name: PageHandlerFactory-ISAPI-4.0_32bit • Module: IsapiModule • Script Processor: C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\aspnet_isapi.dll • Entry Type: Local 2. PageHandlerFactory-ISAPI-4.0_64bit • Request path: *.aspx • Type: C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\aspnet_isapi.dll • Name: PageHandlerFactory-ISAPI-4.0_64bit • Module: IsapiModule • Script Processor: C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\aspnet_isapi.dll • Entry Type: Local 3. PageHandlerFactory-Integrated-4.0 • Request path: *.aspx • Type: System.Web.UI.PageHandlerFactory • Name: PageHandlerFactory-Integrated-4.0 • Module: ManagedPipelineHandler • Entry Type: Local 4. SimpleHandlerFactory-ISAPI-4.0_32bit • Request path: *.ashx • Type: C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\aspnet_isapi.dll • Name: SimpleHandlerFactory-ISAPI-4.0_32bit • Module: IsapiModule • Script Processor: C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\aspnet_isapi.dll • Entry Type: Local 5. SimpleHandlerFactory-ISAPI-4.0_64bit • Request path: *.ashx • Type: C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\aspnet_isapi.dll • Name: SimpleHandlerFactory-ISAPI-4.0_64bit • Module: IsapiModule • Script Processor: C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\aspnet_isapi.dll • Entry Type: Local 6. SimpleHandlerFactory-Integrated-4.0 • Request path: *.ashx • Type: System.Web.UI.SimpleHandlerFactory • Name: SimpleHandlerFactory-Integrated-4.0 • Module: ManagedPipelineHandler • Entry Type: Local 7. WebServiceHandlerFactory-ISAPI-4.0_32bit • Request path: *.asmx • Type: C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\aspnet_isapi.dll • Name: WebServiceHandlerFactory-ISAPI-4.0_32bit • Module: IsapiModule • Script Processor: C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\aspnet_isapi.dll • Entry Type: Local 8. WebServiceHandlerFactory-ISAPI-4.0_64bit • Request path: *.asmx • Type: C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\aspnet_isapi.dll • Name: WebServiceHandlerFactory-ISAPI-4.0_64bit • Module: IsapiModule • Script Processor: C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\aspnet_isapi.dll • Entry Type: Local 9. WebServiceHandlerFactory-Integrated-4.0 • Request path: *.asmx • Type: System.Web.Services.Protocols.WebServiceHandlerFactory • Name: WebServiceHandlerFactory-Integrated-4.0 • Module: ManagedPipelineHandler • Entry Type: Local 10. ScriptHandlerFactory-ISAPI-4.0_32bit • Request path: *.axd • Type: C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\aspnet_isapi.dll • Name: ScriptHandlerFactory-ISAPI-4.0_32bit • Module: IsapiModule • Script Processor: C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\aspnet_isapi.dll • Entry Type: Local 11. ScriptHandlerFactory-ISAPI-4.0_64bit • Request path: *.axd • Type: C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\aspnet_isapi.dll • Name: ScriptHandlerFactory-ISAPI-4.0_64bit • Module: IsapiModule • Script Processor: C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\aspnet_isapi.dll • Entry Type: Local 12. ScriptHandlerFactory-Integrated-4.0 • Request path: *.axd • Type: System.Web.Handlers.ScriptHandlerFactory • Name: ScriptHandlerFactory-Integrated-4.0 • Module: ManagedPipelineHandler • Entry Type: Local 2. Check, download, install, update and reboot last windows updates. 3. Compare Handlers and Modules between IIS developer server with MY_SERVER note: IIS developer server works fine when I publish "SitioNuevoVacio2" EXPECT After made those verifications and changes IIS works fine and see index.html "SitioNuevoVacio2"Solved329Views0likes8Commentswindows 11 non-admin user IIS Pool access issue in local machine
By creating a non-admin user in Windows 11 home edition, I allowed him full control overinetsrv %SystemRoot%\System32\inetsrv folder, after logging in with this user and running this command from CMD %SystemRoot%\System32\inetsrv\appcmd list apppool /name:poolname/text:state Results show : Unknown. But "poolname" is a pool running. %SystemRoot%\System32\inetsrv\appcmd start apppool /apppool.name:poolname The result shows : "ERROR ( message:The WAS service is not available - try starting the service first. )". But a "WAS" is running.180Views0likes1Comment403 - Forbidden while posting the request to WCF hosted on IIS
I have an ASP.NET web application that uses a WCF service to interact with the database and handle business logic. Under normal load, everything functions as expected. However, when the load increases, the WCF service returns a 403 - Request Forbidden error. I attempted to capture a dump using DebugDiag, but it hasn't provided any useful information. While there are many guides available on capturing dumps, none seem applicable to this particular issue.Solved195Views0likes2CommentsNo remote management of IIS on Server Core
Hi, I have three VMs running on a Server 2022 Hyper-V host: Windows 11 for management, Server 2022 as a domain controller and Server 2022 Core for Exchange 2019. On the DC I installed the optional feature "IIS Management" and downloaded and installed "IIS Manager for Remote Administration 1.2". Access to IIS on Exchange server works without problem. But if I do the same on the Windows 11 VM, I get an error message when trying to connect: An unexpected error occurred, connection was reset. I have tried the following without success: 1. use host name or FQDN of the mail server 2. use IP address of the mail server 3. use ports 80 and 443 (e.g. mailhost:443) 4. complete shutdown of all firewall profiles on both the Windows 11 client and the mail server The mail server's certificate is the original self-signed certificate that is created when Exchange/IIS is installed - I would expect to be asked about the trustworthiness of the certificate, but apparently the connection fails even before the SSL handshake. All four machines are domain members, name resolution and ping work fine. The Windows and IIS logs contain no clues. Several hours of web research have not yet yielded any results. Does anyone have an idea / a starting point? Many thanks in advance and best regards Stefano192Views0likes1CommentCan't add more than 60 performance counters for IIS at once!
Hi, I have a lot of sites under IIS installation (4000-5000 sites). Don't tell me why 😕 I'm trying to add all of them at once in Performance counter to see which one is consuming high traffic but the windows mmc is unable to add them at once, I can pick up maximum 60 sites. Adding them this way is just nightmare. Can anybody advice me how to add all of them at once using powershell script? Thanks198Views0likes2CommentsTemporary error 403 on images
I've been having the following problem for some time now. Some images are repeatedly not displayed on the website (error 403). These are also linked as an image. If I click on the link, they appear without any problems. When I refresh the page with cache turned off, different images are affected. Does anyone have an idea? for instance www.salzlandkreis.de/bildungkultur/ringheiligtum-poemmelte/impressionen http and https same behavior290Views0likes5CommentsDefault document not showing while using IIS as a reverse proxy server
I am using IIS as a reverse proxy for multiple applications using URL rewrite module. I have wrote a rule like "App/?(.*)" to match the application path. The default document which is a "Home.aspx" file is loading when I put a path like "https://localhost/App/" but, if I remove the last forward-slash like "https://localhost/App" it is not working. I understand that the rule is written to consider only after the slash, but any way I can rewrite the rule to written the default document without the last slash as well ? Kind suggest.224Views0likes1CommentIIS issue - apsnetcore.dll not found
Hi, I am working on upgrading a server from 2012 to 2022 (on AWS). I have installed a fresh 2022 instance and have sued webdeploy to copy the entire IIS configuration from the 2012 server to the 2022 server. To try to further bring the server up to date, the 2012 server is running .Net 2.x and on 2022 I have installed .Net 8.x When I launch the 2022 server IIS runs but my websites won't come up - I keep getting a 503 error. When I look in the Event Viewer the error message I see is "apsnetcore.dll not found". I have spent some time trying to identify how to rectify this but so far have not been successful. Could anyone please give me any suggestions to try to find a fix ? TIA286Views0likes4CommentsHow to Host a Rails App on IIS: Seeking a Simple Approach
Hello, I’m having trouble hosting my Rails app on IIS (Windows Server 2019). Unfortunately, I don’t have the option to choose a different server since the app will be hosted on an on-premise server, which also runs other applications on IIS (Windows Server 2019). I’ve read numerous discussions on this topic, and the most common feedback is that “it’s painful.” However, I haven’t been able to find a clear, step-by-step guide or solution. So far, I’ve come across the following options: Hosting with a reverse proxy Hosting with WSL Hosting with Docker However, I’m looking for a more traditional approach to hosting the app, similar to how one would typically host an application in other languages. As a developer with limited experience in server management, I’m not sure where to start. If anyone has any tips, tutorials, or guidance, I would greatly appreciate your help!413Views0likes5CommentsHTTP 413 (Request Entity Too Large) in IIS with Sharepoint Solution
Hello everyone, I'm having a problem with a request from a client (Request Entity Too Large) I've already configured my IIS server to increase the size of the Request Filtering Limits to 52428800 I've also modified uploadReadAheadSize="10485760’ and I've also added to my web.config <binding name=‘LargeRequestBinding’ maxBufferSize=‘2147483647’ maxBufferPoolSize=‘2147483647’ maxReceivedMessageSize=‘2147483647’> but I still get the error returned by my client 413 Request Entity Too Large. I don't understand why206Views0likes1CommentIIS 10 serving wrong ssl cert
All sites on our server when browsed to are showing one wildcard ssl cert no matter that these other sites have a different ssl cert set in bindings. I checked every binding and made sure to select the specific IP address instead of all unassigned like some forums said. All the bindings with ssl have a host name and Require Server Name Indication Checked. I don't know what else to do! Is there any help you can give me on this? I hadn't changed any SSL or binding settings recently and they just stopped working today. It just serves the *.hoaguru ssl certificate to all sites even if they are pointing to a different ssl cert in the bindings. The sites that do use the *.hoaguru.com ssl cert are very important. I cannot remove them.177Views0likes1CommentThe website had blank page
I need help with a Windows IIS issue. We have three websites running on the same server, and one of them is not working; the page loads blank. DNS is being resolved. When IIS is restarted, the first time a user opens the website, it loads; no other users receive a blank page. We use Cloudflare for DNS and WAF. SSL Certificate.235Views0likes1CommentIIS Anonymous settings question
Hi Gang, When enabling the Anonymous Authentication, there is an Edit button to set a user. As well, there is also an option to specify a user in Basic Settings for a virtual folder/app in IIS. What is the difference between these two? Many thanks! ============== Found my answer in case anyone is curious...Basic Settings sets the user account for a more limited scope - disk access only. Setting the account via Edit button for the Anonymous auth option has broader access - disk, registry and network.198Views0likes0Comments
Events
Recent Blogs
- This article includes information about folders that need to be excluded from antivirus scanning in ASP.net applications: 1. The physical file folders for the web sites content, no matter it is a l...Nov 07, 202435KViews4likes3Comments
- Navigating the complexities of cloud solutions can be a daunting task, and Azure Bot Solutions are no exception. Many customers face the challenge of privatizing their bot’s messaging endpoint, only ...Nov 06, 2024511Views2likes1Comment
Resources
Tags
No tags to show