Skip to main content

Posts

Showing posts from July, 2013

Disable All Fields Microsoft Dynamics CRM

For CRM 2011: function DisableForm() {     Xrm.Page.ui.controls.forEach(         function (control, index)         {             if (control.getControlType() != "subgrid")                 control.setDisabled(true);         }); }   For CRM 4: function ToggleFormFields(disable) {     for (var i = 0; i < crmForm.all.length; i++)     {         if (crmForm.all[i].req)         {             crmForm.all[i].Disabled = disable;         }     } }

Step by Step Guide to Migrating CRM 4.0 to CRM 2011

There are 2 ways you can do a migration from Microsoft CRM 4.0 to Microsoft CRM 2011 on-premise: an in-place migration where you upgrade the existing CRM 4.0 install to CRM 2011 using the very same server(s) OR an upgrade where you migrate to a new CRM 2011 server(s). Here is a step by step guide to migrating using this 2nd approach (where you have new server(s) that will host CRM 2011): 1. Perform a fresh install of Microsoft CRM 2011 on a new server(s). You can have 1 server that hosts both the web application and the SQL databases or you can have 2 servers: 1 to host the web application and 1 to host the SQL databases. 2. Make a backup using SQL Server Management Studio of your existing CRM 4.0 sql organization database (it will have a name like OrganizationName_MSCRM). 3. Physically copy the backup from step 2 to your new server that will be hosting the SQL Server 2008 databases behind your CRM 2011 install. 4. Create a new sql server databa...

Only one usage of each socket address (protocol/network address/port) is normally permitted

Problem : I had a web service proxy, generated automatically from the CrmServiceWsdl.wsdl file of the Microsoft Dynamics CRM 4.0. 2. I was loading a big amount of data to the CRM via the web services. 3. In the middle of the load I was getting the following error: Unable to connect to the remote server System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted. Solution : This is my Service Method string url = http://localhost:5555/MSCrmServices/2007/CrmService.asmx ; string organizationName = "cmt" ; CrmAuthenticationToken token = new CrmAuthenticationToken (); token.AuthenticationType = 0; token.OrganizationName = organizationName; _crmService = new CrmService (); _crmService.Url = url; _crmService.CrmAuthenticationTokenValue = token; _crmService.Credentials = System.Net. CredentialCache .DefaultCredentials; Just two more line add in this method   _crmService.PreAuth...

Migrate Sharepoint 2010 to Sharepoint 2013

Step 1 take backup of content Database and Service Database of SharePoint 2010 Server Step 2 Install Fresh machine of SharePoint 2010 Step 3 Restore content Database and Service Database of SharePoint 2010 Server in SharePoint 2013 Server. Pre-requisite of SharePoint Installation. • Microsoft .NET Framework 4.5 • Windows Management Framework 3.0 • Application Server Role, Web Server (IIS) Role • Microsoft SQL Server 2008 R2 SP1 Native Client • Microsoft Sync Framework Runtime v1.0 SP1 (x64) • Windows Server AppFabric • Microsoft Identity Extensions • Microsoft Information Protection and Control Client • Microsoft WCF Data Services 5.0 • Cumulative Update Package 1 for Microsoft AppFabric 1.1 for Windows Server (KB2671763)

SharePoint Central Admin not opening after Rename Sharepoint Central admin machine name

-Open Command Prompt (Run as Administrator) -Run the following command: Stsadm.exe -o renameserver -oldservername -newservername Example : C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\BIN\Stsadm -o renameserver -oldservername Sharepointserver -newservername SpServer