Dec 8, 2008

Can XBAP run under full-trust mode

A WPF Application can developed to run as standalone or browser based application(XBAP).
In XBAP version there are limitations, like accessing network, SQL operation, file IO operations etc. Because XBAP, by default, run under Partial Trust mode.
You can switch on XBAP to a Full Trust mode anyway. But there are some limitations in terms of deployment.
Full trust XBAP application will only run in local machine as we expected. Even if we set XBAP as Full Trust, it will failed to load in intranet or Internet zone.



Figure 1: When deploy under full trust mode on remote location.

To run under full trust, we want to do one of the followings,
  1. Install XBAP to the local machine (deploy as .msi file).

  2. Sign the XBAP using a trust certificate and install that certificate to the client machine using cermgr.exe

  3. Authorise application URI to be trusted using caspol.exe or .NET 2.0 configuration wizard.

First one is very straightforward but, all things have to done at each client machine. If you really want to enable full trust, develop as WPF standalone application.

Nov 4, 2008

Movex Class Builder

For my current projects @ Brandix Lanka, we want to create couple of interfaces for Movex ERP. In Movex, functionalities exposes in a way of API.

My duty is create C# classes for particular API, to data retrieval or update. We have already created a wrapper class for Movex connection.

I created MS-Visual Studio Add-in to generates C# classes for particular API.



Features:
  1. you can browse Movex API details.
  2. Generates C# class to the current project and organised by API automatically.
  3. Integrated to the VS IDE
  4. Currently supports for VS2005 and VS2008

MEC: How to Set Message Counter for EDI Message

When you sending/creating EDI messages it is necessary to include unique message interchange number. This is to ensure each message that we ...