????? ????? ?? ASP.NET 2.0

?????? ????????? ?????? ?????????
???? ???????: 893664 - ??? ???????? ???? ????? ????? ??? ???????.
??????? ????? ????
?????? ??? ??????? ????? ???? ?? Microsoft ??????. ??? ????? ????????? ???????? ?? ??? ??????? ???? ????? ??? ?????.

?? ???? ??? ???? ???? ????? ?? Microsoft ????? ???? ???. ????? ?? ????????? ??? ????? ?????? ??? ????? ?????? ????? ???? ??????? ??????? ?? ?????? ????????? ????? ?????? ?? ???????? ?? ???? ??? ??? ??? ?????? ???????.
???? ????? ??? ASP.NET
?????? ??? ?????? ??? ?????????? ??? ????? ??? ????? ??????? ??? ???????? ???? ???? ????????? ???? ????? ??? ?????? ??????? ?? ???????? ?????? ????? ??????? ???????? "??????? ???". ????? ????? ??????? ?????????? ?????? ?? ???????? ?????? ??? . ???? ???? ?????? ??? ??????? ?? ????? ?????? ?? ??? ??????.
????? ???? | ?? ????

?? ??? ??????

?????

????? ?? ???? ????? ??? ASP.NET! ???? ????? ????? ?? ???????? ????. ??? ?? ?? Microsoft ???? ?? 5 ?????? ????? ???? ?????? ?? ??? ???? ??? ???????? ??? ????? ????????? ??? FrontPage ??????? ?????? SharePoint. ??? ???? ????? ?????? ?? ????? ?? ASP.NET ????? ?????.

??? ????? ?? ???? "????? ???"? ??? ???? ???? "????? ???" ??????? ???????? ?? ??????? ?????? ?? ASP.NET 2.0.

???? "????? ?????" ?? ASP.NET 2.0

????? ?? ??????? ??????? ???????? ???????? ?? ASP.NET 2.0 ?? ??? ???? ??????? ???????? ?? ??? ???? ?????? ???????. ?? ???? ????? ??? Web.config? ????? ??????? ???? ?????? ??????? ????? ???? ?? ??? ???????? ????????? ???????? ?????? ???????? ?????? ?????? ?? ?????? ???? ???? ????? ?? ??????? ????? ??. ??? ?????? ???? ??????? ??? ????? ????? ????? ?????? ????? ??? ????? ??????? ????? ????? ?? ASP.NET 2.0.

??? ????? ??????? ?? ???? ????? ????? ???? ???? ???? ??????? ?? ????. ???? ??????? ??? ??????? ???? ??? ??????? ??? ??????. ??????? ???????? ??????? ?????? ?? ?????? ??????:
?? ??? ??????????? ??? ??????
????????????? ????? ???????? ????? ???????. ????? ??? ????? ??????? ????? ???????? ??? ??? ?????? ??? ?????? ?????? ????? ???? ?? ??? ?????? ????? ????????? ????? ?????? ? ?????? ?????.
????????????????????? ????? ???????? ?????? ???????? ??? ??? ???? ??????? ???? ??? ?????? ???????.
????????????????????? ???? ?? ??????? ?? ??? ??????? ??????? ??????? ??????? ??????? ??????? ???? ??? ??????? ?????.
????????????????? ???????? ?????? ????? ?????? ???? ?????? ???? ????? ??? ?????? ??? ??? ???????? ???? ?? ?? ???????? ???.
???????????????????? ???????? ????? ??????? ??? ???????.
??????????????????? ???????? ????? ??????? ???? ???? ??? ????? ??????.
????? ?????? ???? ?? ?????? ??????? ????? ?????? ????? Windows ????? SQL Server? ????? (WMI)? ? ?????? ??????????. ????? ??????? ??????? ????? ?????? ????? ?????? ????? ??????? ?????? ??? ????? ????? ?????.

?????? ASP.NET 2.0 ????? ????? ????--??????? ?????? ????? ???????? ??? ?????? ??????? ??? ????? ??????? ???? ?? ????? ?? ??????????? ??? ????????. ???? ????? ??? ????? ??? ???????????? ????????. ??? ???? ??????? ?????? ?? ??????? ????? ?? ???? ??? ???????????? ???? ???????? ?? ???? ????? ??? ????? ????? ??????. ?? ????? ??? ??????? ??????????? ?? ????? ?? ??? ??????? ????????? ??????? ?????? ??? ???? ???? ?? ?? ?? ??? ????? ???. ??? ??? ??? ??????? ????? ?? ??? ????? ???? ???? ?????? ????? ????? ?? ??? ??????? ?????? ?? ??? ??? ??? ????? ????? ???? ???????? ?????? ????? ????? ???? ??????? ?? ?????? ?????.

