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 6541139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:04:04+00:00 2026-05-25T11:04:04+00:00

The .NET Framework has great features to support compiling code at runtime and running

  • 0

The .NET Framework has great features to support compiling code at runtime and running it, to achieve some kinds of scripting functionalities. There are already some scripting engines available on CodeProject, and Microsoft has its own library as well.

I am working on a web automation software, I want to include the Microsoft scripting engine in the application.

The problem is the scripting engines allow Using all namespace, in the referenced assembly, and I want to restrict the usage to a selected few namespace.

using System; // allowed.
using System.Linq; // allowed.
using System.Reflection; // restrict.

How to restrict the use of namespaces, in the scripts.

  • 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-25T11:04:05+00:00Added an answer on May 25, 2026 at 11:04 am

    Restricting namespaces by name doesn’t accomplish much since the extension can just include a copy of the class you don’t like in its own assembly, but just renamed.

    It sounds like what you really want is a security boundary. Put the extension in an untrusted AppDomain.

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

Sidebar

Related Questions

I understand the .NET 4 Framework has caching support built into it. Does anyone
Microsoft claims that the .Net 3.5 framework has many speed improvements over 2.0. Is
Has the introduction of the .net framework made raw programming in COM and DCOM
Is there a way in the .NET framework to validate that a process has
Does anybody know if Microsoft has already decided which version of the .NET framework
My application is targeted for Compact .Net 1.0 framework. The application has to check
DUPE: Any Yahoo YUI validation framework that I can implement in asp.net MVC? Has
In .NET framework, is it possible to set some of the items in the
.Net framework contains a great class named Convert that allows conversion between simple types,
I want to publish an application which has these requirements: .NET Framework SQL Server

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.