Author Archive: Ahmed Muneeb

2013 in review


The WordPress.com stats helper monkeys prepared a 2013 annual report for this blog. Here’s an excerpt: The concert hall at the Sydney Opera House holds 2,700 people. This blog was viewed about 24,000 times in 2013. If it were a concert at Sydney Opera House, it would take about 9 sold-out performances for that many …

Continue reading

SharePoint 2013 search API and parsing search results for data table (Part 2 of 3)


This is part 2 of a 3 part series which is about SharePoint 2013 search API and parsing search results using data table. SharePoint developers – How can I forget about you while writing my blogs? This post is specifically for SharePoint developers who want to leverage SharePoint’s search API to get results from SharePoint …

Continue reading

SharePoint 2013 custom field in not showing in crawled and managed properties


SharePointerssss. . . . ! ! ! Guys, I am back with another real life situation which left us all very frustrated and made us pull our hairs. Situation occurred with SharePoint 2013 search. Problem statement: We had one column which was part of a content type in SharePoint 2013. After full crawling all other …

Continue reading

Configuring SharePoint 2013 Search (Part 1 of 3)


Guys, I am here with another very interesting post drilling down SharePoint 2013 search capabilities and available features.  The following things will be discussed Part 1: Configuring SharePoint 2013 “Result sources” Part 2: SharePoint 2013 search API and parsing search results using data table Part 3: Configuring SharePoint 2013 search center & redirect search queries …

Continue reading

Alhumduillah – I am awarded with “Najm” which means star


Continue reading

Apply for wife’s residence visa in UAE


Guys, I am here yet again with an interesting post with steps on ‘how to apply wife’s residence visa for UAE (Dependant VISA)’. First I will list the requriements which includes… Computerized marriage certificate (NADRA’s) attested from MoFA of Pakistan then Consulate General of Pakistan in UAE and then MoFA of UAE Your rental agreement …

Continue reading

Another appreciation from client – SharePoint Module


Got another appreciation from the client few days back. Ahmed Once again, many thanks for your assistance with the creation of this “site” .  It is working extremely well, and we’ve had really good feedback from the users.  This application has significantly reduced the time it would have taken to do this process via emails. Kind …

Continue reading

Make client side changes in SharePoint list’s NewForm.aspx or EditForm.aspx


Okay guys! Another very simple but very useful & interesting SharePoint post. I love when I come up with quick solutions. Scenario: You create a list in SharePoint (of any type). When you click on New/Edit SharePoint opens new page. If you see URL you will see Lists/ListName/NewForm.aspx in case of if you pressed ‘NEW’ …

Continue reading

Extend grace period of Microsoft Office 2013


Guys, Sometimes we need to extend the grace period of Microsoft products including Microsoft’s flagship product – Microsoft Office 2013. Here are the steps how to do it. Run command prompt as Administrator Go to location: %ProgramFiles%\Microsoft Office\Office 15 Type this command: cscript ospp.vbs /rearm YES!!! You are done. Your office is activated again as …

Continue reading

Configure PDF iFilter for SharePoint 2010


I spent a lot of time trying to figure out the exact steps to properly configure PDF iFilters for content based search in SharePoint 2010. Here are the steps. Download and Install the Adobe PDF iFilter 9 from Abode’s site using ‘Run as Administrator’ Download a 16X16 PDF icon file from the Adobe web site …

Continue reading

MOSS Error – Operation is not valid due to the current state of the object


Hi Guys, Today I am posting another very short but very interesting post which will save your hours of efforts and some hairs too. Problem Statement: SPListItem.Update() and SPListItem.SystemUpdate() calls fails with the following error – ‘Operation is not valid due to the current state of the object’ One liner solution: Do NOT call SPListItem.Update() …

Continue reading

My Blogging year 2012 in review


The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog. Here’s an excerpt: 600 people reached the top of Mt. Everest in 2012. This blog got about 10,000 views in 2012. If every person who reached the top of Mt. Everest viewed this blog, it would have taken 17 years to get …

Continue reading

Extend evaluation period of Windows Server 2008 R2


Here I am for you guys with a small but very useful post. Many of us are using evaluation products from (Great, Awesome & Super) Microsoft including Windows Server 2008 R2. The evaluation period is normally for 60-90 days and once it gets expired and if you are still using it then you may face …

