Tuesday, February 11, 2014

Customize a Path Gradient on Winform Paint

http://msdn.microsoft.com/en-us/library/7fswd1t7%28v=vs.110%29.aspx

Started using pomodairo - Pomodoro application built with Adobe AIR

https://code.google.com/p/pomodairo/

After using Pomodoro on my Phone, I thought to check an app that runs on my PC.
I need a task list with it to summarize what was done and did not find an easy to use app for android.

I found a recommendation that I liked here  and downloaded the application.
http://www.makeuseof.com/tag/3-free-pomodoro-productivity-apps/

After working with it for a day, the screens are to small and the app is simply not convenient.
I am going to write my own app.


Monday, February 10, 2014

Pomodoro Application, Tired of the ones I found

I think I am going to write a pomodoro application which will run as a widget. I hve a good one on my phone which I really recormmend, called ClockWork Tomato. it lacks some things I want, like writing Tasks and pausing the clock.

Here is a list of blogs on analog clocks :
http://www.codeproject.com/Articles/138452/An-Analog-Clock-Design-Using-OpenTK-in-Csharp
http://www.c-sharpcorner.com/UploadFile/mgold/VirtualClock09282005072736AM/VirtualClock.aspx
http://blog.csharphelper.com/2011/10/21/draw-an-analog-clock-in-c.aspx
http://www.c-sharpcorner.com/UploadFile/mihai.popescu/AnalogClockWidget12072006042319AM/AnalogClockWidget.aspx

Message on Form Load : Principal user (Id=, type=8) is missing prvReadContact privilege

At one of the Sites that uses Orek CRM, A user is a field employee and as such he/she do not need to have access to Customer Information. The user is managing Tasks and We Support this scenario by copying the customer relevant information to the Task itself.



Today, the admin calls me and tells me there is a strange error on the computer of one of the employees that resembles the problem with the NameCtrl ActiveX control and he is sure that this is the same problem. He even checks this on his computer with the employee credentials and does not see the problem.



Because the Error, listed below, looks like an error on the server side, we checked the authroization of the user and added Read privilege to Customer and it worked. So after removing it, we check the communication on the computer using Fiddler and found the problem in the Presence service.



We then disabled the Presence setting for the whole system and it worked. Since other users are using the Presence to chat with each other, we will need to find a solution.

The User does have Attach and Attach to privileges and I guess the real solution is to remove them from his.

The post will be updated.



The full Error :



Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Principal user (Id=55d8854b-80dc-e011-baae-0022649937c2, type=8) is missing prvReadContact privilege (Id=ba09ec92-12c4-4312-ba16-5715c2cbd6da)Detail:

<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">

  <ErrorCode>-2147220960</ErrorCode>

  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">

    <KeyValuePairOfstringanyType>

      <d2p1:key>CallStack</d2p1:key>

      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)

   at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)

   at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)

   at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)

   at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)

   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)

   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)</d2p1:value>

    </KeyValuePairOfstringanyType>

  </ErrorDetails>

  <Message>Principal user (Id=XXXXXXXXXXXXXXXXXXXXX type=8) is missing prvReadContact privilege (Id=ba09ec92-12c4-4312-ba16-5715c2cbd6da)</Message>

  <Timestamp>2014-02-10T09:28:09.3875348Z</Timestamp>

  <InnerFault i:nil="true" />

  <TraceText i:nil="true" />

</OrganizationServiceFault>

Viewing all CRM Privileges, including hidden Privileges - Microsoft Dynamics CRM Team Blog - Site Home - MSDN Blogs

Viewing all CRM Privileges, including hidden Privileges - Microsoft Dynamics CRM Team Blog - Site Home - MSDN Blogs: "Viewing all CRM Privileges, including hidden Privileges"



A post by  David Jennaway about CRM Pivilegaes. It is about CRM 4.0 and I guess it can work on newer versions. I will try this with one of the customers on CRM 2011 and update this post.



He Lists the Privileges and even write reports to display them on your server. The reports can be found here:

http://archive.msdn.microsoft.com/CrmSecurityReports


Sunday, February 9, 2014

Incident/Case and Task ribbon is blank , problem in CRM Rollup 12 and Up

After installing rollup 12 and upwards, Customers may find that the ribbon is empty at the Edit Form for certain entitites, mostly Case/Incident and Task.
The problems comes from three reasons which can happen together or separately:
1. There is a Javascript Error on the form that stops the form load, this happens on the enabling of the form assistant, so disabling the Form Assistant will prevent the problem. This problem is seen in Firefox too. not just on IE.
2. There are other problems with the Javascript and HTML code that fails to execute. After Clearing the " Load pages in the most recent version of Internet Explorer" setting the form will load.
3. Rollup 14 installs the Activity Feed solution. If you installed it from the market before the rollup, the installation of the solution may fail.

sources :
problem 2 solution by Imagine Technology Group
http://thinketg.com/dynamics-crm-2011-ru-12-blank-ribbon-issue-resolution/ 
problem 2 solution by power objects
http://www.powerobjects.com/blog/2013/02/13/customized-case-ribbon-missing-ur-12/ 
problem 3 solution by chamara iresh
http://stackoverflow.com/questions/19462988/crm-2011-ribbon-bar-missing-after-applying-update-rollup-14-in-ie-not-the-chrome

Microsoft Dynamics CRM Compatibility List and Internet Explorer 11

Microsoft hase a Compatibility List of products that Microsoft Dynamics CRM support.
http://support.microsoft.com/kb/2669061

To our surprise, after the rollups that support Chrome and Firefox that work great, The CRM product dos not support Internet Explorer 11.

This is like, after all the promises that microsoft made to support HTML standard in IE, comes a team at Microsoft and declares that the Microsoft product is incompatible with theHTML standard?  After loading pages in IE 11 we see that the system is loading ActiveX controls and the IE 11 does not allow them to be created. I thought that Chrome did the same thing, so what is going on here?      Since MS is not supporting it, I saw no reason to pursue this matter.

Anyway, We had a customer that insisted on working with IE11 we tried it.
setting compatibility mode and clearing the "Load Pages with the latest IE version" settings made the system work without problems, even in an WebBrowser control inside a WinForm Application.