FIX: ????? ??? ?????? STA ???? ????????? ?? ???? ???? ????? ?? ????? ????? ??? ????? ???????? ?? ????? Session_End

?????? ????????? ?????? ?????????
???? ???????: 827164 - ??? ???????? ???? ????? ????? ??? ???????.
??????
?????? ??? ????? Microsoft .NET Framework 1.0 ?? ??? ???????? ???? 827163.
??? ????? ??? ???????. ????? "??? ??" ??? ??? ??????? ??? ????.
????? ???? | ?? ????

?? ??? ??????

???????

??? ??? ?????? ??????? ??? ?????? ????? ????? ???? (STA) ?? ???? ???? ????? ?????? ??? AspCompat ??? true ?? ???? ??????? ?? ?? ???? ??? ??? ?????? ?????? ??? ?????? ?????? ??? ???????? ?? ????? Session_End.

?????? ?????? ?? ???? ??? ??????? ?? ???? ????? ??????? ??? ????????? ????? ?? ??? ??? ?????? ???? ??????? ??? ?????? ???? ??????? (ACT) ??? ????? ???????. ??? ???? ??? ???????? ???? "0x8004e005 ???" ????? ????? ?? ??? ???????.

?????

????? ??? ??????? ???? ??? ??? ????? Session_End ?????? ??? ??? ???? ??????? ???? ?? ????? ???? ????? ???. ????? ????? ???? ?? ??? ?????? STA ?????? ??? ??? ???? ??????? ???? ?? ????? ???? ????? ??? ? ?????? ??? ??????. ???? ??? ?????? ??? ??????.

???? ????? ?????? STA ?? ???? ???? ?????. ??? ???? ?? ???? Microsoft ?????? ????. ????? ?? ?????????? ???? ??? "???????" ?? ??? ???????.

????

???? ??? ??????? ?????? ????? ????? ???? ??? ????? Machine.config. ??? ????? ??????? ?????? ????? ????? ??????? ??????.
<httpRuntime apartmentThreading=?true|false? />,
???? ???????? ??? ????? apartmentThreading ??? false. ??? ??? ?????? apartmentThreading ??? true ???? ?????? ??????:
  • ????? ???? ??????? Session_Start ??? ?????? ??????? STA ???? ?????? ?? ????? ???? ????? ??? ????? ?? ?????? ????? ?? ???????.
  • ????? ???? ??????? Session_End ??? ?????? ??????? STA ???? ?????? ?? ???? ???? ?????.
  • ???? ????? AspCompat ??? true ????? ??????? ???????? ????? ??? AspCompat ????? ???? ???? ??? false.
?????? ????? ???? ????? ????? Session_Start ??? ???? ??????? STA ?? ??? ????? ??? ??????? ?????? ??? ?? ????? apartmentThreading ??? false ?????? AspCompat ??? true ?????? ?????.

???? ??? ??????? ?????? STA ???????? ???? ?? ??????? ??????? ?? ???? ???? ?????. ???? ??? ??????? ?????? ????? ??? ???? STA ???? ????? ???? ??? ???? .NET ???? ??? ??????? ?? ???? ???? ????? ???? ???? ??? ???? STA ???????. ??? ???? ?? ???? ??? ??????? ?????? ?? STA ?????? ????? ???? ?? ????? ?????.

??? ????? ??? ??????? ?????? ????? ?? ???: ???? ???? Windows Microsoft ? ???? ????? ???????? ?????????? (OCM). ??? ??? ?????? ???? ??????? Windows Server 2003, ??? ????? ????? ????? Windows Server 2003 (OCM) ???? ????? ????? Windows Server 2003 ??????? ????? .NET Framework 1.1. ??? ??? ?????? ???? ????? ????? Windows Server 2003 ??? ?????? ??????? ???? Windows Installer.

????? ????? OCM ?? ??? ??????? ?????? ??????? ???????:
  • ?????????? (ENU)
  • ????????? (?????????)
  • ????????? (DEU)
  • ???????? (FRN)
????? ???? ????? ???? ????? ?? Microsoft ???? ????? ??? ?? ?? ??????? ??????? ?? ??? ??????? ???. ??? ?????? ??? ??????? ???? ????? ??? ??????? ????????. ?? ??? ????? ???????? ?????? ??? ??? ??????? ??????. ?????? ??? ?? ??? ????? ??? ??????? ??????? ???? ????????? ??? ??????? ?????? ?? ???? ?????? Microsoft .NET Framework 1.1 ????? ????? ??? ??? ??????? ??????.

??? ??? ??????? ?????? ???? ?????? ??? ???????? ?? Microsoft "?????? ??? ??????? ??????. ?????? ??? ????? ????? ?????? ?????? ?????? ?????? ??? ???? Microsoft ???? ??????? ??? ?????? ?????? ?? ?????? ???? Microsoft ?????? ??? ?????:
http://support.microsoft.com/contactus/?ws=support
?????? ?? ??? ???????? ?? ??? ????? ????????? ???? ?????? ????? ??? ??????? ????? ??? ??? ?????? ????? ??? Microsoft ?? ??????? ?????? ??? ???? ??? ?? ???????. ???? ????? ?????? ????? ???????? ??? ????? ????? ???????? ????????? ???? ?? ???? ??? ???? ??? ???????.