????? ??? ???? ?????? ????? ???????. ??? ???? ??????? ????? ????? ????? ??? ?????? ??????? ???? ??????? ????? ??? ?? ?? ?????? ????? ?????? ????? ???? ?? ????????? ??? ???? ??? ?????? ?????????? ????? ??. ???? ?? ??? ?????? ??? ??????? ?????? ?? ?????? ?????? ???????. ??? ?? ?????? ??? ???? ?? ????? ??? ?? ?? ??? ??? ?????? ?? ??? ?????? ????? ???? ???? ?? ??? ??? ????? ?????? SQL Server. ????? ???? ????? ??? ??? ??? ?????? ?? ????? ?????? ??? ???? ?? ??? ?????? ????? ?????????? ????? ??????? ??? ?????? ??????????.

????? ????? ????????? ???? ??? ??????? ?? ??? Web.config ????????. ??? Web.config ???????? ???? ?????? ???? ???????? ??? ??? ????????? ???? ?? ??????? ?? ??? Machine.config ?? ASP.NET 1 x. ??? ??? ????? Web.config ???????? ?? ?? ??? ??????:
%windir%\Microsoft.Net\Framework\v2.0.*\config\Web.config
????? <healthMonitoring>?? ??? Web.config ???????? ???? ??????? ??????? ??????????. ????? ????? ??? ????????? ?? ????? ????????? ?????? ?? ?? ???? ????? <healthMonitoring> ???? ?? ??? Web.config ??????? ????? ??.

????? ????? ??? ???? <healthMonitoring>?? ??? Web.config ???????? ??????? ???????: </healthMonitoring></healthMonitoring></healthMonitoring>
  • ????? ????? ??? ????? ????? ??????? ? WMI ? SQL ????.
  • eventMappings ????? ??????? ?????? ???? ??????. ????? ????? ??? ??????? ??? ??? ?????? ??? ??????? ?????? ??. ????? ??? ??????? ?????? ?? ???? ?? ??? ???????? ??? ????? ????? ??????? ???. ?? ??? ??? ???? ??????? ???? ????? ??????????? ??? ???????? ???? ??????? ??? SQL Server? ????? ????? ??????? ??????? ?????? ?? ??? ?????? ??????????.
  • ????? ???????? eventMappings ??????.
  • ??????? ?????? ??????? ????? SQL Server ??????? ?????????? ?????? ??? ???? ???? ??????? ??????.
???? ??? ???? ????????? ?????? ?? ??? Web.config ????????.
<healthMonitoring>

	<!--  Event Log Provider being added. -->
	<providers>
      		<add name="EventLogProvider" type="System.Web.Management.EventLogWebEventProvider,System.Web,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" />
	</providers>


	<!--  Event mapping provides a friendly name to the events based on the WebBaseErrorEvent class.  -->

	<eventMappings>
			<add name="All Errors" type="System.Web.Management.WebBaseErrorEvent,System.Web,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"
						startEventCode="0" endEventCode="2147483647" />
	</eventMappings>


	<!-- Rule tying the "All Errors" event mapping to the EventLog Provider.  -->
	<rules>
      		<add name="All Errors Default" eventName="All Errors" provider="EventLogProvider"
						profile="Default" minInstances="1" maxLimit="Infinite" minInterval="00:01:00"
						custom="" />
	</rules>

</healthMonitoring>

????? ??????

????? ??? ??????? ???? ??? ??????? ???????:
  • ViewEvents.aspx ????? -???? ?????? ????? ??? ????? ??????? ?? ??? Page_Load ??? "????? ?????" click . ??? ??? ?????? ?????? ????? ????? ???????? ?? ??? Web.config ???? ??????? ????? ??? SQL Server.

    ???? ?? ????? ????? _ ??????? ?? ??? Web.config ??????? ??? ????? ???????? ASPNETDB .
  • ????? ??? Web.config ? ????? ????? ?????? ????? ? ???????. ?? ?????? ????? ??????? ???? ???? ??????? ?? ?????? ??????? Default.aspx ? ViewEvent.aspx ?????? ?? ???? ??????? ???.
  • ??? MyEvent.cs ? ????? ?? ???? App_Data. ??? ??????? ??? ?????? ViewEvents.aspx ?????? ??? ????.
  • ???? default.aspx -???? System.NullReferenceException ???? ?? ?? ????? ????? ?????????.
  • ??? EmailTemplateTest.aspx -???????? ???? ??????? ???????????????????. ????????? ????????-??? ????? ?? ?????? ????? EmailTemplateTest.aspx ????? ??? ???? ????????? ???????? ???? ???? ???????? ???? ???? ?????? ????? ???? ???????.

