Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / August 2004

Tip: Looking for answers? Try searching our database.

Identifying "System" assemblies in a stack trace

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gopalakrishnan N.T - 11 Aug 2004 12:59 GMT
Hi,

I am using the StackTrace class to loop through the entire stack trace of my application. I am doing this to check my calling assemblies for some security purposes. But I have a problem now. I don't want to check on "system" assemblies (like System.Windows.Forms, etc.). I have to stop looping through the stack trace the moment I enter into the "system" area. And I don't want to check by name (like checking for assemblies starting with "system."), as this would also mean a kind of security risk. Is there any other reliable way that I can differentiate between "system" assemblies and other assemblies on the stack trace?

Thanks and Regards,
N.T.Gopalakrishnan

-----------------------

<Id>A9mx2FmF9UKEW+lfLgOpPw==</Id
Andriy Gnennyy - 23 Aug 2004 07:28 GMT
Hi,
You could check the assembly public key token (using
AssemblyName.GetPublicKeyToken method).
In this case, you will be able to compare the token value to well-known ECMA
and Microsoft tokens.
Signature

Andriy Gnennyy
pulsar2003@{no-spam}email.ru (Please remove {no-spam} for reply)
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx

Hi,

I am using the StackTrace class to loop through the entire stack trace of my
application. I am doing this to check my calling assemblies for some
security purposes. But I have a problem now. I don't want to check on
"system" assemblies (like System.Windows.Forms, etc.). I have to stop
looping through the stack trace the moment I enter into the "system" area.
And I don't want to check by name (like checking for assemblies starting
with "system."), as this would also mean a kind of security risk. Is there
any other reliable way that I can differentiate between "system" assemblies
and other assemblies on the stack trace?

Thanks and Regards,
N.T.Gopalakrishnan

-----------------------

<Id>A9mx2FmF9UKEW+lfLgOpPw==</Id

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.