Posts

how to backup a database from clients via Windows PowerShell

You may need to backup a database remotely via Windows Power Shell. First of all, you have to install SQL Server PowerShell applet to local machines. to verify if Applet exists: 1 - Open Windows PowerShell (It is highly recommended to open it with Administrator) 2 - Enter sqlps, if you get an error about unrecognized command. You have to install SQL Client tools or any other feature from SQL Server Installation Disc. (Feature based installation covers necessary Power Shell Scripts) Second, execute below commands over Windows PowerShell to backup a database; PS C:\Users\[....]> sqlps Microsoft (R) SQL Server (R) PowerShell Version 12.0.2000.8 Copyright (c) 2014 Microsoft. All rights reserved. PS SQLSERVER:\>; Backup-SqlDatabase -ServerInstance dbaseServer050 -Database CrmOrganization_MSCRM -BackupFile \\ShareMap\BackupTemp\CrmOrganization_MSCRM.bak PS SQLSERVER:\> Good Luck...

you face "ISV code aborted the operation" when you change status of the any record in Dynamics CRM 2013

Hi,    You may get an error as "ISV code aborted the operation" when you set "activate" or "deactivate" of any record. it seems that because we’re not actually performing the status/state change action directly on the record . The event itself does “bubble up”, though, so stopping the status change also rolls back the entire transaction and none of the fields on the records being the targets of the operation change in the dirty form  ( .getDirty() -> true).  That’s the important part, after all.

TimeoutException: The request channel timed out while waiting for a reply after 00:00:59.7350618. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.

Hi, You need to set Timeout property of OrganizationServiceProxy class as below; OrganizationServiceProxy proxy = (OrganizationServiceProxy) ...; proxy.Timeout = new TimeSpan(0, 20, 0); //20 minutes good luck,

Microsoft Dynamics CRM Product Key Is Not Valid or Cannot Be Used with the Current Deployment in CRM 2011

Hi, i face invalid product key error when i add a new Front End node to the existing CRM 2011 deployment with Rollup14. I think,Rollup 6 and Rollup 14 has significant changes on the deployment. You can ignore "System Check" via Registry to continue installing process of the CRM 2011. To do :  Just add the DWORD key IgnoreChecks with a value of "1" to the MSCRM key in the registry [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM]. 

you get "visual studio .net must be installed before you can install the Microsoft Dynamics CRM Developer Toolkit"

if you are not able to install Developer Toolkit for Microsoft dynamics CRM 2011 and faced an error as "visual studio .net must be installed before you can install the Microsoft Dynamics CRM Developer Toolkit" Please try below, it works for me. Go and "run as administrator" the PowerShell (x86) Locate the folder that contains the .msi file (cd c:\.... etc) run the powershell command: MSIEXEC /i crmdevelopertools_installer.msi (/i argument stands for "install") cheers,

Log4net in windows service

Hi, Log4net not working in windows service although working same project as Windows Application. I just put [assembly: log4net.Config.XmlConfigurator(Watch = true)] into AssemblyInfo.cs and magically solved.

set Timeout ,Max Recieve Package size and no credential in WCF

1 - to increase Timeout in client; Open Web.config add parameter(s) into binding element as TimeSpan openTimeout= "12:00:00" receiveTimeout="12:00:00" closeTimeout="12:00:00" sendTimeout="12:00:00" 2 - to increase limiting Package Size in client; Open Web.config add below into Binding element as integer maxReceivedMessageSize="2147483647" 3 - to set non-security connection in service; Open Web.config add below into binding element as child element             good luck,