Skip to main content

Posts

Showing posts from 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  

Menu Item and FlyoutAnchor in Dynamics Crm 2011

In CRM 4 we have easily Add Menu Item in every page through ISV.config but most of the customer required Menu Item Should be display in CRM 2011 Ribbon.so  < FlyoutAnchor>  Tag will ADD Menu Item in Every CRM 2011 Entity. < FlyoutAnchor Id = " Contoso " Sequence = " 26 " Command = " Cmd_Action_test.sub " LabelText = " Contoso " Alt = " Contoso " PopulateOnlyOnce = " false " PopulateDynamically = " false " TemplateAlias = " o1 " > < Menu Id = " B_formtest1.menu " > < MenuSection Id = " Contoso.MenuSection\ " Sequence = " 23 " > < Controls Id = " FA_EForm.control1 " > < Button Id = " Contoso.Contoso1 " Command = " Cmd_Action_test.Contoso1 " Sequence = " 24 " LabelText = " Contoso 1 " Alt = " Contoso 1 " /...

Microsoft Dynamics CRM Sales Process

Can't add a picklist to a form CRM 2011 Rollup 13

Incompatibility in IE 10. (a) Run IE9/IE8 (works always ). (b) Try to run IE10 in backwards compatibility mode (works often). (c) Wait for an update for CRM/IE10 (works slowly and seldom). As a side note, I can tell that when I was having that issue, I noticed that by using a remote desktop to our development environment (or at least a virtual machine, e.g. VirtualBox, wouldn't you have access to an external environment), one could omit the whole issue sans having to degrade to an earlier version of IE. BE a part of My Network : Thanks & Regards, Rizwan Ahmed Software Engineer And Microsoft Dynamics Technical Consultant Cell Phone: +92 332 3588699   LinkedIn | Twitter | Facebook | Blog | Skype | Dynamics

Access Denied - Opening Attachment in CRM 4.0

After Upgrading CRM Rollup 7 and  21 we were facing issue that Access Denied When we Save and Open Attachment File.   I tried using the download attachment file code but its also gives me the Access denied error.   Issue:           Solution : Delete All Internet Explorer History   Delete All Temporary Files     BE a part of My Network : Thanks& amp; Regards, Rizwan Ahmed Software Engineer And Microsoft Dynamics Technical Consultant Cell Phone:+92 332 3588699 GTalk | LinkedIn | Twitter | Facebook | Blog | Skype  

ASCII set HTML Issue

Hi All In programing when we write ASCII code into the File  or Store in database then ASCII code Crash and produce garbage in database. for Example: I have developed a library in C# where you just need to add your project -Just pass the ASCII code string and it will return you correct string with out garbase Library and Code will be available very Soon. BE a part of My Network : Thanks & Regards, Rizwan Ahmed Software Engineer And Microsoft Dynamics Technical Consultant Cell Phone:+92 332 3588699 GTalk | LinkedIn | Twitter | Facebook | Blog | Skype

The password supplied with the username Domain\User was not correct. Verify that it was entered correctly and try again. Sharepoint 2010

Issue :The password supplied with the username DYNAMICS\Administrator was not correct. Verify that it was entered correctly and try again. Administrator Password Changed, What happened to Sharepoint I have installed Share Point 2010 and uses administrator account everywhere. Share Point installs successfully and working fine. After that I needs to change the password of the administrator. So I changed the password. After that when I run the Share Point Central Administration Site it gives me the following error:   I already updated the services running administrator account with the new password, but the error remains. Then I went to IIS: Then when I tried to create a new website in Share Point, It gives the following error: The password supplied with the username was not correct. Verify that it was entered correctly and try again Then I opened the command prompt and entered the following location: C:\Program Files\Common F...

New Features for Developer in Microsoft Dynamics CRM 2013

Integration with Yammer Yammer, a powerful tool for collaborating in your organization, is now integrated with Microsoft Dynamics CRM Online. For more information, see Connect to Yammer . Extended Browser Support The Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online web application now supports multiple web browsers and operating systems. For more information about how this affects your code, see Write JavaScript for Multiple Browsers .     Developer Toolkit Support for Microsoft Visual Studio 2012 With roll up 12 Microsoft has also lunched The Developer Toolkit for Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online that supports Microsoft Visual Studio 2012. The installer can be found in the SDK download in the sdk\tools\developertoolkit\ folder. Download CRM Toolki   Bulk Data Load If you want to Load bulk data in CRM now you can use ExecuteMultipleRequest message. Enhancements to Activity Feeds The enhancements...

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe is not a valid Win32 application

Issue: I'm currently updating with a service - installing, uninstalling, etc. Suddenly, when I tried uninstalling the service (by the book, using InstallUtil.exe) I get the following error: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe is not a valid Win32 application. (in the command prompt I even get a message "Access Denied")   I looked at the .NET folder, and sure enough, InstallUtil.exe lies there, with size 0 and Date Modified - a few minutes ago !!! Solution: replacing the file with an uncorrupted one solved the problem (lucky for me I have two machines with .NET installed). BE a part of My Network : Thanks & Regards, Rizwan Ahmed Software Engineer And Microsoft Dynamics Technical Consultant Cell Phone:+92 332 3588699 GTalk | LinkedIn | Twitter | Facebook | Blog | Skype

ExecuteNonQuery requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.

Issue: I have import new organization from the Dynamics CRM 4.0  but getting this error ExecuteNonQuery requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized. Solution: Above got us thinking and we found that the imported database came from a system that uses an alternative service account for CRM / Application Pool. Somehow the default user (network\service) was stripped on the ***_MSCRM database. So opened the ORGANIZATION_MSCRM database in SQL Manager,   Tree viewedto Security -> Users Then opened the database user NT AUTHORITY\NETWORK SERVICE and checked role member dbowner. Reset the IIS and voila the problem is solved and we were able to access the imported CRM organization. BE a part of My Network : Thanks & Regards, Rizwan Ahmed Software Engineer And Microsoft Dynamics Technical Consultant Cell Phone:+92...