Archive

Archive for the ‘Dynamics CRM 2011 Technical’ Category

CRM 2011 IFD : Add new organization and required changes

July 15, 2013 1 comment

Just thought of sharing when i did those. You may have a need to add a new organization to an existing CRM 2011 IFD deployment. From a plain sight, adding an organization is super simple from deployment manager but remember you now have IFD configured. Once you created the organization you may try to browse that – It will give a 404 page not found error.

That is just because,  there are just couple of inclusions/changes need to be done due to the fact that our deployment is now IFD.

Create a new A host record in your DNS for the corresponding newly created organization name.

dns_entry

Update Relying Party Metadata federation metadata

8

This picks up the new entries from the DNS and does the required changes appropriately.

Clear your browser history and cookies

(No reference image required). – This is not required typically but your IE may still get information from the cache when the page is requested again. Clearing the browsing history and cookies makes it all simple.

Cheers,

Edwin

Advertisements

ADFS 2.0 Federation Server Configuration: “Existing Website Detected. Therefore, the website was not reinstalled”

July 15, 2013 2 comments

In my case, i encountered this warning when i was in the process of setting up CRM 2011 IFD but it applies for all ADFS 2.0 related developments.

I’m sure most of us do some experiments and research before a complex setting to be made. In a similar manner, i was installing and uninstalling ADFS 2.0. Got this warning when i tried to reconfigure ADFS 2.0 Federation server.

adfs_website_already_exist

And then the below screen,

adfs_dont_skip

The configuration still completes but when you wanted to be sure of why this is happening. It is imperative to find the root cause. The first thing you do is: you will have to make sure that the website directory still exists. You can check that by navigating to typically c:/inetpub to see if you have a folder exist even after uninstalling ADFS 2.0. If it is there, you can manually delete it.

And you may feel that’s all it to make it smooth the next time you install and configure ADFS 2.0 federation server. But in few circumstances it is not. There will be trails of ADFS left in our system, typically in IIS. To ensure a smooth installation next time, you may need to follow the below steps,

Open IIS – > Navigate to the website- > Select “View Applications”

1

Which will bring up the following screen and we need to select ADFS – > Right click and select “Remove”

3

Once that is done, in your IIS – > Navigate to Application pools – > Right click on “ADFSAppPool” and select “Remove”.

4

That’s it – Add done – Perform an “IISRESET” just to ensure the changes gets reflected and start re-installing ADFS 2.0 and configure ADFS 2.0 Federation Server. This time, you will not get the warning and the configuration will have no issues.

5

Hope this benefits someone who may run into similar issues.

Cheers,

Edwin

CRM 2011 JavaScript Error : object doesn’t support property or method ‘Form load’–on most entity forms with a Non Customized CRM

Recently i installed and setup a fresh copy of our CRM 2011 system, the installation went fine and there were no errors or warnings during the installation.

But,

We had one problem – When you open almost any entity form, you get a JavaScript On load Error

There was an error with this field’s customized event

Field: window

Event: onload

Error: object doesn’t support property or method ‘Form load’

That was strange when there are no customizations made and it’s just freshly installed or not even upgraded from CRM 4.0.

After much digging, i learned that it was just because of a corrupt or missing component (ReWrite Module) for the CRM website in IIS.

Before proceeding with the steps to resolve, we can confirm that by opening up IIS Manager from your CRM server – navigate to CRM website – open Modules under IIS Tab,

1

2

If you notice the above image, there is none named Rewrite Module listed under modules.

So, the Resolution was to install/repair the Microsoft URL ReWrite module from your CRM installation media under a folder named URLReWriteModule and the file name is “rewrite_1.1_amd64_rtw”

3

Alternatively, you can also download that from here,

http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=16784

Once you install/repair the URL Rewrite Module – The Errors doesn’t occur any more and everything works fine.

You can also confirm the changes by going back to Modules under IIS and check for ReWrite Module entry and also open the CRM web.config and find the new entry like this,

<rewrite>
      <rules>
        <rule name="ClientGlobalContextRule" stopProcessing="true">
          <match url="/?([0-9a-zA-Z][^/]*)?/?((?:%7b|\{)[^/]*(?:%7d|\}))?/?(WebResources|Handlers)/ClientGlobalContext.js.aspx" />
          <action type="Rewrite" url="/{R:1}/_Common/ClientGlobalContext.js.aspx" />
        </rule>
        <rule name="WebResourcesRule" stopProcessing="true">
          <match url="/?([0-9a-zA-Z][^/]*)?/?((?:%7b|\{)[^/]*(?:%7d|\}))?/?webresources/([^\\?]+)" />
          <action type="Rewrite" url="/{R:1}/Handlers/WebResource.ashx?name={R:3}" />
        </rule>
        <rule name="FederationMetadataRule" stopProcessing="true">
          <match url="FederationMetadata/2007-06/FederationMetadata.xml" />
          <action type="Rewrite" url="/Handlers/FederationMetadata.ashx" />
        </rule>
      </rules>
    </rewrite>