????? ????? ??????? ??? "???? ???????"

??? ???? ?????? ?????? ??????? ?? ???? ??????? ?? ????? ?? ??? Web.config ????????. ???? ???????? ??? ????? ???? ??????? ???? ????? ??? ?????????????? ? ?????????????????? . ????? ????? ????? ?????? ???? ?????? ???? ?? ????????? ?? ??? ???????. ??? ???? ??????? ??? ??? ???? ????? ???? ??????? (??? ?? ??? ???? ??? ??????????)? ????? ????? ??????? ??????? ??? ??? Web.config:
<healthMonitoring>
	<rules>
		<add name="All Events" eventName="All Events" provider="EventLogProvider" profile="Critical"  />
	</rules>
</healthMonitoring>
??? ??????? ???? ???? ????? ???? ??????? ??? ???? ??? ???????. ??? ??????????? ? ??? ????? ???? ?? ??? Web.config ????????. ?? ????? ??????? ?????? ViewEvents.aspx ?????? ??????? ???? ?? ??????? ?? ???? ??????? ??????. ????? ???? ???? ????? ???? ????? ?????? ??????? ?? ??? Page_Load ????? ??? ???? .

??????? ??? ???????? ???? ?? ???????? ?????? ?????? ?????? Default.aspx. ??? ???? ??? ??????? System.NullReferenceException ? ????? ????? ????? ?????? ?? ????? ????:

??? ?????: ?????
???? ?????: ASP.NET 2.0.50601.0
??? ?????: ??? ???
???? ?????: 1311
???????: 8/16/2005
?????: 9:37:44 ?
????????: n/A
???? ?????????: ??? ?????????
?????:
??? ?????: 3005
????? ?????: ??? ??????? ??? ?????.
??? ?????: 8/16/2005 9:37:44 ?
??? ????? (UTC): 8/17/2005 2:37:44 ?
???? ?????: 88838b4e73cf4a0d9a36ac737ff9d1a0
????? ?????: 39
????? ?????: 1
??? ?????? ?????: 0
??????? ???????: ???? ???????: d047d537-2-127687190240098660
????? ?????: ??????
??????? ??????? ??????:/WebSite3
???? ???????: ????? ????
??? ??????: ????????? ???
?????? ???????: ???? ???????: 3776
??? ???????: WebDev.WebServer.EXE
??? ??????: ?????? \ ????????
??????? ?????????: ??? ?????????: ???????????????????
????? ?????????: ???? ???? ?? ??? ????? ??? ???? ?????.
??? ???????: ??? ????? URL: http://localhost:1698/WebSite3/Default.aspx
???? ?????: /WebSite3/Default.aspx
????? ???? ????????: 127.0.0.1
????????: ??????/????????
??????: ????
??? ????????: NTLM
???? ??????? ??? ??????: ?????? \ ????????
??????? ???? ???????:
???? ???? ???????: 8
???? ??????? ??? ??????: ?????? \ ????????
??????: ???

???? ???? ????? ???????: ?? _Default.Page_Load (?????? ??????? EventArgs e) ?? c:\Documents ? Settings\user\Desktop\WebEvents\WebSite3\WebSite3\Default.aspx.cs:line 15
?? System.Web.Util.CalliHelper.EventArgFunctionCaller (IntPtr fp? ?????? ?? ???? t, EventArgs e)
?? System.Web.Util.CalliEventHandlerDelegateProxy.Callback (?????? ??????? EventArgs e)
?? System.Web.UI.Control.OnLoad (EventArgs e) ?? System.Web.UI.Control.LoadRecursive()
?? System.Web.UI.Page.ProcessRequestMain (????????????????????????????? ??????? ????????????????????????????? ??????)

?????? ????? ??????: ????? ?? ????????? ?????? ??? ?????????? ???? ???? ????????? ?????? ?? http://support.microsoft.com.

????? ???? ??????? ??? ??? ??????? ???? ??????? ??????????? ????. ???? ????? ?????? ????? URL ??? ?????? ???? ??????:

????? ?????: ???????
???? ?????: ASP.NET 2.0.50601.0
??? ?????: ??? ?????
???? ?????: 1314
???????: 8/16/2005
?????: 11:04:44 ?
????????: N/A
???? ?????????: ????????? ???
?????:
??? ?????: 4003
????? ?????: URL ??? ??????? ?????.
??? ?????: 8/16/2005 11:04:44 ??? ?????
??? ????? (UTC): 8/17/2005 4:04:44 ?
???? ?????: fec3d73fba0247eaba425e5ccfada18e
????? ?????: 2
????? ?????: 1
??? ?????? ?????: 0
??????? ???????:
???? ???????: d047d537-1-127687250829701433
????? ?????: ??????
??????? ??????? ??????:/WebSite3
???? ???????: C:\Documents ? Settings\user\Desktop\WebEvents\WebSite3\WebSite3\
??? ??????: ??? ?????????
??????? ???????:
????? ????: 2292
??? ???????: WebDev.WebServer.EXE
??? ??????: ??????/????????
??? ???????:
??? ????? URL: http://localhost:2087/WebSite3/Default.aspx
???? ?????: /WebSite3/Default.aspx
????? ???? ????????: 127.0.0.1
????????: ??????/????????
??????: ????
??? ????????: NTLM
???? ??????? ??? ??????: ?????? \ ????????

?????? ????? ??????:
????? ?? ????????? ?????? ??? ?????????? ???? ???? ????????? ?????? ?? http://support.microsoft.com.

????? ????? ??????? ??? SQL Server

?????? ??? ??????? ????? ASPNETDB ? ???? ?? ??????? ?????? ???? Aspnet_regsql.exe. ????? ?????? ?????? ????????? ?? ????? ??????? ??????????????? ???? ?????? ??? ????? ???????? ??? ??? ?? ???? App_data ?? ???? SQLExpress ???? SQL Server. ??? ?? ????? ??????? ?????????????? ??????????? ????? ?? ??? Web.config ????????.

?????????????? ???? ????? ??????? ?? ??? Web.config ???????? ??? ???:
<connectionStrings>
	<add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" />
</connectionStrings>
??? ??? ???? ??????? ???? SQL Server ???? ??? ????? ??? ??????? ???? Aspnet_regsql.exe? ????? ???? ?????? ??? ???? %windir%\Microsoft.Net\Framework\v2.0.*\Aspnet_regsql.exe. ??????? ???? Aspnet_regsql.exe ?????? ????? ?????? ????? ASPNETDB ??? ???? SQL server? ?? ?????? ????? ??????? .config ????????? ?????? ?? ??? ???? ?? ?? ?????? ???? ???????? ?????? ????? ???????. ????? ??? ????? ????? ???????? ASPNETDB ? ?????? ??? ????? ????? ???? ??????????? ???????????.

?????? ????? ?????? ?????? ???? ??????? ???????:
  1. ????? ????? ?????? ASPNETDB .
    1. ????? aspnet_regsql.exe ?W? ????? ?????.
    2. ?? ?????? ????? ?????? ???????: Aspnet_regsql ??? ? S w ???? SQL -E.
  2. ????? ????? ????? ???? ???? ??? ????? ????????? ??? ??? ???? ??? ???:
    <connectionStrings>
    	<add name="MYASPNETDB" connectionString="Server=<SQL Instance>;Integrated Security=SSPI;Database=aspnetdb"/>
    </connectionStrings>
  3. ????? ???? ??????? ????? ??????? ??????????? ??? ??? ???? ??? ???:
    <healthMonitoring>
    	<providers>
    		<add name="MySqlWebEventProvider" type="System.Web.Management.SqlWebEventProvider" connectionStringName="MYASPNETDB" maxEventDetailsLength="1073741823" buffer="false"/>
    	</providers>
    </healthMonitoring>
?????? ??????? ????????? ??????????? ?? ????? ?????? ?? ????? ??? ????? ??? ????? ????? ??? ?????? ?? ???? ???. ????? ???? ??????? ??????? ?????? ?????? ???? ??? ??????? ????? ??? ???? ????? ???? ??????? . ???? ????? ???? ??????? ???????? ??? ?????????? ??? ??????? ???????? ??? ????????????????????? ???? ??????? ????? ??????? ??????????. ???? ???????? ???????? ??????? ????? ????? ???? ?????? ?? ???? ???:
<healthMonitoring>
	<rules>
		<add name="All Events" eventName="All Events" provider="MySqlWebEventProvider" profile="Critical"/>
	</rules>
</healthMonitoring>
??? ??? ???? ??? ????? ??????? ??? SQL Server? ????? ????? ??????? ???????:
<add name="All Errors" eventName="All Errors" provider="MySqlWebEventProvider" profile="Critical"/>

????? ????? ????? ??????? ??? WMI

????? ???? ????? ????? ??????? ??? WMI. ???? WMI ????? ?? ??? Web.config ???????? ???? ???????.

