PRB: ????? ?????? STA ?? ???? ?? ??? ASPCOMPAT ASP.NET ???? ???? ????? ??? ??????

?????? ????????? ?????? ?????????
???? ???????: 308095 - ??? ???????? ???? ????? ????? ??? ???????.
??? ????? ??? ???????. ????? "??? ??" ??? ??? ??????? ??? ????.
????? ???? | ?? ????

???????

??? ??????? ?????? ??????? ??????? ?? ???? ????? ASP.NET ?? ??? ASPCOMPAT ?? ????? ?????? ???? ???????.

?????

??? ??? ?????? ??? ASPCOMPAT (?????? ?? ???? ??????? ???? ?? < % @ ASPCOMPAT = "true" %> ???????) ? ASP.NET ???? ??? ??????? ??? ???? ???? ????? STA. ??? ???? ?? ??????? ??? ????? ????? ??? ???? ?????? ??????? ????? ????? ???? (STA) ?????? ???? ???? ?????? (COM) ???? ?? ??????? ?? ??? ??????? ? ???? ?? ??????? ?? ???? ????? ??????? ?????? ?????? ????? (MTA). ?? ??? ?????????? ????? ?????? ???? ??????.

?????? ???? ????? ??? ???? ??????? (???? STA) ????? ???? ?????? ?????? ??????? ??????? ???? ?? ??????? ?? ?????? ????? MTA. ???? ???? ??? ??? ????? ?? ?? ???? ?????????? ??? ???? ??? ???? ???? COM ?????? ??? ? ???? ??????????? ??? ??? ???????? ??? ????? ??? ??? ???? ????? ???? (????? ??????? ???? ??? ?? ?? ???).

???????? ??? ???? ???? ???? ???? ??? ???? ?????? ??? ?? ??? ??? ??????? ?? ??? ?????? ?? ??????? ?????? ???? ?? ??? ????? ???? ?????. ???? ???? ??? ????? ??????? ?????? ??? ???? ????? ?? ???? STA ???? ?? ???? ??? ????? ???? COM ??? ?????? STA (???? ?? ????? ???? COM ?? ???? MTA). ???? ??? ??????? ???? ??????? ??? ????? ??? ????? ???? ??? ??? ?????? ????????. ????? ?? ?????????? ???? ??? "???????" ?? ??? ???????.

????

?? ???? ??????? ????? ASPCOMPAT ?? ?????? STA ??? ?????? ?????? COM ?? ????? ?? ??? ????? ???? (??? ???? ??????? Page_LoadPage_Init ? ???) ?? ?? ??? ?????? ??? ???????? COM ?? ??? ???????.

??? ???? ??????? ???? ????? ??? ?????? ??? ??? ???? ???? ?????? ?? ??? ???????:

Visual Basic .NET
<%@ Page Language="VB" ASPCOMPAT="TRUE" %>
<script runat="server">

Dim comObj As MyComObject = New MyComObject()

Public Sub Page_Load()
   comObj.DoSomething()
End Sub
</script>
				
Visual C# .NET
<%@ Page Language="C#" ASPCOMPAT="TRUE" %>
<script runat="server">

MyComObject comObj = new MyComObject();

public void Page_Load()
{
   comObj.DoSomething()
}
</script>
				
Visual J# .NET
<%@ Page Language="VJ#" ASPCOMPAT="TRUE" %>
<script runat="server">

MyComObject comObj = new MyComObject();

public void Page_Load()
{
  comObj.DoSomething();
}
</script>
				
??????? ???????? ???????? ?????? ????? ?? ???:

Visual Basic .NET
<%@ Page Language="VB" ASPCOMPAT="TRUE" %>
<script runat="server">

Dim comObj As MyComObject 

Public Sub Page_Load()
   comObj = New MyComObject()
   comObj.DoSomething()
End Sub
				
Visual C# .NET
<%@ Page Language="C#" ASPCOMPAT="TRUE" %>
<script runat="server">

MyComObject comObj;

public void Page_Load()
{
   comObj = new MyComObject();
   comObj.DoSomething();
}
				
Visual J# .NET
<%@ Page Language="VJ#" ASPCOMPAT="TRUE" %>
<script runat="server">

MyComObject comObj;

public void Page_Load()
{
  comObj = new MyComObject();
  comObj.DoSomething();
}
</script>
				

?????

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

?????

?????? ??? ??????? ??????? ???? ??? ??? ??????? ????? ?????? ?? "????? ??????? ?? Microsoft:
325791PRB: ???? ????? ??? ??? ?????? ?? ASP.NET ??????? COM STA ??????? ??? ??????

???????

???? ???????: 308095 - ????? ??? ??????: 28/???? ??????/1435 - ??????: 2.9
????? ???
  • Microsoft ASP.NET 1.1
  • Microsoft Visual Basic .NET 2003 Standard Edition
  • Microsoft Visual C# .NET 2003 Standard Edition
  • Microsoft ASP.NET 1.0
  • Microsoft Visual Basic .NET 2002 Standard Edition
  • Microsoft Visual C# .NET 2002 Standard Edition
  • Microsoft Visual J# .NET 2003 Standard Edition
  • Microsoft .NET Framework 1.1
????? ??????: 
kbnosurvey kbarchive kbmt kbhttpruntime kbinterop kbperformance kbprb kbreadme kbthread KB308095 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????308095

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

 

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