Konafornia “xRM+” Installation Guide

yompmulligrubsInternet και Εφαρμογές Web

31 Οκτ 2013 (πριν από 3 χρόνια και 10 μήνες)

73 εμφανίσεις

Konafornia “xRM+” Installation
Guide


Emai l:
admi n@konaforni a.com

Skype: konaforni a

Bel l evue, WA 98006, USA.

v1.0 @5/28
/2012


Download:

F
irst of all, please download our

“CloudChoir.zip”, extract it to “c:”

as belo
w
:






1/3 How to install “xRM
+
” Controller


1. added need
Windows
Roles/Features, if not yet installed in your clean Windows:


"Control Panel


-
> "Turn Windows features on or off"


-
> "Add Roles"


-
>Next


-
>check "Application Server"


-
> "Add Required Features" (.NET 3.5 + Windows Process Activation Services


-
>check "Web Server (IIS)"


-
>click "Next>", twice


-
>check "Web Server (IIS) Support"


-
>click "Add

Required Role Services"


-
>click "Next >", 3 times (makes sure "ASP.NET" is checked under "Application
Development")


-
>click "Ins
tall"




2. install MySQL as WIndows Services: "mysql
-
5.1.63
-
winx64.exe".


http://dev.mysql.com/downloads/mysql/5.1.html


user name: root


password : kona


make sure it is "Auto Start" MySQL Windows Services; start it "Log On As"
-
> "Local System"


3. i
nstall MySQL .NET connector: "mysql
-
connector
-
net
-
6.5.4.exe". all default.


http://dev.mysql.com/downloads/connector/odbc/5.0.html

Note: depend on your Wi ndows i nstal lation, you

mi ght be asked to i nstal l
the ol d .NET 1.1:
http://www.mi crosoft.com/en
-
us/downl oad/detai l s.aspx?i d=26



4.
Install

MySQL ide: "HeidiSQL_7.0_Setup.exe".


http://www.heidisql.com/


-
log into MySQL, create a DB called "activemq"


-
in thisactivemq

DB, create a new Table, with following SQL Script


CREATE TABLE crmcrudlog

(


Id VARCHAR(50) NOT NULL,


RowID VARCHAR(
50) NULL DEFAULT NULL,


BizID VARCHAR(50) NULL DEFAULT NULL,


UserID VARCHAR(50) NULL DEFAULT NULL,


OrgID VARCHAR(50) NULL DEFAULT NULL,


EntityType VARCHAR(100) NULL DEFAULT NULL,


EntityName VARCHAR(100) NULL DEFAULT NULL,


EntityID VARCHAR(50) NULL DEF
AULT NULL,


EntityType_item VARCHAR(100) NULL DEFAULT NULL,


EntityName_item VARCHAR(100) NULL DEFAULT NULL,


EntityID_item VARCHAR(50) NULL DEFAULT NULL,


Message VARCHAR(100) NULL DEFAULT NULL COLLATE 'utf8_general_ci',


_Timestamp DATETIME NULL DEFAULT
NULL,


Detail TEXT NULL,


Header TEXT NULL,


Body TEXT NULL,


_Security TEXT NULL,


Callback TEXT NULL,


PRIMARY KEY (Id)

)

COLLATE='latin1_swedish_ci'

ENGINE=InnoDB;


5. Install Java runtime: "jdk
-
7u2
-
windows
-
i586.exe"


http://www.oracle.com/technetwork/java/javase/downloads/jdk
-
7u2
-
download
-
1377129.html


Note: the
x86

one, please.

(NOT x64.)


-
set global variable for "JAVA_HOME" to "C:
\
Prog
ram Files (x86)
\
Java"


6. install ActiveMQ

Active MQ already included in our xRM+ package: “
C:
\
CloudChoir
\
apache
-
activemq
-
5.5.1
”. It is
configured to use the basic security, already. Here are the steps to install it from our package:



-

Open a DOS win
dow as Admin, run "cd C:
\
CloudChoir
\
apache
-
activemq
-
5.5.1
\
bin
\
win32"


-

in the same DOS Window, run "InstallService.bat". (
if successfully,
you should see "wrapper
| ActiveMS installed".
)


-

Go to Windows Services, assign it with Admin role,

then
s
tart "ActiveMQ"






7. Install ".NET 4" if it is not there already: "dotNetFx40_Full_x86_x64.exe". Pick all defaults.

Enable "ASP.
NET" if it is not there already.

Note: i f you mi ss .NET 4 App Pool i n IIS
(see

be
l ow screenshot
)
, that means .NET 4 i s
mi ssi ng on your box:


Her
e

i s the

downl oad

URL:
http://www.mi crosoft.com/en
-
us/downl oad/detai l s.aspx?i d=17718


8. Install "WCFtoActiveMQ" Web services, in IIS7


-

a ".NET 4
Classic App Domain"/"Integrated", named "WCF2MQ"




-

right click "Site"
-
> "Add Web Site", name it "XRMSITE"
-

using just created App Pool
"WCF2MQ".


-

"Physical path" point to "c:
\
CloudChoir
\
XRMSITE"


-

in "Connestc as"
-
>"Specific user"
-
>

pick some user has right credential
-

test it in "Test
Settings"


-

change "Port" to "8080"


-

Click and expand "XRMSITE"; right click "XRMAPP"; pick "Convert to application"


-
validate: open your IE: "
http://localhost:8080/XRMAPP/Service1.svx
?WSDL
", if

installation

successful you should
show WSDL like below:




9. start "CRMOneline to ActiveMQ bridge", open a DOS Windows as Admin:


-
"cd c:
\
CloudChoir
\
config"


-
run "StartBridge.bat"


10. Enable

'WIF", by running "Windows6.1
-
KB974405
-
x64.exe". Pick all defaults.


http://www.microsoft.com/en
-
us/download/details.aspx?id=17331


10. start "XRM plus controller".


-
"cd c:
\
cloudChoir
\
2012_KonaforniaXRMp_Controller"


-
run "xrmserver.exe"


-
click "View Targets"


-
click "Validate Targets", wait until seeing pop up: "All Servers are on".


-
click "Start XRM+" at the right bottom.


Please make sur
e to use
your credential
s

for your
CRM
Org
(s)

in the following
configuration files accordingly
. Otherwise, nothing will work.








2/3
How to install CRM Plugin onto the Source local CRM.

1.

Register New
Assembly with “Plugin Registration Tool”. Pick all
default as below.


2.

Copy following XML into “Unsecure Confihuration”. Pick “Async”, others default as below
screenshot:

<Settings>


<setting name="KonaforniaCustomerID">


<value>00000000
-
0000
-
0000
-
0000
-
111111111111</value>


</setting
>


<setting name="PublicKeyForTargetOrgs">


<value>00000000
-
0000
-
0000
-
0000
-
222222222222</value>


</setting>


<setting name="WebServiceEndpoint">


<value>http://localhost:8080/XRMAPP/Service1.svc</value>


<
/setting>


<setting name="EntityWhiteList">


<value>none</value>


</setting>


<setting name="TextInPasswordMode">


<value>no</value>


</setting>

</Settings>





3.

Do

the same for all 5 CRM Messages:



Create



Updat
e (“Activate” & “Deactivate”, are included automatically.)



Delete



Associate



Dissociate




4.

Since all registered as Async, need to restart the services:





3/3
How to
register ServiceEndPoint

for source CRM Online


1.

Create a new EndPoint

following Reference:
http://msdn.microsoft.com/en
-
us/library/gg328524.aspx

2.

Note: sometimes, “Plugin Registration Tool” cannot login me into my CRM Online org, … the
little trick is
-

to
log into CRM Online from IE first to “warm up” your Org.

3.


Konafornia
” is the namespace matching my Windows Azure ServiceBus,
you will need
modify it
to match

your
own

in your Azure
.

Go to “xrmonline_jms_bridge.xml”, to update it with your Azure Serv
ice

Bus namespace and
IssuerKey, along with other params for your Org (all in Yellow)



The other values, be the same.





4.

Register Step for “Create” message:


5.

Register all 5 steps/messages for the “ServiceEndpoint”



6.

Start the Dynamics CRM Online
AppFabric lisener


run “StartBridge


Release.bat”: