????? ????? ????? ????????? ??????? Windows Foundation ??? ??? ?????

?????? ????????? ?????? ?????????
???? ???????: 972914 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

????? ???

???? ??? ??????? ??? ??????? ???? ???? ????????? ?????? ????? ????????? ??????? Windows Foundation ??? ??? ??????.

??????? ????

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

????? ??????? ??? ??????? ?????? ????? ????? Windows Foundation ??? ????? ????????? ???????? ?? ????? ????????????. ?????? Windows Foundation ??? ????? ??????? ???? ?? ??????? ?? Microsoft .NET Framework 2.0. ???? ??????? ??????? ????? ????? ????? ????????? ??????? Windows Foundation ??? ??? ??????. ???????? ??? ????? ?????? ???? ??? ????? ??? ????? ??? ????? ????? ??? config. ??????? (app.config) ?? ???? ??? (web.config). ??? ???? ??????? ??? ??? ???? ?? ????? ??????? ?????? ????? Test.exe ????? ??? Test.exe.config.

???? 1

?? ??? ?????? ????? ????? ???? ????? ????? ??? ???. ??? ????? ????? ?? ???? ??????? ?????? ???????? ??? WorkflowTrace.log. ?? ??? ???????? ?? ??? ?????? ????? ????? ?????? ??????? ???? ??????? ??????? ??????? ????? ????????? ???? ??? ??????.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.diagnostics>
    <switches>
        <add name="System.Workflow LogToFile" value="1" />
        <add name="System.Workflow.Runtime" value="All" />
        <add name="System.Workflow.Runtime.Hosting" value="All" />
        <add name="System.Workflow.Runtime.Tracking" value="All" />
        <add name="System.Workflow.Activities" value="All" />
        <add name="System.Workflow.Activities.Rules" value="All" />       
    </switches>
  </system.diagnostics>
</configuration>

???? 2

?? ??? ??????? ????? ????? ??????? ??? TraceListener ?????? ????? ????? ??? ????? "System.Workflow LogToTraceListeners". ??? ????? ??? ??????? ????? Windows Foundation ??? ????? TraceListener ?? ??????? ???? ??????? ?????? ????? ???? ????????? ?????? ??? TraceListener.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.diagnostics>
    <switches>
        <add name="System.Workflow LogToTraceListeners" value="1" />
        <add name="System.Workflow.Runtime" value="All" />
        <add name="System.Workflow.Runtime.Hosting" value="All" />
        <add name="System.Workflow.Runtime.Tracking" value="All" />
        <add name="System.Workflow.Activities" value="All" />
        <add name="System.Workflow.Activities.Rules" value="All" />
    </switches>
  <trace autoflush="true" indentsize="4">
    <listeners>
            <add name="customListener"
             type="System.Diagnostics.TextWriterTraceListener"
             initializeData="WFTrace.log" />
    </listeners>
  </trace>
  </system.diagnostics>
</configuration>

???? 3

?? ??? ??????? ??? ????? ???? ???? ?? ??? initializeData. ?????? ??? ????? ??? ?????? ?????? ???????? ?????? traceOutputOptions ???????: ProcessId ? DateTime.

??? ?? ??????? ??? ?????? ????? ??? ??? ????? ?????? ?????? ?? W3wp.exe ??? ??? ???? ????? ??? ?????? ????? ???. ?? ??? ?????????? ???????? ??? ??? WFTrace.log ??? ??????? ???? ??? ????? <GUID>WFTrace.log ?? ?? <GUID>???? ????.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.diagnostics>
    <sources>
      <source name="System.Workflow.Runtime" >
        <listeners>
          <add name = "System.Workflow"/>
        </listeners>
      </source>
      <source name="System.Workflow.Runtime.Hosting">
        <listeners>
          <add name="System.Workflow"/>
        </listeners>
      </source>
      <source name="System.Workflow.Activities">
        <listeners>
          <add name="System.Workflow"/>
        </listeners>
      </source>
    </sources>
    <sharedListeners>
      <add name="System.Workflow"
           type="System.Diagnostics.TextWriterTraceListener"
           initializeData="d:\_temp\Log\WFTrace.log"
           traceOutputOptions="DateTime,ProcessId"/>
    </sharedListeners>
    <switches>
      <add name="System.Workflow.LogToTraceListeners" value="1"/>
      <add name="System.Workflow.Runtime" value="All" />
      <add name="System.Workflow.Runtime.Hosting" value="All" />
      <add name="System.Workflow.Runtime.Tracking" value="All" />
      <add name="System.Workflow.Activities" value="All" />
      <add name="System.Workflow.Activities.Rules" value="All" />
    </switches>
  </system.diagnostics>
</configuration>

?????

????? ?? ????????? ??? ???? ??? ??? ?? ?????? ???? MSDN ??????:
http://blogs.msdn.com/madhuponduru/archive/2008/01/17/workflow-trace.aspx
????? ?? ????????? ??? ????? ????? ??? ????? ?? ?????? ???? MSDN ??????:
http://msdn.microsoft.com/en-us/library/ms732240.aspx

???????

???? ???????: 972914 - ????? ??? ??????: 27/?????/1430 - ??????: 2.0
????? ???
  • Windows Workflow Foundation
????? ??????: 
kbmt kbhowto kbsurveynew KB972914 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????972914

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

 

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