Posts

Showing posts from March, 2010

Localizing your custom solution and Silverlight

While localizing my custom website hosting a Silverlight 3 control, I added multiple resource files (.resx) to my xap and when I hit the page I got this error: System.Windows.Markup.XamlParseException occurred Message="AG_E_PARSER_UNKNOWN_TYPE On hitting this link http://www.telerik.com/community/forums/silverlight/navigation/navigation-samples-failing-with-silverlight-3-because-of-urimapping.aspx I realized the goof up. One of the resx files had the constructor still declared as ‘internal’, and you get this error when the application is getting initialized and trying to access and internal resource. So I made the changes to set it to public, and it worked like a charm!!

CTP3 for MS CRM 5.0 now available!!

CTP3 for MS CRM 5.0 now available!! The main features offered by CRM 5.0 include: 1. Features for end users Enhanced Navigation - A “Fluent UI” like Office 2007 Single Page Forms - Single scrolling page, “quick access” navigation shortcuts and less pop-ups and clicks to complete common task Data Filtering –In-line filtering like Excel, visualization of numeric data using in-line charts and availability of drill through charts WSS integration -Document management, site and document library provisioning and check-in check-out capabilities. Team ownership for entities 2. Features for Administrators and Customizers Filtered Lookups :) Solution Management -A single unit solution (a defined set of entity customizations, workflows, e-mail templates, security roles, plug-ins etc.), version controlled solution and ability to specify selected attributes for exporting “Global Picklists” at solution level that are re-usable across multiple entities. Drag and Drop form editor New server role for
This is for beginners in MS CRM 4.0 wanting to understand the Security Architecture in MS CRM 4.0. Download the whitepaper from: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=fb4bb16b-586f-4aae-aa4b-790023e95b61 A brief summary for the Role Based Security and the Object based security is explained from the article: To determine the extent to which users have access to the system and the resources it stores, Microsoft Dynamics CRM leverages two complementary security mechanisms: Role-based security in Microsoft Dynamics CRM focuses on grouping a set of privileges together that describe the tasks that are performed for a user in a specific job function. The basic concepts of role-based security include the following: o Users are assigned one or more roles based on their job function or tasks o Roles are associated with permissions (privileges and access levels) for the different business objects (entities) o Users gain access to entities or groups of entitie

Visual Studio 2010 RC Installation Issue on Windows XP machine

While trying to install VS 2010 RC on my windows XP sp3 machine, I was facing this issue that the installer wasn't able to install any of the components after it installed .Net Framework 4.0. Once I installed .NET Framework 4.0, it prompted me to restart the machine, and on restart nothing really happened (though the setup was expected to resume). I re-clicked the setup and still nothing happened. So after trying to re-install VS 2010 a couple times, I found out the solution to the problem - Display the language bar at the taskbar, right-click on it and choose settings. Then remove the hand writing support from the list. There is a bug in the RC for computers with touch screens. Here is where I found this: http://social.msdn.microsoft.com/Forums/en-US/setupprerelease/thread/dbcdcd52-d162-4460-9920-33c9ab54b36f

MS CRM 4.0 Worflow Issue

Recently I came across a scenario where it was required that workflow be triggered on change of a read only only field. While testing I found that the workflow wasn't getting fired. I added the code to ForceSubmit the field OnSave of record. Even after that the workflow didnt execute on change of that field. Ultimately, I had to enable that field so that the workflow could trigger on field change. Additional logic (simply a workaround) had to be applied in order to achieve the desired functionality.

JavaScript code to pre populate fields on associated record opened from parent or related record

Recently, I came across a scenario, where it was required that some fields be pre-populated on a new form opened from associated view of a record. One possible solution is to fire a SOAP Xml retrieve request to get the desired fields of the related record and set them on the new form. But this approach requires a database interaction using MS CRM web services, that can cause a noticeable delay in form load. An alternative to this approach is to access parent record using JavaScript object model and access the fields on form to set values on new form. Following sample code can be added to OnLoad event of form to achieve the same: //***************************************************************************** //Functionality- In create mode, get default values from associated location record //***************************************************************************** if (crmForm.FormType == 1) { //If form is being opened using an existing parent record if ((window.opener != null) &

Server Error in application on navigating to Items link in Portal Integration and Partner Relationship Management Accelerators

On navigating to "Items" link in Portal Integration and Partner Relationship Management Accelerators, following error message is obtained: Server Error in '/' Application.-------------------------------------------------------------------------------- The type specified in the TypeName property of ObjectDataSource 'ObjectDataSourceCategories' could not be found. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: The type specified in the TypeName property of ObjectDataSource 'ObjectDataSourceCategories' could not be found. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [In

Microsoft CRM Outlook Client

Just a tip for the user installing Microsoft CRM Outlook Client for Outlook 2003. Ensure that you install the Update Rollup 7 for the Outlook client, else couple of menu items (Change Organization, Options) will not be available from the CRM menu installed. Also, use the CRM->Options->Synchronization tab to change the duration of synchronization between MS Outlook and the web client (which is 15 minutes by default). Get the Update Rollup 7 for Outlook Client at: http://www.microsoft.com/downloads/details.aspx?FamilyID=A4893988-7804-4E23-AB58-740441CC696E&displaylang=ja&displaylang=en Read more about synchronization of records and activities between MS CRM and Outlook at: http://rc.crm.dynamics.com/rc/regcont/en_us/OP/help/ug_ol_RecordsActivities.htm

Unable to restart the Email Router service

Ever got 'The E-mail Router service could not run the service main background thread. The E-mail Router service cannot continue and will now shut down' while re-starting the MS CRM Email Router Service. The trace logged is : "System.Configuration.ConfigurationErrorsException: The E-mail router service cannot access system state file Microsoft.Crm.Tools.EmailAgent.SystemState.xml. The file may be missing or may not be accessible. The E-mail Router service cannot continue and will now shut down. ---> System.Xml.XmlException: Root element is missing." Root Cause: The Microsoft.Crm.Tools.EmailAgent.SystemState.xml file is corrupted. Solution: 1. Browse to 'C:Program FilesMicrosoft CRM EmailService'. Delete the Microsoft.Crm.Tools.EmailAgent.SystemState.xml file. 2. Restart the Microsoft Dynamics CRM E-mail Router Service.The Microsoft.Crm.Tools.EmailAgent.SystemState.xml file is re-created. Read more at: http://support.microsoft.com/kb/954522