Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 921783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:55:16+00:00 2026-05-15T18:55:16+00:00

In the examples on their website, PostSharp has a demo of intercepting calls in

  • 0

In the examples on their website, PostSharp has a demo of intercepting calls in main system assemblies. I have tried a few times to setup and replicate said intercept calls on assemblies I don’t have the source code for with no success.

My approach was to simply place the assembly level attribute targeting the namespace and method I wanted to instrument. This has never worked for me.

something like:

[assembly: Trace(“MyCategory”, AttributeTargetTypes = “My.BusinessLayer.*”)]

Am I missing something here? Can I not do a runtime injection of my instrumentation aspect on a assembly if I don’t have the source pulled in for it? I thought I could do runtime injections…

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T18:55:16+00:00Added an answer on May 15, 2026 at 6:55 pm

    You can trace methods of other assemblies by specifying:

    [assembly: Trace("MyCategory",
                     AttributeTargetAssemblies="xyz",
                     AttributeTargetTypes = "My.BusinessLayer.*")]
    

    However, the external assembly will not be modified! Only calls from the current project to the external assembly can be modified.

    It is currently not easy to modify assemblies you don’t have the source of. This is possible, but is considered an advanced scenario and requires custom coding.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a few nearly identical functions, except for their names. For example:
I have a website where users can enter their Twitter Login information. This site
I am following IBM's example from their website: (listing #5) http://www.ibm.com/developerworks/library/l-bash-parameters/index.html #!/bin/bash echo OPTIND
Tried examples from 'php.net' but don't understand what's the problem. Any suggestions? <?php $_SESSION['test']
on my website I have an Enroll page where users submit some basic information,
From the examples that I have read and from the documentation on MysqlConnectionPoolDataSource at
We have a few different websites running on the same server that all access
To save time Googling my website in order to see where my pages have
I have been requested by a client to pull the latest posts from their
I'm not familiar with ASP, but am helping someone out with their website as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.