????? ????? ????? ?????????? ?? ??? ??????? ?????? ??? ???? ????? (?? ??????) ???????? ?? ?????? ??????. ??? ??? ???????? ???????? ?????? ???? ??????? ???????? ??????? coordinated (UTC). ????? ???? ???? ??????? ?????? ??? ??????? ??? ??????? ??????. ?????? ????? ??? ??????? ??????? (UTC) ???????? ??????? ?????? ????? ??????? ??????? ??????? ?? ???? ??????? ?????? ?? "???? ??????".
   Date         Time   Version       Size       File name
   ------------------------------------------------------------------------
   18-Sep-2003  05:18  1.1.4322.947    258,048  Aspnet_isapi.dll
   18-Sep-2003  05:18  1.1.4322.947     20,480  Aspnet_regiis.exe
   18-Sep-2003  05:18  1.1.4322.947     32,768  Aspnet_state.exe
   18-Sep-2003  05:18  1.1.4322.947     32,768  Aspnet_wp.exe
   16-May-2003  01:49                   33,522  Installpersistsqlstate.sql
   16-May-2003  01:49                   34,150  Installsqlstate.sql
   18-Sep-2003  05:09  1.1.4322.947     94,208  Perfcounter.dll
   19-Sep-2003  02:43  1.1.4322.947  1,216,512  System.dll
   19-Sep-2003  02:40  1.1.4322.947    323,584  System.runtime.remoting.dll
   19-Sep-2003  02:43  1.1.4322.947  1,253,376  System.web.dll
   19-Sep-2003  02:42  1.1.4322.947    819,200  System.web.mobile.dll
   19-Sep-2003  02:41  1.1.4322.947    569,344  System.web.services.dll
   19-Sep-2003  02:44  1.1.4322.947  1,335,296  System.xml.dll
   18-Sep-2003  05:13                   14,472  Webuivalidation.js

?????

???? Microsoft ?? ??? ????? ?? ?????? Microsoft ??????? ?? ??? "????? ???" ?? ??? ???????.

??????? ????

??? ????? ???? ????????? ??????? ??? ??? ????? ???? ?????. ??? ??? ?????? AspCompat ??? true ????? ???? STA ??????? ?? ???? ???? ????? ??? ???? ????? ?? ????? ????? ??? "NullReferenceException" ??? ????? ??????. ????? ????? ??????? ??????? ? ?? ???? ???????? ???????? ??????? ???? ??????? Page_Load.
	Session["obj"] = new Object();

	Session["obj"] = null;
????? ???? ?????? ??? ?????? ???? ????? ????????? ???????? ???? ???? ????. ??? ???? ??? ??? ????? ?????? ? ????? ????? ??? "NullReferenceException" ?? Microsoft ASP.NET ? ?? ???? ??? ?????? ??? ???? ?? ???? ????? ???????.

???? ???? ????? ???????:
[NullReferenceException: Object reference not set to an instance of an object.]
System.Web.UnsafeNativeMethods.AspCompatOnPageStart(Object obj) +0
System.Web.Util.AspCompatApplicationStep.OnPageStartSessionObjects() +90
System.Web.UI.Page.ProcessRequestMain() +44
???? ????? AspCompat ??? false "? ?? ???? ??? ??????.

????? ????? ????? ?? ????

????? ????? ??????? ???? ???? ?? ??? "???????" ?? ??? ??????? ? ???? ??????? ???????:
  1. ?????? Microsoft Visual Basic .NET ?????? ???? DLL ActiveX Visual Basic.

    ?????? ??? ??? ???? ?????? ?? ????? ??? ??????? (UE) ???? ????? ?? ????.
  2. ????? ????? ????? ?? ??? DLL:
    1. ????? ???? ???? ?????? ?????.
    2. ????? ???? ???? ???? ????? ????? ?????? ???? ?????. ???? ??? ?????? ???? ????? ??????? ?? 1 ??? ????? ???? ?? ?????? ??? ??????.
  3. ????? ????? ????? ??? ???? ????? ??? ?????? .aspx (Page1.aspx ? Page2.aspx).
  4. ?? ??? Global.asax ????? Session_Start ??????? CreateObject ?????? ???? ?????? ???? ??? ??????? ?? ?????? 1.
  5. ?? ????? Page_Load ?? Page1.aspx ??????? ?? ?? ??????? ???? ??? ??????? ?? ?????? 2 ?? ?????? ???? ?? ?????? ?? ???? ???? ?????.
  6. ????? ?????? ????? ??? Page2.aspx ?? Page1.aspx.
  7. ?? ????? Page_Load ?? Page2.aspx ??????? ??????? Session.Abandon.
  8. ?????? ?????? ???? ??????? (ACT) ?????? ?????? ??????? ????? ??? Page1.aspx ???? Page2.aspx ??.
  9. ????? ???????? ?? ???????? ???. ???? ??? 0x8004e005 ???? ????? ?? ??????? ????.

    ?????? ?? ????? ??? ????? ??? ?????????? ????? ????? ???????.

?????

?????? ??? ??????? ??????? ???? ??? ????? ???????? ??????? ?????? ?? "????? ??????? ?? Microsoft:
243543INFO: ?? ??? ????? ?????? STA ?? ????? ?? ???? ???
243815PRB: ????? ?????? COM STA ?? ???? ??? ????? ???? ??? ????? ????? ????
817005FIX: ????? ?????? ??????? ??? ????? ??? ???? ???? ????? ??? ?????? ??????? ?? ??? ASPCompat

???????

???? ???????: 827164 - ????? ??? ??????: 28/???? ??????/1435 - ??????: 1.7
????? ???
  • Microsoft .NET Framework 1.1
  • Microsoft Visual Studio .NET 2003 Enterprise Architect
  • Microsoft Visual Studio .NET 2003 Enterprise Developer
  • Microsoft Visual Studio .NET 2003 Academic Edition
  • Microsoft ASP.NET 1.1
????? ??????: 
kbnosurvey kbarchive kbmt kbhotfixserver kbqfe kberrmsg kbnetframe100presp3fix kbfix kbqfe kbcode kbbug KB827164 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????827164

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com