KB Article A928
Visible to All Users

No-Touch Web Deployment (.NET 1.x)

Description:
One of our projects will require no-touch deployment from a Web Server. I have tested this scenario and get a SecurityException when I try to launch the application.

Answer:
We have investigated Web deployment scenarios and found two interesting articles in the MSDN Library:
Configuring Internet Explorer Applications
Configuring a Client Application
To sum them up: it is necessary to configure both the server and client machines. A client cannot launch an application until his domain or machine administrator permits it.
Configuring the server

  1. Create a virtual directory for your application in the IIS (Control Panel | Administrative Tools | Internet Information Services).
  2. Put the DevExpress.~ runtime assemblies into your application's folder.
  3. Create the configuration file with the AssemblyBinding, DependentAssembly, and CodeBase tags. The DependentAssembly tag must identify an assembly by its name, version and public key token. The CodeBase tag must provide an URL for an assembly. A sample configuration file is attached to this article.
    Configuring a client system
    The Developer Express assemblies are compiled without the AllowPartiallyTrustedCallers attribute. Therefore, the Full Trust permission set is required. To configure a client system, the client's administrator should grant the Full Trust permissions to your application. They can use the .NET Framework Configuration console (Control Panel | Administrative Tools | Microsoft .NET Framework Configuration 1.1.) or the caspol.exe command line tool to do this.
    See Also:
    A tool for collecting the required DevExpress assemblies for further application deployment
    ClickOnce application deployment with DevExpress .NET WinForms controls
    How to distribute applications that use DevExpress .NET Windows Forms controls
    MSDN: No-Touch Deployment in the .NET Framework
    MSDN: Deploying Assemblies

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.