.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

The Perfect Host: Create And Host Custom Designers With The .NET Framework 2.0

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

The .NET Framework 2.0 introduces a set of classes that can be used to host designers right out of the box. With the understanding of designers you'll glean from this article, you'll be ready to host them in your own apps.

Dinesh Chandnani

MSDN Magazine March 2006

View Complete Post

More Related Resource Links

What is the correct way to create custom host?



I'm going to use aspx pages as templates for code-generator. I found two ways how to achieve it, but with both have troubles.

Test project consists of two files code.cs and test.aspx with only "Hello!" text.

namespace TestHost
    public class CodeGenHost : MarshalByRefObject, IRegisteredObject
        public void Generate()
            using (StreamWriter sw = new StreamWriter("out.txt", false, Encoding.Default)) {
                HttpRuntime.ProcessRequest(new SimpleWorkerRequest("test.aspx", null, sw));

        void IRegisteredObject.Stop(bool immediate)

    class Program
        private static AppDomain GetDomainForGenerator()
            AppDomainSetup setup = new AppDomainSetup();
            setup.ApplicationName = "MyDomain[ASP.NET Generator]";
            AppDomain dom = AppDomain.CreateDomain("generator domain", null, setup);

            dom.SetData(".appPath", Directory.GetCurrentDirectory() +
            dom.SetData(".appDomain", "*");
            dom.SetData(".appVPath", "/");
            dom.SetData(".domainId", dom.FriendlyName);
            dom.SetData(".hostingVirtualPath", "/");

Office 2003: Host an Interactive Visio Drawing Surface in .NET Custom Clients


Microsoft Office Visio 2003 introduces a new drawing component that allows you to embed an interactive drawing surface into your application's user interface. You can drive the Visio drawing component from events in your host application or with data from a Web Service and an ADO.NET data adapter. The Visio drawing component supports the rich Visio application programming model, giving you control over how graphics are used and displayed on the drawing surface. This article explains how to embed the Visio drawing component into a C#-based Windows Forms client app that retrieves data from the Fabrikam 2.0 Web Service.

Mai-lan Tomsen Bukovec and Blair Shaw

MSDN Magazine December 2003

Microsoft .NET: Implement a Custom Common Language Runtime Host for Your Managed App


While most application developers may not need to write a custom host, understanding what is involved provides a great deal of insight into the architecture of the CLR. After covering how the CLR is started and loaded into a process, how to set the available configuration options, and how a host defines application domains, this article explains how to design a custom host. Important concepts include making the right decisions about the application domain boundaries for the host, configuring them correctly, loading and executing user code, and resolving references to assemblies. Setting security policy and unloading application domains as the application shuts down are also explained.

Steven Pratschner

MSDN Magazine March 2001

Host custom webservice in sharepont

How to host a custom webservice in sharepoint?Manvir

How to create a condition and policy to deny access based on host name



With SQL Server 2008 Enterprise, can I prevent an Active Directory Account Login ( domain\user ) from connecting if its coming from a host_name?

What I really need to do is this:  


On SQL1, login mydomain\user1 is only allowed to login from servers APP2, APP3, and APP4.


If mydomain\user1, though it has a login on SQL1 attempts to connection any other hostname besides APP2, APP3 or APP4 I want to deny it access to SQL1.


Can anyone point me in the right direction for the correct condition(s) for a policy that would work?



Erik A. Grob, MCITP, MCDBA

Need to change .net framework from 4.0 back to 3.5 Host does not yet support 4.0


I tried to access my site (www.nrarities.com) using Visual Web Developer 2010.  It asked if I wanted to upgrade to .NET 4.0.  I said yes, and now users can not get to site. receive message as below pointing to web.config file.  How do I respecify that I want toe site to use 3.5.  Please help as the site is now completely down.  Thanks.




Line 58:      debugging ASP.NET files.
Line 59:   -->
Line 60: 		<compilation defaultLanguage="vb" debug="true" targetFramework="4.0"/>
Line 62:      Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable. 

Advice on whether to host custom .Net web apps on SP Farm


I have a couple of questions about hosting custom .NET web applications on a SP farm.  On our old IIS web server we hosted a mix of web sites and web applications.  We have moved the web site content into SharePoint but now need to decide where to move these web applications.  We currently run 2007.  Our SP environment includes two WFE servers using Network Load Balancing (software).

1. Would it be wise to move these applications to the farm on a separate IIS website/application pool or is it better to isolate them on a separate web server?
2. Are there any issues with running multiple versions of the Framework (specifically 3.5sp1 and 4.0) on the farm as long as the SP web applications run in their own app pool associated with the 3.5 version?  I've read it can be done but want to know if there are any issues or things to be aware when configuring.

Any advice is appreciated.

Thank you,
J. Aqui

Required permissions cannot be acquired when host asp.net 3.5 application in godaddy


I got the following error when click print report button.

Application : asp.net 3.5

Crystal report : 10.5

Host: godaddy

Please help me.


Required permissions cannot be acquired.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Security.Policy.PolicyException: Required permissions cannot be acquired.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Now Playing: Building Custom Players with the Silverlight Media Framework


The Silverlight Media Framework is an extensible and scalable video framework upon which you can create your own player experiences. We'll walk you through a custom player project that displays suggested videos for further viewing after the current video ends.

Ben Rush

MSDN Magazine May 2010

Geneva Framework: Building A Custom Security Token Service


A Security Token Service, or STS, acts as a security gateway to authenticate callers and issue security tokens carrying claims that describe the caller. See how you can build a custom STS with the "Geneva" Framework.

Michele Leroux Bustamante

MSDN Magazine January 2009

Roll Your Own: Create a Language Compiler for the .NET Framework


Joel Pobar presents an introduction to how compilers work and how you can write your own compiler to target the .NET Framework.

Joel Pobar

MSDN Magazine February 2008

Silverlight: Create a Custom Expression Encoder Publishing Plug-In


Laurence Moroney demonstrates how to employ the Expression Encoder plug-in APIs by building and debugging a simple FTP upload plug-in.

Laurence Moroney

MSDN Magazine February 2008

Fuzz Testing: Create a Custom Test Interface Provider for Team System


Dan Griffin shows the extensibility of Visual Studio 2005 Team Edition for Software Testers by discussing the modification of the existing Test Interface Provider sample in the latest Visual Studio SDK and implements Fuzz Testing.

Dan Griffin

MSDN Magazine November 2007

Smarter Art: Create Custom SmartArt Graphics For Use In The 2007 Office System


SmartArt incorporates a gallery of templates and predefined shapes that can quickly be inserted and configured in your Microsoft Office documents. Find out how.

Janet Schorr

MSDN Magazine February 2007

Desktop Security: Create Custom Login Experiences With Credential Providers For Windows Vista


Why is a change to the Windows logon plug-in interface so exciting? Because with credential providers you can customize the logon experience for your users.

Dan Griffin

MSDN Magazine January 2007

Mutant Power: Create A Simple Mutation Testing System With The .NET Framework


With mutation testing, the system under test is changed to create a faulty version called a mutant. Here James McCaffrey explains how to do this in .NET.

James McCaffrey

MSDN Magazine April 2006

UI on the Fly: Use the .NET Framework to Generate and Execute Custom Controls at Run Time


Creating UI controls on the fly can be accomplished via run-time code generation. And there are lots of reasons to do so. Generating these controls once and then reusing them as needed is more efficient than generating the controls each time. Read on.

Morgan Skinner

MSDN Magazine December 2005

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend