Home
February 07
New CRM 2011 SDK available for download

On February 7 Microsoft released a new version of the Microsoft Dynamics CRM 2011 SDK

 

You can download it from this link

 

http://www.microsoft.com/download/en/details.aspx?id=24004

January 21
CRM 2011 Rollup 6 now available for download

After some issues that made this rollup to be unavailable after the firsts days of release it is now available again.

You can download it from http://www.microsoft.com/download/en/details.aspx?id=28712

Just in case wait a couple of days or weeks before applying it on a real production environment J.

 

January 15
Checking CRM rollup versions for both crm 4 and 2011

 

Several times you will want to know what version of rollup update you have installed in your CRM 4.0 or CRM 2011.

This blog has the right information and updated with all the most updated rollup versions available ever!

http://blogs.msdn.com/b/crminthefield/archive/2012/01/12/microsoft-dynamics-crm-4-0-and-2011-update-rollup-release-dates-build-numbers-and-collateral.aspx?wa=wsignin1.0&CommentPosted=true#commentmessage

 

January 06
ActiveDirectoryObjectNotFoundException: Global catalog not found in forest

Yesterday all of our CRM servers went down and nobody was able to enter to any organization. This happened to both CRM 4.0 and CRM 2011 versions.

When a user tried to access with a web browser they got this error

Microsoft CRM Error Report:

Error Description:

Could not find GUID for server: CRMDEV3$


Error Details:

Could not find GUID for server: CRMDEV3$


Full Stack:

[ActiveDirectoryObjectNotFoundException: Global catalog not found in forest "remcod.remotingcoders.com".]

at System.DirectoryServices.ActiveDirectory.GlobalCatalog.FindOneInternal(DirectoryContext context, String forestName, String siteName, LocatorOptions flag)

at Microsoft.Crm.BusinessEntities.SecurityUtils.GetGuidFromServerName(String serverName)

 

[CrmSecurityException: Could not find GUID for server: CRMDEV3$]

at Microsoft.Crm.BusinessEntities.SecurityUtils.GetGuidFromServerName(String serverName)

at Microsoft.Crm.BusinessEntities.SecurityUtils.GetLocalSystemGuid()

at Microsoft.Crm.Caching.OrganizationSettingsCacheLoader.LoadCacheData(Guid key, ExecutionContext context)

at Microsoft.Crm.Caching.ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context)

at Microsoft.Crm.Caching.BasicCrmCache`2.CreateEntry(TKey key, IOrganizationContext context)

at Microsoft.Crm.Caching.BasicCrmCache`2.LookupEntry(TKey key, IOrganizationContext context)

at Microsoft.Crm.BusinessEntities.SecurityLibrary.IsOrganizationSpecialUser(Guid organizationId, Guid userId, ExecutionContext context)

at Microsoft.Crm.Caching.UserDataCacheLoader.LoadCacheData(Guid key, ExecutionContext context)

at Microsoft.Crm.Caching.ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context)

at Microsoft.Crm.Caching.BasicCrmCache`2.CreateEntry(TKey key, IOrganizationContext context)

at Microsoft.Crm.Caching.BasicCrmCache`2.LookupEntry(TKey key, IOrganizationContext context)

at Microsoft.Crm.BusinessEntities.SecurityLibrary.GetUserInfoInternal(WindowsIdentity identity, IOrganizationContext context, UserAuth& userInfo)

at Microsoft.Crm.BusinessEntities.SecurityLibrary.GetCallerAndBusinessGuidsFromThread(WindowsIdentity identity, Guid organizationId)

at Microsoft.Crm.Authentication.CrmWindowsIdentity..ctor(WindowsIdentity innerIdentity, Boolean publishCrmUser, Guid organizationId)

at Microsoft.Crm.Authentication.WindowAuthenticationProviderBase.Authenticate(HttpApplication application)

at Microsoft.Crm.Authentication.AuthenticationStep.Authenticate(HttpApplication application)

at Microsoft.Crm.Authentication.AuthenticationPipeline.Authenticate(HttpApplication application)

at Microsoft.Crm.Authentication.AuthenticationEngine.Execute(Object sender, EventArgs e)

at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 


Other Message:


Error Number:

0x80041D2A


Source File:

Not available


Line Number:

Not available

 

Date: 01-06-2012

Time: 06:47:22

Server: crmdev3

Request URL:

http://crmdev3/Test/loader.aspx

 

After looking at different Blogs and forums I tried removing the servers from the domain and rejoining the domain without luck.

Also tried uninstalling the CRM product but when tried to install it back again I was not able due this same error! So I don't recommend trying this approach.

Finally the solution was installing Active Directory Domain Services Role on the CRM servers.

Restart the server after installing the role.

All the CRM servers started working back again!

Good luck!

January 03
Enable Equation Objects in Microsoft Word 2010. (Windows 7)

If you can't see mathematical equation objects inside a ".doc or .docx file"

For example:

You can follow the next steps to enable the feature which allows these objects:

1. Close all programs and windows related to Microsoft Office 2010.

2. Click the "Start" button and choose "Control Panel." Click "Add/Remove Programs."

3. Click "Microsoft Office" in the installed programs list or "Microsoft Word" if you installed the Word program by itself. Choose "Change".

4. Click "Add or Remove Features" in the Maintenance section. Click "Continue".

5. Click "Office Tools" to expand the menu.

6. Click "Equation Editor" and choose "Run from my computer."

7. Click "Continue". When finished, press "close" button and start Microsoft Office Word. Now the equation objects will be available.

 

Reference Links

1. http://www.ehow.com/how_5049820_install-microsoft-word-equation-editor.html

2. http://www.technipages.com/word-2010-2007-enable-equation-editor.html

December 22
Display mixed content in IE9 (http and https)

If you get this yellow bar

There are cases where you don't want to be prompted on this problem.

To fix this issue navigate to Tools | Internet Options | Security | Custom level

 

Under Miscellaneous | Display mixed content change from 'Prompt' to "Enable"

Click OK.

 

Reference

http://social.technet.microsoft.com/Forums/en-US/ieitprocurrentver/thread/30c0c726-4286-417b-96ea-d1bccfdb4eaa

December 20
How to get a multiple value parameter and put the values in a textbox within Reporting Services.

If you have a parameter array as the following:

 

Parameters!ParameterName.Label(0) = "Hello"

Parameters!ParameterName.Label(1) = "Parameters"

Parameters!ParameterName.Label(2) = "World"

 

With the Join function In the F(x) Expression

 

=Join(Parameters!ParameterName.Label, " ")

 

The result would be a string like the following one:

 

"Hello Parameters World".

 

You also can use any other separator:

 

=Join(Parameters!ParameterName.Label, ", ")

 

And the result would be:

 

"Hello, Parameters, World".

December 20
How to put multiple values within a fetchXML condition through parameters in Reporting Services.

If you need to use dynamic multiple value parameters in a fetch condition the correct syntax would be something like this:

 

<filter type="and">

<condition attribute="code" operator="in" value="@Code" />

<condition attribute="productname" operator="in" value="@ProductName" />

</filter>

 

@Code and @ProductName are multiple value parameters.

 

Or maybe you want to do this manually. In that case the syntax would be:

 

<fetch mapping='logical'>

<entity name='product'>

<filter type="and">

<condition attribute="code" operator="in" >

    <value>111</value>

    <value>222</value>

    <value>333</value>

</condition>

</filter>

</entity>
</fetch>

 

The values were invented for the example.

December 19
How to Print using Acrobat Reader X by Command Line Arguments

In this post I will cover how to print a PDF document with Acrobat Reader X using Command Line Arguments in Visual Studio 2010

Using C# - WPF

Common Declarations

public string PrintPdf(string FilePath)
{
    //The name of the Printer we are going to use
    //This name is taken from App.Config for after deployment edit
    
string printerName = ConfigurationManager.AppSettings["PrinterName"];
    //Path to Acrobat Reader X 
    //This path is taken from App.Config for after deployment edit
    String pathToExecutable = ConfigurationManager.AppSettings[
"AcrobatExePath"];
    //Now we pass the arguments For Printing to the ProcessStartInfo Constructor
    //We are using the Parameter /t <filename> <printername> <drivername> <portname> 
    //To Print the file the specified printer
    ProcessStartInfo myProcessStartInfo= new ProcessStartInfo(pathToExecutable, 
@"/t """ + FilePath     + @""" xps """+ printerName + @"""");
    //Open the process and set the StartInfo to myProcessStartInfo
    Process myProcess = new Process();
    myProcess.StartInfo = myProcessStartInfo;
    myProcess.StartInfo.UseShellExecute = 
false;
    myProcess.StartInfo.CreateNoWindow = 
true;
    myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
    myProcess.Start();
    System.Threading.Thread.Sleep(2000);
}

Now if we want to use the Microsoft XPS Document Writer and don't want user interaction we should do the following

 

 

public string PrintPdf(string FilePath)
{
    
//Set the Output File Path
    
string outputFilePath = FilePath.Replace(".pdf", ".xps");
    
//The name of the Printer we are going to use
    
//This name is taken from App.Config for after deployment edit
    
string printerName ="Microsoft XPS Document Writer";
    
//Path to Acrobat Reader X 
    
//This path is taken from App.Config for after deployment edit
    
String pathToExecutable = ConfigurationManager.AppSettings["AcrobatExePath"];
    //Now we pass the arguments For Printing to the ProcessStartInfo Constructor
    
//We are using the Parameter /t <filename> <printername> <drivername> <portname> 
    //To Print the file the specified printer
    
ProcessStartInfo myProcessStartInfo= new ProcessStartInfo(pathToExecutable, @"/t """ + FilePath
    +
 @""" """ + printerName+ @""" /t """ + outputFilePath + @"""");
    
//Open the process and set the StartInfo to myProcessStartInfo
    
Process myProcess = new Process();
    myProcess.StartInfo = myProcessStartInfo;
    myProcess.StartInfo.UseShellExecute =
 false;
    myProcess.StartInfo.CreateNoWindow =
 true;
    myProcess.StartInfo.WindowStyle =
 ProcessWindowStyle.Hidden;
    myProcess.Start();
    System.Threading.
Thread.Sleep(2000);
}
This Method will print an XPS document using Microsoft XPS Document Writer without user interaction at all

 

 

I got some references from here:

http://stackoverflow.com/questions/619158/adobe-reader-command-line-reference

http://bytes.com/topic/c-sharp/answers/256956-printing-pdf-process-start-without-user-prompt

December 19
New CRM 2011 SDK available for download

On December 12 Microsoft released a new version of the Microsoft Dynamics CRM 2011 SDK

You can download it from this link

http://www.microsoft.com/download/en/details.aspx?id=24004

The new features that this version of the SDK comes are the following

  1. There is a new version of the metadata browser 1.0.3. It is no longer added in the sitemap as before and now you can launch it and use it directly from the solution in the Configuration page.


1 - 10Next
 

 About this blog

 
damian.jpg
Welcome to Remoting Coders Blog, here you will find articles written by our CEO Damian Sinay and by our team developer’s members were we will try to share our most daily experience when dealing with Windows, SharePoint and Dynamics CRM issues. Enjoy!.