Posts

Showing posts from February, 2017

Could not load file or assembly 'Newtonsoft.Json'..." error causes Azure Push Notification initinalize failure in Windows Appp

I have been received the error "HTTP 400, bad request" when calling Azure Push Notification initialised function for few days. It was working fine previously and I didn't change any configuration on it. I checked the "diagnostics logs" in Azure Mobile App service and found the issue related to below error message. Could not load file or assembly 'Newtonsoft.Json, Version=8.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) I researched above issue in Google and then updated the latest version of "Newtonsoft.Json" in my Azure Mobile App .NET back-end application. The issue was gone and I can calling Azure Push Notification service in my mobile App successfully!

Unable to add a new record to Azure SQL table

 I had been received an error when  try to add a new record to Azure SQL table via Mobile App service in a mobile app as below: StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:  400 Bad request" I verified the SQL table and even can manually insert a record on there. Suddenly, I realized that an error " System.Data.SqlClient.SqlException (0x80131904): Cannot create more than one clustered index on table" was showing when created this table in Azure Mobile .Net back-end. Generally, this error message is caused that Entity Framework does not have an annotation for creating a clustered index that is not a primary key, so the mobile server SDK manually creates the right SQL statements to set CreatedAt as a non-primary key clustered index. To resolve this, In the Migrations\Configuration.cs file, include the following lines: public Configuration() {    AutomaticMigrationsEnabled = false; ...

Create a dynamic and more user self service Web Portal

Image
I have been worked on a CMS Portal project in SharePoint 2013 platform and needed to create a lots of forms and landing pages. The stake holder needed to review and change frequently of the heading, messages, and column headers on the application pages, and so I am thinking to separate the labeling / contents from the code which the similar approach as Sitecore to save and retrieve word values in model's fields and then loading them to front-end pages. SharePoint provides some features to achieve showing dynamic contents as below methods: 1. Using SharePoint List I used a SharePoint list to save Label and message text values and then loading them dynamically in SharePoint WebParts. The benefit of this approach is giving user to update label/contents more easier without updating the source code. It increases the work efficiency. In some case, there will be multiple site collection needs to share data from the same SharePoint list. This causes cross domain call issue in jQu...