FIX: "???? COM ???? ?? ???? ???????" ????? ??? ??? ??????? ???? COM STA ???? ????? ????? ???????? Server.CreateObject ? ????????? ?? ???? ???? ?? ???? ??? ??????

?????? ????????? ?????? ?????????
???? ???????: 818612 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

???????

????? ??? ???? COM (STA) ????? ???? ???????? Server.CreateObject ?? ????? ??? ?????? COM STA ?? ?????? ???? ?????. ??? ??? ?????? ??? ?????? COM STA ?? ???? ??? ???? ???? ????? ????? ???????:
?? ???? ??????? ???? COM ???? ?? ?? ???? ?? RCW ??????? ????? ??

????

??? ?????? ??? ??????? ??????? ??? ?? ???? ???? ??? .NET Framework ?????? ????? ?????? Service Pack 2 ?????.

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

?? ????? ??? ??????? ?? 2003 ????? ASP.NET 1.1 ???? ?????????. ?????? ??? ??????? ??????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
821156INFO: ASP.NET 1.1 ???? ?????? ????????? ????? 2003
?? ????? ?? ?????? ??? ????? ??? ???? ????. ??? ????? ???????.

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

????? ????? ????? ?????????? ?? ??? ??????? ?????? ??? ???? ????? (?? ??????) ???????? ?? ?????? ??????. ??? ??? ???????? ???????? ?????? ???? ??????? ???????? ??????? coordinated (UTC). ????? ???? ???? ??????? ?????? ??? ??????? ??? ??????? ??????. ?????? ????? ??? ??????? ??????? (UTC) ???????? ??????? ?????? ????? ??????? ??????? ??????? ?? ???? ??????? ?????? ?? "???? ??????".
   Date         Time   Version       Size       File name
   --------------------------------------------------------------
   25-Apr-2003  03:19  1.0.3705.424    196,608  Aspnet_isapi.dll
   25-Apr-2003  03:19                  510,714  Aspnet_perf2.ini
   25-Apr-2003  03:15                    4,169  Aspnet_perf.h
   25-Apr-2003  03:19                  513,302  Aspnet_perf.ini
   25-Apr-2003  03:19  1.0.3705.424     24,576  Aspnet_regiis.exe
   25-Apr-2003  03:19  1.0.3705.424     28,672  Aspnet_wp.exe
   24-Apr-2003  15:49  1.0.3705.424     69,632  Corperfmonext.dll
   24-Apr-2003  15:47  1.0.3705.424    303,104  Mscorjit.dll
   25-Apr-2003  12:55  1.0.3705.424  1,953,792  Mscorlib.dll
   24-Apr-2003  15:48  1.0.3705.424  2,269,184  Mscorsvr.dll
   01-Aug-2002  18:38                       15  Smartnav.htm
   17-Oct-2002  14:55                    8,728  Smartnav.js
   24-Apr-2003  15:40                   10,284  Mscorlib.ldo
   24-Apr-2003  15:48  1.0.3705.424  2,269,184  Mscorwks.dll
   25-Apr-2003  12:59  1.0.3705.424  1,191,936  System.web.dll

????? ??? ??????? ?????? ????? ?????? ??? ????? ????? ????????? ?? Microsoft .NET Framework 1.0. ????? ??? ??????? ?????? ????? ??????? ??????? ?? Microsoft .NET Framework 1.0.

??? ??? ?????? ??????? ?????? ?? ??? ??????? ?????? ??? Microsoft ASP.NET ??????? ?? .NET Framework 1.0 ? ??? ??? ???????? ??? Microsoft ASP.NET ??????? ?? .NET Framework 1.1 ????? ???? ????????? ??????? ?? ????? "????? ????? Microsoft" ???????:
821156INFO: ASP.NET 1.1 ???? ?????? ????????? ????? 2003
???????? ??? ???? ??? ??? ???????? ??? .NET Framework 1.1 ???? ????? ??????? ?? ??? ??????? ????? ???? ????????? ??????? ?? ????? "????? ??????? ?? Microsoft" ???.

?????

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

??????? ????

??? ??? ?????? ???? STA ???????? Server.CreateObject (AspCompat ??? = "true"), ???? ??????? ?????? ??? ?? ???? ??? ???? ??? ???????? ??. ?? ???? ????? ?????? ?? ???? ???? ??? ?????? ?????? ??? ?????? ?????? ????? ?? ???? ??? ?????? ????? ????? ?????.

???????? ??? ???? ??? ??? ?????? ??????? OnStartPage ?????? OnEndPage ?? ???? COM STA ???? ??? ????? ?? ??? ?????? ?? ???? ??? ??????.

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

  1. ??????? ????? ???????? ???????? ??????? ?? ????? ???? Microsoft Visual Basic 6.0 COM ?? AspEventProblem.Class1 ?????? ??? ????? ????????:
    Public Function Test() As String
           Test = "Hello from COM Object"
    End Function
  2. ??????? Microsoft Visual Basic .NET ?????? ????? ??? ????.
  3. ????? "????? ???" ???? WebForm1.aspx.
  4. ????? ???? ?? ??? WebForm1.aspx ???? ????? ??? ????? ????????? ???????? ??????:
    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As 	System.EventArgs) Handles MyBase.Load 
          Session("mycomp") =Server.CreateObject("AspEventProblem.Class1") 
    End Sub Private Sub
    Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
          Handles Button1.Click Response.Redirect("webform2.aspx") 
    End Sub 
  5. ????? "????? ???" ???? WebForm2.aspx ???? ????? ??? ????? ????????? ???????? ??????:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Label1.Text = Session("mycomp").Test()
    End Sub
  6. ?? ???????? ????? ?? ??? WebForm1 ?? ???? ??? Button1.
  7. ??? ???? WebForm2 ???? ??? Button1.

???????

???? ???????: 818612 - ????? ??? ??????: 22/?????/1426 - ??????: 5.2
????? ???
  • Microsoft .NET Framework 1.0
????? ??????: 
kbmt kbhotfixserver kbqfe kbqfe kbnetframe100presp3fix kbfix kbbug KB818612 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????818612

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

 

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