Continue reading

The Web application at URL could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.


Here is another very important post based a problem which made me pull my hairs and after wasting 5 working days, I was able to find a solution. When accessing SPSite object from a web application we get this error. The Web application at URL could not be found. Verify that you have typed the …

Continue reading

How to get protector certificate against employment visa in Pakistan


Today, I will explain how to get protector document (a MUST document for all employment VISAs by Immigration of Pakistan). Without protector (in case if you have employment VISA) you will not be allowed to leave Pakistan and will be returned from the airport. Get passport sized pictures with white background (at-least 20 – rest …

Continue reading

Make a factorial calculator in C# without multiplication sign


Guys, today I came up with another very interesting post. Though this is a class assignment for an intermediate level students but most of developers ran into this problem and don’t find a way out. So here is a simple post for them with source code and guidance. A factorial calculator will do some basic …

Continue reading

Steps to apply for employment VISA for any GULF based country (UAE VISA)


Guys, I hope you are doing great. I am about to write a very important post on ‘steps to apply for employment VISA’ for any GULF based country. I hope this post will help you avoid all the KHAWARI that I have been through. Please note: These steps are according to the procedures in place …

Continue reading

Show a picture to user before uploading it


Hey Guys, I am here with a very interesting post… We ran into a very exciting requirement by the client to show the picture in the picture box before uploading it to the server. So here is the code to do it. Add this code on your HTML Page… Since, the File upload control is …

Continue reading

Boot using Microsoft Windows 7 VHD


Guys, finally I am back with another interesting post on a topic which is very near and dear to my heart. Yes, I am talking about “Virtualization”…. I have been reading a lot of blogs about this topic and I must say that Microsoft has done a huge job in getting it out of its …

Continue reading

Another SharePoint WorkFlow project for Gulf client…


Hi All, So Im back! with another exciting round of blogs for you people… However, I would first like to let you know about our up-coming project. It’s for Gulf based client – A leave approval workflow to be designed from strach on top of ASP.NET 3.5 and SharePoint 2010. See some of the images …

Continue reading

Another recommendation from the freelance client


From one of my very prestigious freelance client – March 25, 2010 Muneeb is that one in a million rockstar developer you’ve always been looking for but never can seem to find. The real deal. My experience so far in working with his team has been superb. They are always proactive and right on or above schedule. …

Continue reading

An exception of type Microsoft.SharePoint.Upgrade.SPUpgradeException was thrown during SharePoint Configuration wizard at step-2


Like many others, I have SharePoint 2007 installed on my Windows Server 2003 with SP2 box for custom development tasks; however, I also have Office 2010 Beta 2 installed on my machine of which has caused me a problem when attempting to run psconfig after installing the October 2009 CU patches (instructions to get these …

Continue reading

Another Live InfoPath Project


"The beast is finally tamed" – Ohhh! I still remember this sentence. This was once said by my PM (Athar Shafiq – Xavor) when we completed the Portal migration project (SPS 2003 to MOSS 2007) for Broadcom, US. The relevance of this sentence is very much the same today as I have completed yet another …

Continue reading

Making custom breadcrumbs for Document library


Hi Folks, Today, I am writing this blog to give some pointers on developing custom breadcrumb control for document library… So here it is… Actually the problem with SharePoint’s document library is when it is displayed using list view webpart and you move in a child folder of document library then there is no way …

Continue reading

Bulk Check-in inside a Document library


Hi Folks, I am back with yet another very interesting post regarding bulk check-in from a document library.   First the requirements: The initial requirement from the client was that, it wants to do bulk check-in inside a document library. Users must be able to see a link in “Actions” menu of a document library …

Continue reading

Zip contents of a document library…


Hi Folks,So here I am with another very interesting post which is about zipping the contents of a document library and saving them on a network or local location. Actually I am currently working on a huge MOSS based project for Trubiquity, it a huge application with very large number of employees. The basic objective …

Continue reading

Reading emails & email headers from Outlook mail using C# – Part II


Hi Guys! This is continuation of my previous entry on reading emails and email header from Outlook PST file using C#. If you somehow, missed the first part you can have a look at it here So in my previous part, I showed you how you can read header of an email from a PST …

Continue reading

Reading emails & email headers from Outlook mail using C# – Part I


First, some news about myself, I left PiSigma Group, Islamabad and now working with DigiDent solutions Pvt. Ltd as Sr. Consultant. It’s a very good place to work in with lots of growth opportunities. At-least, hopefully, I will get paid on time here  Now something about my latest work in this company. It was my …

Continue reading

NEGATION JOIN IN SQL SERVER 2005


Hi All,   Today, I again come up with a very interesting problem with a very simple solution.   Scanerio: I have two tables, let me call the first table "A" and second table be "B". Both tables have a common column called EMAIL on which we can apply a join.   Requirement: I want …

Continue reading

The ntext data type cannot be selected as DISTINCT because it is not comparable


Hi All, Today, I again come up with a very interesting problem. I was working on an SQL Server 2005 DB with almost 160 tables. In one of the core table, there was a field with data type "NTEXT". I wanted to apply DISTINCT on it, as I was getting duplicated records against a join …

Continue reading

I get prompt for User Name and Password, when I try to access my portal site!


When I access portal, I get prompt for username/password every time… Here’s is the way to remove it! Open internet explorer Go to Tools Click on internet option Open security tab Click on custom level Scroll down and select Select Automatic logon with current username and password Click ok

Continue reading

Converting Data Type of Promoted Fields with Custom Event Handlers for MOSS


Hi Again, In my previous post titled "WORKING WITH INFOPATH FORMS AND INFOPATH SERVICES", I tried to build a guide for publishing InfoPath forms as content types and promoting few fields so that they can appear in list views. I hope the previous post was useful and helpful. Please provide your comments on that, if …

Continue reading

Working with InfoPath Forms and InfoPath Services


Hi All, Its long time, I’m out of my blogging service, just because of the fact I didn’t get enough time to share with you people my findings. Anyways, new twist in life and I’m back. Before I would take you towards my post, I would like to share a though with all of you! …

Continue reading

MOSS Installation Error… ASP.NET should be in allowed list of IIS


Hello All,   I was installing MOSS yesterday, and was getting an error stating "ASP.NET should be in allowed list of IIS", although It was in the allowed list of IIS but the error was there…. After many re-attempts to install I found that the I need to have the 64 bit DLL for ASP.NET, and …

Continue reading

Shocking News…. I left XAVOR Pakistan Pvt Ltd


Hi All,   Today I am going to tell a shocking news to all of you! I left XAVOR Pakistan Pvt Ltd.  (a very famous Software house in Lahore) only after working few months there and now working for COMSATS Institute of Information Technology where I am going to develop MOSS based portal for students and …

Continue reading

Making Site Definition Templates for MOSS 2007


Go to C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12TEMPLATESiteTemplates Copy SPSTOPIC or SPSTOC and rename it as you would like Open your custom template in your favorite XML browser (in my case it would be VS.NET 2005) Collapse NAVBARS, LIST TEMPLATES and DOCUMENT TEMPLATES section (Means don’t do any change in them) In the lists section …

Continue reading

The URL Library Name/File Name is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.


 Scenario: When you try to upload or check in a document in the document Library in newly migrated document library you get this error message. The URL Library Name/File Name is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current …

Continue reading

How to make two instances of your custom feature?


Hi All, Today I will discuss how to make two instances of your custom feature in your site definition file NOTE: This entry is for SharePoint 2007…. Moreover I am assuming that you have some prior knowledge of how to create your custom Site Definitions… Make your custom Feature using XML or Solution generator. Solution …

Continue reading

Difference between Abstract Class and Interface with feature comparisons


What is an Abstract class? An abstract class is a special kind of class that cannot be instantiated. So the question is why we need a class that cannot be instantiated? An abstract class is only to be sub-classed (inherited from). In other words, it only allows other classes to inherit from it but cannot …

Continue reading

Installing and Configuring SharePoint Portal Server 2003


 Installing and Configuring SharePoint Portal Server 2003 Installation Steps Install Windows Server 2003 with SP1 Install SQL Server 2000 with SP4 Install IIS 6.0 with ASP.NET from WINDOWS COMPONENTS in ADD/REMOVE softwares in the CONTROL PANNEL Install Windows SharePoint Portal Server 2003 from Setup file Configuration Steps After first few steps setup will ask for …

Continue reading

Creating Site Definitions for WSS


Hi Guys!!!   Here is a great article by Microsoft on Site Definitions using Windows SharePoint Services!!! Please do read it line by line   Creating Site Definitions for Windows SharePoint Services http://msdn2.microsoft.com/en-us/library/aa505326.aspx

Continue reading

Encapsulation, Inheritance, Polymorphism, Abstraction


Encapsulation is the process of grouping the methods and variables into a class that represents the fields an object stores and the operations the object performs to accomplish specific tasks.   Inheritance is the ability to create a new class based on the existing methods and class variables in order to extend the functionality of the base …

Continue reading

How to add Folders and SubFolders in TreeView


The following code helps you to get folders and subfolders in a treeview   Imports System.IO    Private Sub btnBrowse_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBrowse.Click        Dim FBD As New FolderBrowserDialog        FBD.ShowDialog()        txtSelectedPath.Text = FBD.SelectedPath.ToString        tvFoldernFiles.Nodes.Add(txtSelectedPath.Text.ToString, txtSelectedPath.Text)        GetFilesnFolders(txtSelectedPath.Text.ToString, tvFoldernFiles.Nodes(txtSelectedPath.Text))        Dim a As String() = tvFoldernFiles.TopNode.Text.Split("".ToCharArray)        tvFoldernFiles.TopNode.Text = a(a.Length – 1).ToString.ToUpper     End …

Continue reading

How to control Mdi child forms!!!


  Write this code in the constructor of the parent form!!!     Public Sub New()         InitializeComponent()         Me.eForm = New EmployeeForm()        eForm.MdiParent = Me    End Sub      Private eForm As EmployeeForm          (Declare it at constructor level!!!)     

Continue reading

How to add combo box in ListView


AOA, All…. if you want to add a combo box in listview…. you have to use the bound property of listview item to get the rectangular height of the combo box, here is the code which is tested and is correct…. You need a listview named listview1 with only one column   You will need to add some …

Continue reading

How to get Top Level Sites….


Public Sub GetTopSites() ‘—- This Function Gets the Root Webs —-‘ selectedVs = New Uri(childexplorer.CmbVirtualServers.SelectedItem.ToString) childexplorer.TvSites.Nodes.Clear() SPVirtualServer = SPGlobalAdmin.OpenVirtualServer(selectedVs) For Each Rootweb As SPSite In SPVirtualServer.Sites childexplorer.TvSites.Nodes.Add(Rootweb.RootWeb.Url.ToString) Next End Sub

Continue reading

How to get List Items in ListView


This Code Helps you to get the List items in List View Control…… use both these functions…. first function will populate the List Fields and Second will get the List Field Values……     Public Sub GetListHeaders(ByVal caller As Uri) ‘—This Function Gets All Field Titles and Make them Columns of ListView —‘ spsite = …

Continue reading

How to Search List Items of Windows SharePoint Services


This code searches through WSS(Windows SharePoint Services) for Specific List Item…. by Title…….       For Each SPVirtualServer In SPGlobalAdmin.VirtualServers If (SPVirtualServer.State = SPVirtualServerState.Ready) And (SPVirtualServer.ContentDatabases.Count > 0) And (SPVirtualServer.Description <> "Adminstration") Then For Each spsite In SPVirtualServer.Sites For Each spweb As SPWeb In spsite.AllWebs For Each splist As SPList In spweb.Lists If (splist.Items.Count …

Continue reading

New CV Link Updated on 18th Oct, 2006


Hi All, this is new link to my CV just click and see my updated achievements and what i did in last 4 years   http://www.MegaShare.com/67605

Continue reading

How to Delete SubSite of Selected Site….


Hi… This Code deletes the selected subsite of a site….. check it out very helpful       Dim res As DialogResult Dim strwebname As String = "" Try res = MessageBox.Show("Are you sure you want to delete subsite " + Selrootweb.ToString, "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question) If (res = Windows.Forms.DialogResult.Yes) Then strwebname = spsite.OpenWeb.Name.ToString selweb = …

Continue reading