????? ???? ???????? ???????? ??????? ????? ????? ?????? ????? ??????? ??? WMI:
<providers>
	<add name="WmiWebEventProvider" type="System.Web.Management.WmiWebEventProvider,System.Web,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
??? ????? ??? ????? ????? ???? ??????????? ????? ????? ????? ???? ????? WMI ???????? ???????. ????? ???? ???????? ???????? ??????? ????? ????? ???? ???? WMI ??? ???? ????? ???? ??????? :
<rules>
	<add name="All Events" eventName="All Events" provider="WmiWebEventProvider" profile="Critical"  />
</rules>
?????? ????? ????? ???? ?????? ??????????? ?????? ????????????????????? ??????? ??????? ?????? ?? ???? ?????? ????.
???????? ???????????? ???? ??????? ???????:
  1. ?? ?????? SampleASPNET.exe.
  2. ??????? ?????? ViewEvents.aspx; ??? ????? ???? ??? ??? ??????? ???????? ?? ????? ???? ??????.
  3. ???? ??? ????? ????? Button_Click. ?????? ???? ????? ?????? ????? ???? ????? ????? ??????.
?? ??? ??????????? ??? ??????
893664
?????? ??? ??? ????? ??????? ??? ??????? ????? ???????? ????? ??????? ??? ??????? ??? ??? ????????? ????? ??????? ??????.

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

????? ???? ????? ????? ??????? ??? ?????? ??????????. ???? ?? ?????? ??? ??? ??????? ??? ??????? ????? ?? ?????? ?? ????? ?? (???? ????) ???? ??????. ?? ????? ??? ????? ????? ???? ???? ?????? ??? ???? ?????? ??????????? ??? ??? ????? ???? ???? ?? ????????? ???? ?? ???? ???? ?????? ????? SQL ?? ??? ???????.

???? ????? ?? ?????? ?????????? ?????? ?????????????????????????? ??????????????????????????????. ?? ??? ???? ???????? ???????? "????" ? ???? "????????????????????"? ???? ????? ??? ??? ?????????????????????????????.

?????? ??? ????? ?? ?? ??? ????? ?????? ?????????? ??. ???? ????? ??? ??????? ??? ??? Web.config ????? ??.

???????? ??????? ??? ??? ????? ?????? ?????????? ????? ?? ?????????????????????????? ?????? ????? ?????? ?????????? ???? ??? ???? ???????. ????? ??? Web.config ???? ???? ?????? ?????????? ??? ??? ????? ?????? ?? ??????? ???????? ????? ?????? ???????:
<add name="mySimple-mailWebEventProvider" type="System.Web.Management.Simple-mailWebEventProvider"
to="e-mail@foo.com" from="e-mail@foo.com" maxMessagesPerNotification="1" maxEventsPerMessage="10"
buffer="true" bufferMode="Critical Notification"
subjectPrefix="Web Events"/>
??? ???? ????? ??????? ??????? ???? ???? ?????? ?????????? ??? ???? ????? ???? ??????? :
<add name="All Events" eventName="All Events" provider="mySimple-mailWebEventProvider" profile="Critical"/>
????? ????? ?????? ?????????? ?????? ??? ???:
???????: ????? ????? 12? ????? 1: ??? ??? EventsMicrosoft.Samples.WebEvents.MyEvent ?? /WebSite3

* * ??????? ??????? **
---------------
???? ???????: d047d537-9-127687218865923053 ????? ?????: "?????? ??????? ???????" ??????: ???? ??????? WebSite3: C:\Documents and Settings\user\Desktop\WebEvents\WebSite3\WebSite3\ ?????? ?????:<computer name="">

* * ????? * *
---------------
????? ????????? ????????: 100010
????? ?????: Button1_Click
??? ?????: 8/16/2005 10:12:52 ?
??? ????? (UTC): 8/17/2005 3:12:52 ?
???? ?????: ????? ??????? 6e5cd252d6114a9e98687598dc6b5d50: 12 ???? ?????: ??? 5 ????????? ???????? ????????: 0

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

---------------</computer>
?????? ????? ??????? ?????????? ????? ???? ??????? ??? ?????:
???????: ????? ????? 7? ????? 1: ??? ??? EventsSystem.Web.Management.WebRequestErrorEvent ?? /WebSite3

* * ??????? ??????? **
---------------
???? ???????: d047d537-5-127687293149504903 ????? ?????: "?????? ??????? ???????" ??????: ???? ??????? WebSite3: C:\Documents and Settings\user\Desktop\WebEvents\WebSite3\WebSite3\ ?????? ?????:<computer name="">

* * ????? * *
---------------
????? ????????? ????????: 3005
????? ?????: ??? ??????? ??? ?????.
????? ?????: 8/17/2005 12:17:37 ?
??? ????? (UTC): 8/17/2005 5:17:37 ?
???? ?????: ????? ??????? 14b7f24102e140bbbae302d80e5a5f36: ??? 7 ???????: ??? ?????? ????? 1: 0

??????? ???????:
????? ????: 2292
??? ???????: WebDev.WebServer.EXE
??? ??????: ??????/????????

??????? ?????????:
??? ?????????: System.NullReferenceException
????? ?????????: ?? ??? ????? ???? ???? ??? ???? ?????.

??? ???????:
??? ????? URL: http://localhost:2087/WebSite3/Default.aspx
???? ?????: /WebSite3/Default.aspx
????? ???? ????????: 127.0.0.1
????????: ??????/????????
??????: ????
??? ????????: NTLM
???? ??????? ??? ??????: ?????? \ ????????

??????? ???? ???????:
???? ???? ???????: 7
???? ??????? ??? ??????: ?????? \ ????????
??????: ???
???? ??????? ??????? ????: ?? _Default.Page_Load (?????? ??????? EventArgs e) ?? c:\Documents ? Settings\user\Desktop\WebEvents\WebSite3\WebSite3\Default.aspx.cs:line 15
?? System.Web.Util.CalliHelper.EventArgFunctionCaller (IntPtr fp? ?????? ?? ???? t, EventArgs e)
?? System.Web.Util.CalliEventHandlerDelegateProxy.Callback (?????? ??????? EventArgs e)
?? System.Web.UI.Control.OnLoad (EventArgs e) ?? System.Web.UI.Control.LoadRecursive()
?? System.WebUI.Page.ProcessRequestMain (????????????????????????????? ??????? ????????????????????????????? ??????)</computer>
????????????????????????????? ???? ?? ?????? ???? ASPX ?????--????? ???? ???. ????? ?????? ?? ?? ????? ?????? ??????????? ??? ???? ?? ????? ?????? ASPX ????? ???? ???????? ???? ???????.

????? ??????? ?????? ???????? ???????? ??????? ?????? ????????????????????????????? ??? Web.config ??? ?????? ?????? EmailTemplateTest.aspx ???????. ( ?????? EmailTemplateTest.aspx ????? ??? ??????? ???????? ?? ?????? ??????? ????? ?????? ?? ????.)
<add name="myTemplatedMailWebEventProvider" type="System.Web.Management.TemplatedMailWebEventProvider"
to="e-mail@foo.com" from="e-mail@foo.com " buffer="true"
bufferMode="Critical Notification" maxMessagesPerNotification="10" maxEventsPerMessage="10"
template="e-mailTemplateTest.aspx" detailedTemplateErrors="false" />
????? ????? ?????? ?????????? ?????? ??? ???:
???????: ????? ????? 3? ????? 1:10 ??????? ??????? ?? /WebSite3

????? ???? ??? ??????? ????????? ???????? ????? ???
4 System.Web.Security.UrlAuthorizationModule 8/17/2005 12:40:45 ? 4003 0 URL ??? ??????? ?????.
4 8/17/2005 12:40:45 ? 4004 0 ??? ????? ????? ?????.
7 ASP.ViewEvents_aspx 8/17/2005 12:40:45 ? 100010 ????? ???? ????? ???????? 0
8 ???? ??????? ??????.ViewEvents_aspx 8/17/2005 12:40:45 ? 100010 0 Button1_Click
5 SystemWeb.Security.UrlAuthorizationModule 8/17/2005 12:40:45 ? 4003 0 URL ??? ??????? ?????.
5 8/17/2005 12:40:45 ? 4004 0 ??? ????? ????? ?????.
9 ASP.ViewEvents_aspx 8/17/2005 12:40:45 ? 100010 ????? ???? ????? ???????? 0
10 ???? ??????? ??????.ViewEvents_aspx 8/17/2005 12:40:45 ? 100010 0 Button1_Click
6 System.Web.Security.UrlAuthorizationModule 8/17/2005 12:40:46 ? 4003 0 URL ??? ??????? ?????.
6 8/17/2005 12:40:46 ? 4004 0 ??? ????? ????? ?????.
?? ???? ????????? ??? ??? ????? ?????? ?????? ??? ????? ??? ????? ????? ?????? ?????????? ??? ??? ???? ???. ???????? ??????? ?????? ??????? ??? true? ????? ???? ??? ????? bufferMode? ???? ???? ??? ??? ???? ??? ?????? ??????. ???? ??? bufferModes ????????? ?? ??????? ???????? ??? Web.config.