URL ReWrite – What it does and how does it work in conjunction with CRM?

When a webresource Ex. An entity form is requested from the CRM server, the URL is built dynamically using URL ReWrite component. More information on URL Rewriting in Asp.net is found here.

Hope this helps someone and was a good learning for me as well.

Thanks,

Francis Edwin

Dynamics CRM 2011 UR 12 “Polaris” Update Known Issues

February 1, 2013 Leave a comment

With the CRM 2011 UR 12 “Polaris” update recently released, it is also evident that a lot of CRM administrators and customizers started using/experiment it before advising their customer group.

While doing so, there are chances that the administrators and customizers may come across some issues and will be looking for a possible fix. To address the same, the CRM product support team has come up with some great knowledge base articles to serve the purpose.

Here is a compilation of all the articles with problem resolutions from the CRM product support team. Hope this will save a lot of our troubleshooting time.

Cheers,

Francis Edwin

CRM 2011 unable to change domain logon name “Access denied” Error

August 27, 2012 5 comments

While many of us encounter this error at different occasions when working with Microsoft Dynamics CRM 2011 (On Premise). I’ve seen this error happening at the following situations,

  • When creating a new user (On Premise)
  • Your Workflow suddenly stops firing or sometimes status pending
  • During your plugin execution

The “Workstation” service in your CRM server is not running or stopped.

  • To fix the same, click start –> Run – > type “services.msc” and check if your “Workstation” service is set to automatic and started.

Change Registry setting.

  • Make sure you have the "AutoGroupManagement" value set to 1 (false) in your registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM

Reason behind this registry change?

By default, the Auto Group Management functionality is turned on. Microsoft Dynamics CRM automatically adds the appropriate user accounts and the appropriate computer accounts to the required Microsoft Dynamics CRM security groups. If you turn off Auto Group Management, Microsoft Dynamics CRM does not automatically add these accounts. In this case, a domain administrator or a user who has sufficient permissions must add the appropriate user accounts and the appropriate computer accounts to the required groups.

Happy Troubleshooting!

Cheers,

Francis Edwin

CRM 2011 Error displaying IFrame contents inside CRM dashboards

August 24, 2012 Leave a comment

Lately, one of the CRM forums member was facing a problem displaying activity feeds inside IFrame and using that IFrame inside the CRM Dashboard. The dashboard saved fine but when the dashboard loaded, it was throwing the below message,

Microsoft Dynamics CRM makes extensive use of your Web browser’s client-side abilities, including ActiveX scripting. You either have one of these features turned off or your security settings are set so high that they prevent these features from being used. To enable these features, add the Microsoft Dynamics CRM Server URL (http://devcrm1) to your list of Trusted Sites and try your request again.
To assign the Microsoft Dynamics CRM site to the Trusted sites security zone:
1. In Internet Explorer, on the Tools menu, click Internet Options.
2. Click the Security tab, and then click the Trusted sites zone.
3. Click Sites.
4. In the Add this Web site to the zone box, type Ex: http://devcrm1, and then click Add.

The above may not be applicable for everyone if they have already added their CRM URL to the IE trusted sites.

In this case, the created dashboard was “User Owned” and the resolution was to ensure that the “Restrict cross frame scripting” is unchecked in your respective IFrame.

To learn more about cross frame scripting and security, refer, http://msdn.microsoft.com/en-us/library/ms533028(v=VS.85).aspx

Cheers,

Francis Edwin

CRM 2011 "unsupported xml core services version" Error : Update Rollup 8 Issue

August 24, 2012 Leave a comment

Recently, one of my customers encountered a strange error when they were trying to access Dynamics CRM 2011 from the web client (Internet Explorer).

image

Then, we learnt that it happened only after installing CRM 2011 Update Rollup 8 beta, the prior was UR 6 when everything worked fine. We were thinking of uninstalling UR 8 and see if it was just because of that. But before jumping into that conclusion, we thought of finding why XML Parser and XML Core services (MSXML) were not identified by CRM even though it was installed. Eventually after much digging, we found that just by adding your CRM URL to IE Trusted Sites SOLVED THE PROBLEM.

The same problem was posted in the CRM forum and my suggestions helped there.

Later i found that, for some the issue was still persisting even after adding the CRM URL to their IE trusted sites.

It was then pretty evident that the problem was with UR 8 beta itself. So uninstalling UR 8 and switching back to UR 6 worked fine. After installing UR 9 beta directly also worked fine.

And now, we have the latest UR 10 just released.

Happy Experimenting!

Cheers,

Francis Edwin