Rockford Lhotka
    CTO at Magenic
    Author, speaker, software architect
    Creator of the CSLA .NET framework

Home
Blog
CSLA .NET
Magenic
Speaking
Publications
About me
Contact me

Login

CSLA .NET 2.0 Technical Requirements

 

This document details the technical requirements needed to use CSLA .NET in various environments.

Common requirements

  • Microsoft .NET 2.0 Framework
  • FullTrust code access security

Single machine deployment (1- or 2-tier physical deployment)

  • Microsoft DTC (optional)

Smart client with app server (3-tier physical deployment)

  • Microsoft DTC (server only, optional)
  • IIS (server only, Remoting or Web Services channels only)
  • COM+ (server only, Enterprise Services channel only)

Standalone web server (1- or 2-tier physical deployment)

  • Microsoft DTC (optional)
  • IIS
  • ASP.NET 2.0

Web server with app server (3-tier physical deployment)

  • Microsoft DTC (app server only, optional)
  • IIS (web server; app server with Remoting or Web Services channels)
  • COM+ (app server only, Enterprise Services channel only)

What does this mean to you?

Microsoft .NET 2.0 requirement

  • Anywhere you are going to run CSLA .NET based code, you must have the .NET 2.0 runtime installed first. Because CSLA .NET is based on .NET 2.0, the .NET runtime is a requirement.

FullTrust code access security requirement

  • Code based on CSLA .NET requires FullTrust CAS. This is because CSLA .NET makes use of advanced .NET features like data access, reflection, serialization, remoting and, in the future, WCF. All of these technologies require FullTrust. This means you can't use CSLA .NET in partial trust scenarios like on some commercial web servers. However, there are commercial web hosting providers that do allow FullTrust - click here for information.

Microsoft DTC requirement

  • If you use EnterpriseServices transactions, and in some cases TransactionScope, you'll need to have the DTC enabled. It is disabled by default in Windows XP SP2, and so if your data portal code is running on the client workstation you may have to enable DTC.
  • If the DTC is required, it also means that your database must support 2-phase commit protocols. Microsoft SQL Server, Oracle and IBM DB2 all typically provide this support. Some smaller database engines may not support this concept, and then can not be used through these transaction modes.

IIS requirement

  • If you are using a remote data portal, hosted in IIS, then you'll need to install IIS on that server, and also ensure ASP.NET 2.0 is operating properly within IIS. Some configuration is required, see Chapter 12 for details.

COM+ requirement

  • If you are using a remote data portal, hosted in Enterprise Services, that means you are hosting the server-side components in COM+. Some configuration is required, see Chapter 12 for details.
 

(Updated 3/8/2007 11:29:33 PM)