??? ???????????????????? = "true"? ?? ?? ????? ???? ???? ????? ???? ?????? ???? ????? ?????? ?? ???? ?????? ??????????. ??? ???????????????????? = "false"? ??? ????? ??? ???.

A ??? ?????? EmailTemplateTest.aspx ??? ????? ???? ??? ???:
??? ?? ?????? ?? '/WebSite3' ???????.

?? ??? ??????? ??? ??????? ????? ????? ???? ?????? ????????? ?????? ????? ????? ???. ?? 1 ????? ???? ??? ?? ??? ??????? ?????.

?????: ??? ??????? ??? ????? ????? ????? ??? ??? ??????. ?????? ?????? ???? ?????? ????? ?? ????????? ???? ?? ????????? ??? ????? ????? ????? ?? ????????? ????????.

?????? ?????????: System.Web.HttpException: ???? ???? ???? ????? ???? ??????? ??? ????? ??? ????? enablesessionstate ??? ?????? ??? true? ??? ?? ????? ????? ?? ?? ????? ??????. ?????? ?????? ?? ??? ????? System.Web.SessionStateModule ?? ???? ????? ???? ???? ??? ???? ?? <configuration>\<system.web>\ ???<httpModules> ?? ????? ???????.

????? ??????: c:\Documents ? Settings\user\Desktop\WebEvents\WebSite3\WebSite3\e-mailTemplateTest.aspx.cs ?????: 17

???? ???? ??????? ???????: [HttpException (0x80004005): ???? ???? ???? ????? ???? ??????? ??? ????? ??? ????? enablesessionstate ??? ?????? ??? true? ??? ?? ????? ????? ?? ?? ????? ??????. ?????? ?????? ?? ??? ????? System.Web.SessionStateModule ?? ???? ????? ???? ???? ??? ???? ?? <configuration>\<system.web>\ ???<httpModules> ?? ????? ???????.]
System.Web.UI.Page.get_Session() +146
e-mailTemplateTest.Page_Load(Object sender, EventArgs e) ?? c:\Documents ? Settings\user\Desktop\WebEvents\WebSite3\WebSite3\e-mailTemplateTest.aspx.cs:17
System.Web.Util.CalliHelper.EventArgFunctionCaller (IntPtr ????? ??????? fp? ?????? ?? ???? t, EventArgs e) + 13
System.Web.Util.CalliEventHandlerDelegateProxy.Callback (?????? ??????? EventArgs e) + 45
System.Web.UI.Control.OnLoad (EventArgs e) + 80
SystemWeb.UI.Control.LoadRecursive() + 49
System.Web.UI.Page.ProcessRequestMain (?????? ?????????????????????????????? ????????????????????????????? ??????) +3749

[???????????????????? (0x80004005): ??????? ?? ??? ?? 'System.Web.HttpUnhandledException' ???].
System.Web.UI.Page.HandleError (??????? e) +929
System.Web.UI.Page.ProcessRequestMain (?????? ?????????????????????????????? ????????????????????????????? ??????) +7864
System.Web.UI.Page.ProcessRequest (?????? ?????????????????????????????? ????????????????????????????? ??????) +229
System.Web.UI.Page.ProcessRequest() + 12
System.Web.UI.Page.ProcessRequest (HttpContext ????) + 80
System.Web.HttpServerUtility.ExecuteInternal (????? IHttpHandler? ???? TextWriter? ???????????? ??????? ?????? VirtualPath? VirtualPath filePath? ????? ??????? ??? ???????? ????? ??????????????????) +1012

[HttpException (0x80004005): ??? ?? ????? ????? ?????? ? /WebSite3/e-mailTemplateTest.aspx.]
System.Web.HttpServerUtility.ExecuteInternal (IHttpHandler ?????? ??????? TextWriter? ???????????? ??????? ?????? VirtualPath? VirtualPath filePath? ????? ??????? ??? ???????? ????? ??????????????????) +1525
System.Web.HttpServerUtility.Execute (????? ??????? ???? TextWriter? ???????????? ??????) +754
System.Web.HttpServerUtility.ExecuteLocalRequestAndCaptureResponse (????? ??????? ??????? TextWriter? ?????????????????????? ??????????????????????) 249</httpModules></system.web></configuration></httpModules></system.web></configuration>
??? ???? ????? ??? ????? ????? ???? ???? ???? ??? ?????? ??? ????? ??? ????? ???? ???? ??? ???:
?????? ??? ?? '/WebSite3' ???????.

