7/21/13

WCF Service with Cross Domain Support

When we try to make an AJAX call to a web service that is hosted on a different domain, we get an Access Denied exception on the client side JavaScript. This error is due to the Same Origin Policy that the browsers implement to prevent Cross-Domain requests (XDRs). To address this problem with a WCF service, we can add the following settings to the Web.config file: <system.webServer> <httpProtocol> <customHeaders> <add...

6/29/13

Dynamics CRM Set IFrame to a Blank URL

When adding an IFrame to an entity form, Dynamics CRM requires that a default URL be defined. When we do not know the URL at design time, we commonly would just set the URL to the string about:blank. When we type this on a browser, this basically tells the browser to load an empty HTML page which is the ideal approach when the URL should be defined dynamically. The problem is that when we...

5/28/13

Request a code review with Visual Studio 2012 Premium

Before any code is check-in, a developer can request a code review using Visual Studio. The steps for a code review request and response are as follows: Send a review request:  (developer) Do not check-in your code On Team Explorer Home, click on Request Code Review o   Enter the name of the reviewer o   Enter the following information §  Task name §  Area...

3/23/13

Encrypting ASP.Net Application Settings

When storing sensitive information in our web.config files, we may want to keep this information secured by encrypting the settings. We can easily do this by using the ASP.NET IIS registration tool (aspnet_regiis.exe) found in the Visual Studio command prompt. This tools allows us to encrypt our settings by just using a couple of command lines, but there are a few things that we should know before...

2/24/13

CRM Dynamic Outlook Client Does Not Authenticate

After installing the CRM Dynamics Outlook client, you may see an error indicating that your credentials can't be authenticated by the CRM service even when you know that your credentials are correct.     When this takes place, we need to look at what service your work station...