.NET Questions and Solutions

As a software engineer, I focus on .NET, especially asp.net, C#, WCF and so on, and I am also very interested in Search Engine Optimization.

Entries for December, 2010

FIX: You experience out of memory exception errors on a Web server that has ASP.NET 1.1 installed

Symptoms
You experience out of memory exception errors on a Web server that has Microsoft ASP.NET 1.1 installed. ASP.NET 1.1 is installed as part of the Microsoft .NET Framework 1.1 and the Microsoft .NET Framework 1.1 Service Pack 1 (SP1).
Resolution
This problem occurs because the MobileCapabilities object does not expire from the cache as expected. You can use an instance of the MobileCapabilities object to read the capabilities of the requesting browser and device.

FIX: The System.EnterpriseServices.TransactionProxyException exception cannot be caught from other application domains when it is triggered during a transaction completion

Symptoms
When a System.EnterpriseServices.TransactionProxyException exception is triggered during a transaction completion, it cannot be caught from other application domains. Instead, you receive a System.Runtime.Serialization.SerializationException exception that resembles the following:

Unhandled Exception: System.Runtime.Serialization.SerializationException: Type ‘System.EnterpriseServices.TransactionProxyException’ in Assembly ‘System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ is not marked as serializable.
Resolution
This problem occurs because the TransactionProxyException exception is not serialized, and then cannot be caught from another application domain.

FIX: Floating Point Exception (Error 3628) Might Occur for Queries That Need Merged Histograms

Symptoms
The following floating-point exception error message might occur for queries that require a “merged” histogram:

Server: Msg 3628, Level 16, State 1, Line 2 A floating point exception occurred in the user process. Current transaction is canceled.
Resolution
A float overflow exception occurs in SQL Server when it combines the histograms for two indexes to handle the cardinality estimation for outer-join operators.

FIX: Exception Access Violation Encountered During Query Normalization

Symptoms
The SQL Server may encounter an access violation exception during normalization. The following or similar stack track is generated in the SQL Server error log indicating you have encountered the failure condition:

CGroupProperties::FTableGroup() line 52 + 18 bytesCOpArg::DeriveNormalizedGroupProperties(CTreeHandle * 0×26d1ac28) line 1250 + 8 bytesCOptExpr::DeriveGroupProperties(unsigned long 0) line 2714 + 25 bytesCImpRuleBaseJoinToIdxLookup::BuildSubstitutes(COptExpr * 0×1c933b2c, CRuleContext * 0×26d1b590, CRuleReturn * 0×26d1b5fc) line 1428CTask_ApplyRule::Perform(int 5799) line 1692 + 46 bytesCMemo::ExecuteTasks(COptTask * 0×1c90b3ac, int 0, int 0) line 3453 + 20 bytesCMemo::OptimizeQuery(CQuery * 0×1c6da8bc, COptExpr * 0×1c8ca63c, double * 0×1c6d430c, int 0, int 0, s_OptimPlans * 0×26d1baf4) line 3779COptContext::PexprSearchPlan(COptExpr * 0×1c8ca63c) line 1809 + 227 bytesCOptContext::PcxteOptimizeQuery(COptExpr * 0×1c8ca63c, DRgCId * 0×26d1df24) line 1337 + 15 bytesCQuery::Optimize() line 576 + 16 bytesCQuery::Optimize(unsigned long 1) line 1101CCvtTree::PqryFromTree(TREE * 0×1c740c9c, IMemObj * 0×1c6da030, CRangeCollection * 0×1c6da85c, unsigned long 0, CCompPlan * 0×1c6da2bc {CCompPlan}) line 1056 + 25 bytesBuildQueryFromTree(TREE * 0×1c740c9c, IMemObj * 0×1c6da030, IMemObj * 0×1c6e0020, IQueryObj * * 0×1c6da800, CRangeCollection * 0×1c6da85c, unsigned long 0, CCompPlan * 0×1c6da2bc {CCompPlan}) line 521 + 31 bytes
Resolution
A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.
If the hotfix is available for download, there is a “Hotfix download available” section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.
Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or tocreate a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support(http://support.microsoft.com/contactus/?ws=support)Note The “Hotfix download available” form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language. The English version of this fix should have the following file attributes or later:

File namePlatform———————-s80222i.exeIntel NOTE: Due to file dependencies, the most recent hotfix or feature that contains the preceding files may also contain additional files.