??? ??????? ??? ????? ????? ????? ???? ?????? ????????? ?????? ??? ????? ???????. ???? 8 ????? ???? ??? ?? ??? ??????? ?????.

?????: ??? ??????? ?????? ?????? ????????? ????? ?? ??? ???????. ????? "???????????????????? = true" ????? ?????? ?????? ?????? ?????? ????????? ??????? ????.
?????? ?????? ???????? ???????? ??????? ?? ???? ???? ???????. ??? ??? ????? ?????? ??? ??????? ???? ??? ???? ?? ??????????????????? ? ???? ????? ??????? ??? ??? ????? ???? ???????? ??????? ???? ???? ???? ????? ?? ??????? ????. ??? ???? ??????? ????? ???? ????? 13? ????? ??? ???? ??????????????????? ????. ??? ???? ??? ????? ?????? ?????????? ???????: ????? ??????? ????? ?????? ?????????? ?? ?????? ???? ?????? ??????? ?????????? ?????? ?????? ??? ????? ???????.

??? ???? ???? ????? ?????? ?????????? ???? ??? ???? ?? ???????????????????????? ? ??? ????? ??? ???????. ??? ???? ??????? ??? ??? ?????? ???????????????????????? ?????? ?????? ??????? ??? ??????????????????? ???????? ?????? ?????? ??? ????? ?????? ?????????? ?????. ??????? ???? ????? ??? ?????? ??? ????? ?????? ??????????. ?? ?????? ?? ???????? ?? ????? ????????? ?? ???? ????? ?????? ?????????? ????? ???? ????. ???? ????? ????? ?????? ?? ????? ?????? ?????????? ??????:
** ??????? * *
---------------
??????? ???? ??????? 10 ???? ????? ???? ??????? ??? ???? ?????? ???? ??????? ???? ??? ????? ???????. (???? ???????: 101)
??? ?????? ?? ????? ?????? ?????????? ????? templated? ???? ???? ????? ?? ??????/???????? ???? ?????? ?? ??? ??? ???? ????? ???? ?? ?????? ??????????.

?????? ??????? ????? ????? ?????? System.Net.Mail? ???? ??? ???? ????? System.Net.Mail ?? ????? Web.config ????? ??.

????? ?? ????????? ??????? ?? ???? ??????? ASP.NET? ?? ?????? ???? ??? Microsoft ??????? ??????:
healthMonitoring ?????? (???? ??????? ASP.NET)
http://msdn2.microsoft.com/library/2fwh2ss9(en-us,vs.80).aspx
????? ?? ????????? ??? ?????? ??????? ?? ASP.NET 2.0? ?? ?????? ???? ??? Microsoft ???????:
????? ??????? ?????? ????? ?? ASP.NET 2.0
http://msdn2.microsoft.com/en-us/library/ms998306.aspx
??? ??????? ????? ?? ????? ?? ????? ????? ??? ???????? ???? ?????? ?? ???????? ????? ?? ?? ????? ??????? ???????? ?????? ??? .

???????

???? ???????: 893664 - ????? ??? ??????: 12/?????/1434 - ??????: 4.0
????? ???
  • Microsoft ASP.NET 2.0
????? ??????: 
kbhowto kbasp kbmt KB893664 KbMtar
????? ????
???: ??? ????? ??? ??????? ???????? ????? ?????????? ??????? ?????? ??? ??????? ?? ??? ??????? ?? ??????? ??? ??? ?? ???? ????????? ???? ??????? ???????(CTF) ?? ?? ???? ????? ????. ???? ?? ???? ?????????? ??? ???????? ???????? ???? ??? ?? ???????? ??????? ?? ??? ??????? ???????? ?? ??? ??????? ??????? ??? ?????? ?? ?????? ??? ???? ???????? ???????? ?? ????? ??????? ????? ????? ??????. ??? ?? ???????? ???????? ?? ????? ??? ????? ?? ???????? ?? ???? ????? ?? ?????. ?????? ??? ???? ?????????? ???? ?????? ?? ??? ????? ?? ??? ??? ?? ??????? ?? ??? ????? ?? ???? ????? ????? ?? ????? ??????? ???? ?? ???????? ?? ??? ???????.
???? ??? ????? ??????? ?????? ??????????893664
????? ??????? ?? ????? ???? ?? ????? ???????
?? ????? ????? ?????? ???? ???? ???? ??? ??????? ??? ?? ? ?? ??? ??????? Microsoft ??? ????? ??? ??????? ????? ?????? ?????

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

 

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