Preparing the Production Machine (Server) (Magic xpa 2.x)
Here is a summary of the steps that you need to carry out in order for the application to run on the server.
-
Make sure IIS is installed on the production machine.
-
Install Magic xpa on the production machine.
-
Make sure that Microsoft® .NET Framework Common Language Runtime (CLR) 2.0 SP2 or above is installed on the production machine using the files in the Scripts\RIA folder.
-
When using .NET framework V2.0 SP2, you also need to install the Microsoft Visual C++ 2008 Redistributable. You can install them by running the NetFx20SP2_x86.exe and VCRedist_x86.exe files from the Scripts\RIA folder.
-
Copy the PublishedApplications folder from your development machine to the production machine. This folder contains the files required to install the application on the clients.
-
Copy any other folder that your application uses, such as images from your development machine, to the production machine.
-
Configure the engine and application settings file (Magic.ini).
-
Configure the broker setting file (Mgrb.ini).
-
Define the MIME types required to run ClickOnce.
-
Make sure that there is Read access to the directory where the Runtime resides.
-
If the environment does not support the Universal Naming Convention (UNC) system, make sure that every workstation has the same drive/directory mapping to the Runtime directory.
-
Make sure that the shortcut to the MgxpaRuntime.exe file's Start in field points to the same directory where the Runtime resides.