Complete Guide to Log Collections by info.odysseyx@gmail.com September 10, 2024 written by info.odysseyx@gmail.com September 10, 2024 0 comment 9 views 9 introduction The HTTP 500 Internal Server Error is one of the most common errors that developers and administrators face when hosting web applications on IIS. This error indicates that there is a problem with the server that prevents it from completing the request, but it does not provide any details about what went wrong. Understanding the 500 status code and collecting detailed logs is essential for troubleshooting the issue effectively. In this article, we will look at the 500 Internal Server Error, the reasons for it, and various ways to collect useful diagnostic logs. outline 500 Internal Server Error is a generic server error that occurs when the server cannot process the request due to unexpected circumstances. IIS 7.0 and later versions define the following HTTP status codes that indicate more specific causes of Error 500. The table below shows the sub-status codes with their descriptions. password explanation Note 500 A module or ISAPI error occurred. This HTTP status code can occur on the server side for several reasons. 500.11 The application terminates on the web server. The request is not being processed because the target application pool is shutting down. Wait for the worker process to shut down and then retry the request. If this problem persists, there may be a problem that is preventing the web application from shutting down properly. 500.12 Restarting the application on the web server. The request is not being processed because the target application pool is restarting. This HTTP status code should disappear when you refresh the page. If this HTTP status code reappears after you refresh the page, the problem may be caused by antivirus software that is scanning the Global.asa file. If this problem persists, there may be a problem that is preventing the web application from restarting properly. 500.13 The web server is too busy. The request was not processed because the server is too busy to accept new incoming requests. Typically, this HTTP status code means that the number of concurrent incoming requests exceeds the number that the IIS 7.0 or later version Web application can handle. This problem can occur when the performance configuration settings are set too low, the hardware is insufficient, or a bottleneck occurs in the IIS 7.0 or later version Web application. A common troubleshooting method is to create a memory dump file of the IIS 7.0 or later version process when the error occurs, and then debug the memory dump file. 500.15 Direct requests to Global.asax are not allowed. Direct request for global.asa file or global.asax The file has been created. 500.19 The configuration data is incorrect. This HTTP status code is caused by a problem in the associated applicationhost.config file or the associated Web.config file. 500.21 The module is not recognized. 500.22 ASP.NET httpModules configuration does not apply in managed pipeline mode. 500.23 ASP.NET httpHandlers configuration does not apply to managed pipeline mode. 500.24 ASP.NET most configurations do not apply to managed pipeline mode. 500.5 A rewrite error occurred while processing RQ_BEGIN_REQUEST notification. A configuration or inbound rule execution error occurred. Here you will read about configuring distributed rules for inbound and outbound rules. 500.51 A rewrite error occurred while processing GL_PRE_BEGIN_REQUEST notification. A global configuration or global rules execution error occurred. Read the global rules configuration here. 500.52 A rewrite error occurred while processing RQ_SEND_RESPONSE notification. Outbound rule execution occurred. 500.53 A rewrite error occurred while processing RQ_RELEASE_REQUEST_STATE notification. An outbound rule execution error occurred. The rule is configured to execute before the output user cache is updated. 500.1 Internal ASP error. An error occurred while processing an Active Server Pages (ASP) page. To get more specific information about the error, disable friendly HTTP error messages in your Web browser. The IIS log may also display an ASP error number that corresponds to the error that occurred. To learn more about http status codes, read this article. HTTP Status Codes Overview – Internet Information Services | Microsoft Learn. Log collection 500 Internal Server Error is a common error and requires in-depth investigation to determine the root cause. This is where log collection plays a crucial role. You should collect the following logs: IIS Logs Failed request tracing log Event logs for applications and systems. ETW Tracking Memory dump 1. IIS log This is the starting point for troubleshooting all server errors. These logs provide a record of all incoming HTTP requests and the server’s responses, including status codes, timestamps, etc. To enable IIS logs, follow the steps below: open IIS Manager. Go to your website between window glass. open logging. Logs are usually stored in C:\inetpub\logs\LogFiles. Update the location as per your convenience. And click apply. To collect logs, go to your log file directory and look for a folder name that ends with your site number. To find out your site number, go to: Site at connection panel. And find the ID column. For example, if your site ID is 2, the folder name will be W3SVC2. 2. Failed request tracing log Failed Request Tracing Logs, or FREB, analyze the request processing pipeline to provide more detailed insights than IIS logs. It tracks which part of the pipeline is causing the failure. Follow the steps below to configure FREB. Open IIS Manager Go to your website between window glass. open Failed Request Tracking Clicking sound add In the right task pane. Choose All content Clicking sound next check Status Code(s) Checkbox. The status code should be: 500~600 And clicknext HridayDutta_7-1725961293804.png Check all offersCheckbox . And clickfinish . Select the newly created rule and click Edit site tracking. check make possible Checkbox Update directory Path (or leave as default) And clickgreat HridayDutta_8-1725961333377.png To collect logs, go to the log file directory and look for a folder name that ends with your site number. For example, if your site ID is 1, the folder name would be W3SVC1. 3. Event Log window Event Log This is another valuable source of information, especially when dealing with application crashes, service restarts, or other server-related issues that may result in a 500 error. open Event Viewer Send out Application and system Logs in the Windows Logs section saving Without any filters .evtx HridayDutta_9-1725961916585.png 4. ETW Tracking You should use the PerfView tool. It is a powerful diagnostic tool for collecting performance traces and analyzing .NET applications. It is especially useful for investigating performance bottlenecks or runtime issues that may lead to 500 errors. Download Perfview tool ~ inRelease · microsoft/perfview (github.com) A profiler tool that captures ETW events from servers (no installation required). open Performance Tools and move collect Menus and Selections collect Options. Choosezipper ,absorption , Thread time Please select the checkboxes as shown below. expansion Advanced Options ChooseKernel base ,.net ,CPU Sample ,ISIS and Work (TPL) Please check the boxes as shown below. Add the following string to the additional provider: *Microsoft-Extended-LoggingFor .Net Core, add *. [do not miss * at the beginning] HridayDutta_5-1725965942684.png Clicking sound Start your collection button. Reproduce the problem Click to stop collectingStop collecting , It will be generated after waiting a while for it to merge. Perfview.etl.zip file. 5. Memory dump If your application crashes unexpectedly Memory dump HridayDutta_6-1725966029000.png Select the type of work Full user dump And the number of action limits is as follows:3 . Clicking soundnext . Please select Output location Save the dump file. and get sinceActivate Rules HridayDutta_7-1725966059213.png conclusion HTTP 500 Internal Server Errors can be difficult to understand and troubleshoot, but with the right logging techniques, you can narrow down the cause and find a solution more efficiently. Start with basic IIS logs for high-level information, dig deeper with failed request trace logs for detailed request failures, use PerfView for performance bottlenecks, and if necessary, collect memory dumps for deeper analysis of crashes and unhandled exceptions. If you are comfortable analyzing this data, you should be able to glean insights from the collected logs. If you would like us to do this for you, let us know your case and we can do it for you. Source link Share 0 FacebookTwitterPinterestEmail info.odysseyx@gmail.com previous post Microsoft Ignite: Don’t wait for the future—invent it next post Explore Exciting Marketing Job Openings at SLCT in Delhi for Freshers and Experienced — Looking to make your mark in the world of marketing? SLCT in Delhi has exciting opportunities for both freshers and experienced professionals to carve out a successful career path. Read on to learn more about the valuable experiences and growth potential awaiting you in one of India’s bustling cities. ### Why Consider a Marketing Job at SLCT, Delhi? SLCT is a well-established organization known for its robust marketing strategies and innovative approaches. Working with SLCT means you’ll be part of a dynamic team that values creativity, strategic thinking, and results-driven performance. ### Freshers: Kickstart Your Career Are you fresh out of college and eager to plunge into the marketing industry? SLCT offers an array of entry-level positions designed to help you gain hands-on experience and industry knowledge. Here, freshers can expect mentorship from seasoned professionals, comprehensive training programs, and work on impactful marketing campaigns. ### Experienced Professionals: Expand Your Horizons For experienced professionals, SLCT provides an environment where you can apply your existing expertise and further hone your skills. With advanced marketing tools and progressive practices, SLCT encourages continuous learning and career advancement. Experienced marketers can work on large-scale projects, lead innovative campaigns, and contribute significantly to the company’s growth. ### Work Environment and Culture SLCT prides itself on fostering a positive and inclusive work environment. The company promotes work-life balance, offers competitive salaries, and provides numerous opportunities for professional development. Employees can expect to work in a collaborative atmosphere where innovative ideas are always welcomed. ### Key Responsibilities As part of the SLCT marketing team, your responsibilities may include: – Developing and executing marketing strategies – Managing social media campaigns – Conducting market research – Collaborating with other departments for integrated marketing solutions – Analyzing marketing data to optimize campaigns SLCT ensures that each team member has the resources and support to excel in these areas. ### How to Apply Interested candidates can visit the SLCT careers page or apply directly through job portals such as FreshersWorld. Make sure to prepare a well-crafted resume highlighting your skills and experiences to stand out. ### Final Thoughts Whether you’re starting your career or looking to climb up the professional ladder, SLCT in Delhi offers enriching marketing job opportunities that can help you achieve your career goals. Don’t miss out on the chance to be part of a vibrant team and work on projects that genuinely make a difference. Ready to take the next step in your marketing career? Explore the latest job openings at SLCT and apply today! — By focusing on crucial keywords and integrating relevant information about SLCT’s work environment, training programs, and opportunities for professional growth, this post aims to attract both freshers and experienced professionals looking for marketing jobs in Delhi. You may also like 7 Disturbing Tech Trends of 2024 December 19, 2024 AI on phones fails to impress Apple, Samsung users: Survey December 18, 2024 Standout technology products of 2024 December 16, 2024 Is Intel Equivalent to Tech Industry 2024 NY Giant? December 12, 2024 Google’s Willow chip marks breakthrough in quantum computing December 11, 2024 Job seekers are targeted in mobile phishing campaigns December 10, 2024 Leave a Comment Cancel Reply Save my name, email, and website in this browser for the next time I comment.