Sample search scenario: Session state variables are lost
The first KB query is for a scenario where session state variables are lost for an application. Start by specifying that you want developer-related articles to be returned in your search. To do this, use the
kbAudDeveloper keyword to set the audience for the article. Next, add the appropriate ASP.NET keyword. For this search, use the
kbASPNETSearch keyword to limit your results to articles that are related to ASP.NET. The following list includes the ASP.NET version keywords:
- The kbASPNetSearch keyword refers to all the versions of ASP.NET.
- The kbASPNet100 keyword refers to the version of ASP.NET 1.0 that is included with the .NET Framework 1.0.
-
The kbASPNet110 keyword refers to the version of ASP.NET 1.1 that is included with the .NET Framework 1.1.
In this scenario, session state variables are lost in your application, so you must add the
kbState keyword. This keyword is used for articles that describe state management issues, such as application state issues, session state issues, view state issues, and other issues. If you read last month's column "Tracking down view state issues in the Knowledge Base," you are already familiar with this keyword.
In this scenario, the behavior that you are seeing is related to a perceived problem with ASP.NET. Therefore, you are not interested in general informational content or how-to content, and you can narrow your results appropriately. To do this, use the
kbPrb keyword. The
kbPrb keyword signifies a perceived problem. If you suspect that the behavior is an actual flaw in ASP.NET, use the
kbBug keyword. The following list contains brief descriptions of the most common article types:
- kbPrb:
These articles describe perceived problems in the product. In other words, the user experiences a problem with the product, but it is not a bug.
- kbInfo: These articles describe a concept or provide additional information about an issue.
- kbHowToMaster:
These articles are how-to articles. These articles contain a step-by-step explanation of how to perform a specific task.
- kbQFE:
These articles are hotfix articles. These articles describe a problem that has an available fix. However, the fix may not be fully tested and is not yet available in a service pack release.
- kbBug: These articles describe a specific bug in a product.
Until now, you have only provided the generic classification for the articles that you want to include in your search. In our example, we are looking for information about a specific scenario. To make your search more precise, add the following query words:
This addition uses the ability to perform a full-text search. The final query is
kbAudDeveloper kbASPNETSearch kbState kbPrb session variable lost.
Try this query in the KB search tool at Microsoft Help and Support. To view Microsoft Help and Support, visit the following Microsoft Web site:
When you try this query, you should get a focused result. Make sure that you click
All of the words entered and
Full Text when you run your search. At the time of this column's writing, this query produced the following articles:
324772 Session data is lost when you use ASP.NET InProc session state mode
316148 Session variables are lost intermittently in ASP.NET applications
Both articles in the result set describe the possible issue with the ASP.NET application restarting. This issue then causes the session state data to be lost when it is stored in-process. Article 316148 describes one of the most common causes of an application restarting frequently in this scenario: antivirus software scanning the files of your ASP.NET application. More specifically, the application restarts may occur in some situations because antivirus software is scanning the Web.config file in the root of the application, the Machine.config file, the Bin folder, or the Global.asax file.
Additional search queries
If you already know that the session data is lost because of an application that is restarting frequently, you might search the KB from a different perspective. In this case, use
kbAudDeveloper kbASPNETSearch kbPrb kbHttpRuntime application restart to search for the lower-level issue:
Note that the
kbHttpRuntime keyword is added to this query. This keyword specifies that you expect the core problem to be related to an issue with the run-time services that are used to carry out the request. The application and restart query words take advantage of the full text search the same way that the session state query in the "Sample search scenario: session state variables are lost" section of this column does. The following queries demonstrate how to use some of the other keywords to search for related issues:
- kbAudDeveloper kbASPNETSearch kbPrb application restart
- kbAudDeveloper kbASPNETSearch kbHttpRuntime kbBug Application restart>
- kbAudDeveloper kbASPNETSearch kbBug antivirus
- kbAudDeveloper kbASPNET100 kbBug antivirus
- kbAudDeveloper kbASPNET110 kbBug antivirus
Note These queries assume that you will click
All of the words entered and
Full Text in the KB. To access the KB, visit the following Microsoft Web site:
If you have never read the forums on the Microsoft ASP.NET Web site, visit the following Microsoft Web site:
These forums can save you a lot of time, and many of the people who are responsible for the information that is included in the KB visit these forums to determine what issues their customers are facing. For example, a thread that is posted in the FAQ section describes issues that are related to this month's topic. To read the forums, visit the following Microsoft Web site:
If you read any of the previous columns, you are familiar with the format. If not, you may want to view the following "General search tips" section. Each installment of this column ends with a list of general search tips. Hopefully this information helps you use the KB more productively.