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

  • Home
  • SEARCH
  • 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 889181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:31:38+00:00 2026-05-15T13:31:38+00:00

I just want to write code inside my assembly to detect whether it is

  • 0

I just want to write code inside my assembly to detect whether it is running on a “desktop machine”, or inside the context of an ASP.NET application. This is crucial guys, (licensing purposes), and I don’t want to get fired because I did a mistake.

So, please, be direct and if you please give me some code snippet.

EDIT: I depend on your answers

EDIT v 2.0: What about using in the assembly:

[assembly: "AspNetHostingPermission (SecurityAction.RequestRefuge, Unrestricted=true)]"

to prevent the execution on the web?

  • 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-15T13:31:39+00:00Added an answer on May 15, 2026 at 1:31 pm

    This might be helpful:

    How determine if application is web application

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

Sidebar

Ask A Question

Stats

  • Questions 505k
  • Answers 505k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer To work with Hibernate you need a HibernateTransactionManager: <bean id="authTXManager"… May 16, 2026 at 3:25 pm
  • Editorial Team
    Editorial Team added an answer The initComponent function is called internally on one of the… May 16, 2026 at 3:25 pm
  • Editorial Team
    Editorial Team added an answer It works relatively well, however, if the bot creator caters… May 16, 2026 at 3:25 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

imagine the following environment: an XBAP application running in partial trust mode (default behaviour;
OK, I admit it this code will just look weird to you, and that's
i'm supposed to write code which when given a text file (source code) as
I have some code like: try: do_the_first_part() except SomeError: do_the_next_part() I get an error
I need to write a DHTML page. But, since I have most of the
I want to know how to get access of this [span class=myclass] in below
I have a bit of code below that creates a button on a html
Ok obviously I am fighting .net here ... and the answer is probably that
I'm looking for suggestions for ways to share Android app data between phones running
I'm working on a completion (intellisense) facility for C# in emacs. The idea is,

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.