Wednesday, June 29, 2011

Microsoft Dynamics CRM 4.0 – Service cisvc was not found on computer

Service cisvc was not found on computer X. The specific services does not exist …



This is also shown below. Note: Ignore the Microsoft SQL Server error shown in the screenshot, that is not related to this post.











To quickly fix this, you will need to add the Windows Server 2003 File Services Indexing Service. This service can be added via the Add Roles option with Windows Server 2008 R2.Run the Add Roles Server Wizard and apply the role of File Services > Windows Server 2003 File Services > Indexing Service.

Screenshots of this is shown below.










Click Next

Select File Services, click Next












Select Indexing Service, click Next










Confirm installation selections, click Install












Windows Server 2003 File Services Indexing Service installation completed or succeeded.

Now if you click Back on the Microsoft Dynamics CRM Setup and then click Next, you should notice it now is successful as shown below.














All verification tasks have succeeded and we are now ready to execute the install.

CRM 4.0 Install System Requirement Error – “Service cisvc was not found on computer.”

The error: “Service cisvc was not found computer …” means that the Indexing Service has not been installed or is not started.

Go to run open the command prompt and use the command

servermanagercmd -install FS-Indexing-Service

It will work

Thanks


Tuesday, June 28, 2011

Creating phonecall


The main issue you will face in this case is assigning 'to' value to phonecall.

1. For 4.0

//first create the activityparty type object like
activityparty toActivity = new activityparty();
//Then assign partyid
toActivity.partyid = new Lookup("contact", contactID);
//Assign that activitypartyobject to 'to' of phone call.
phncall.to = new activityparty[] { toActivity };
service.Create(phncall);



2. For 2011

Guid contactID = new Guid("A11111F7-208C-E011-B5F4-000C29FABFAC");
PhoneCall phncall = new PhoneCall();
//first create the activityparty type object like
ActivityParty toActivity = new ActivityParty();
//Then assign partyid
toActivity.PartyId = new EntityReference("contact", contactID);
//Assign that activitypartyobject to 'to' of phone call.
phncall.To = new ActivityParty[] { toActivity };
service.Create(phncall);


It will work.
If any issue just let me know.
thanks

Host file location

you can find the host file at this location :

C:\Windows\System32\drivers\etc

Otherwise you can type drivers in run and will get the host file.


Use of host file is to access the crm outside the local machine.

Creating Wrapper class in Crm2011

I have tried it for 2011 but you can try it for 4.0 also.

1. Download the sdk and go to the bin folder using command prompt.

2.You will see one svcutil.exe

3.In command prompt you will reach the bin folder like this













4.Then you need to type this command with respect to your requirement and parameters and you will get the output file in your bin folder. if any issues just let me know

Command: crmsvcutil.exe /url:http://servername:portnumber/orgname/xrmservices/2011/Organization.svc /u:administrator /p:pass@word1 /out:CodefileName.cs /ServiceContextName:ServiceContext /namespace: