|
 |
aspdotnet_website_programming thread: [aspdotnet_website_programming]
Message #1 by "Blue Tiger" <bluetiger@m...> on Wed, 12 Feb 2003 02:31:11 -0500
|
|
Also,
When reading the book, I noticed that the AppException is dependent
on EventViewer. Since I use a hosting provider, I don't have access to
the
EventLog. How can I rewrite the method to log errors in a text file
within
my folders? (see AppException class for example)
The other idea is to remove instances of AppException tracing in the
rest of
the code (but I'm unsure how many instances of this are there & I still
want
to know the errors...soooo)
Any help on this would be greatly appreciated.
Thanks,
Ryan
Message #2 by "Joshi, Sunit" <sjoshi@i...> on Wed, 12 Feb 2003 07:50:41 -0600
|
|
I log errors to an Access Database. This is what I do in the LogEvent method
private void LogEvent(string message, EventLogEntryType entryType)
{
Skm.Accounts.AccountsBusiness.SitePrincipal sp =
new Skm.Accounts.AccountsBusiness.SitePrincipal("admin@s...");
Skm.Accounts.AccountsBusiness.SiteIdentity sid =
(Skm.Accounts.AccountsBusiness.SiteIdentity)sp.Identity;
string connectionString = sid.ConnectionString;
Skm.Accounts.AccountsData.RunQuery oRun =
new Skm.Accounts.AccountsData.RunQuery(connectionString);
oRun.LogError(message, "SkmPageBase", "BaseUser", DateTime.Now.ToString());
}
Sunit
-----Original Message-----
From: Blue Tiger [mailto:bluetiger@m...]
Sent: Wednesday, February 12, 2003 1:31 AM
To: Website Programming with ASP.NET
Subject: [aspdotnet_website_programming] [aspdotnet_website_programming]
Also,
When reading the book, I noticed that the AppException is dependent
on EventViewer. Since I use a hosting provider, I don't have access to the
EventLog. How can I rewrite the method to log errors in a text file within
my folders? (see AppException class for example)
The other idea is to remove instances of AppException tracing in the rest of
the code (but I'm unsure how many instances of this are there & I still want
to know the errors...soooo)
Any help on this would be greatly appreciated.
Thanks,
Ryan
---
Professional Design Patterns in VB.NET:
Building Adaptable Applications
Want to know how design patterns bring reusable
design and adaptabilty to your applications? How
to recognize the need for a design pattern
solution? How to select, design, and implement
the right patterns? How parts of the .NET Framework
(like the .NET Data Providers and .NET Remoting)
take advantage of design patterns? This book
presents a practical approach to using design
patterns in VB.NET, by focusing on the relevance
of design patterns in the different tiers of a
distributed n-tier architecture.
http://www.wrox.com/books/1861006985.htm
|
|
 |