C# Find the next perfect square!

You might know some pretty large perfect squares. But what about the NEXT one? Complete the findNextSquare method that finds the next integral perfect square after the one passed as a parameter. Recall that an integral perfect square is an integer n such that sqrt(n) is also an integer. If the parameter is itself not… Continue reading C# Find the next perfect square!

Entity Framework cannot update database – SaveChanges() related to SetClrFeatureSwitchMap error

I had the issue with saving data to DB using Entity Framework and SaveChanges() method, and fixed it by adding the following lines to the web.config of my application: <runtime> <assemblyBinding xmlns=”urn:schemas-microsoft-com:asm.v1″> <dependentAssembly> <assemblyIdentity name=”Microsoft.SqlServer.Types” publicKeyToken=”89845dcd8080cc91″ /> <bindingRedirect oldVersion=”1.0.0.0-11.0.0.0″ newVersion=”10.0.0.0″ /> </dependentAssembly> </assemblyBinding> </runtime> This forces the EntityFramework to use the version 10 of the… Continue reading Entity Framework cannot update database – SaveChanges() related to SetClrFeatureSwitchMap error

Creating a custom master page in SharePoint 2013 using Visual Studio 2012

I have successfully created a custom masterpage for SharePoint 2013 using Visual Studio 2012. The process very similar to how it was done in SharePoint 2010. Here are the steps I did to create my custom masterpage: Open the 15 hive to directory “15\TEMPLATE\GLOBAL” Copy the “seattle.master” file (or the oslo.master file) Create a new… Continue reading Creating a custom master page in SharePoint 2013 using Visual Studio 2012

Conditionally Setting Column Visibility in SSRS

In this article I will show you real example of the usage of Column Visibility property in SSRS. Column visibility property is used to show or hide the column in the report. Now in this article, we can use this property to allow the users to select columns what they want to see in a… Continue reading Conditionally Setting Column Visibility in SSRS

C# : Handling not sent email exception

Im stuck with problem as some of the system users are “nonactive” users and my function is not handling exception of not sending email to “nonactive” users. Function send email to users even if they are nonactive in system. private static bool Postepowanie_ObslugaPodstawowa(AlertTyp typPowiadomienia, string statusDescr, int podanieId, IUzytkownik sender, IEnumerable<IUzytkownik> recipients) { SzablonPowiadomien szablon… Continue reading C# : Handling not sent email exception

Custom SharePoint User Profile mappings with Active Directory

Business Purpose Followig my previous post about┬áSynchronize User Profiles with Active Directory in SharePoint Foundation. I thought it would be useful to continue with a post about synchronization with custom SharePoint User Profile fields mappings with Active Directory. Technical Information Active Directory has Mobile Number and Telephone Number fields ( and many other which they… Continue reading Custom SharePoint User Profile mappings with Active Directory