What is “Name Decoration” or “Name Mangling”?

Some of my partners, I have worked, have experienced the errors, while calling a native DLL (written in C++) from a managed .NET application using PInvoke; and that inspired me to write this blog. The one of the most common errors is "System.DllNotFoundException" occurred in the <application>. Unable to load the dll and the specified…


How to list all the sub-sites and the site collections within a SharePoint web application using Windows Powershell

Recently, I worked on a partner’s request for enumerating all the sub-sites and the site collection within a SharePoint web application. If you want to do the same thing, may this be useful for you. Windows Powershell has made it so easy to work/administer with several Microsoft products like, SharePoint, SQL Server, Exchange Server etc.,…

11

How to add the Windows Powershell assembly / namespace in .NET

I thought it would be easy to create a PSSnapIn using .NET. But that wasn’t the case initially. When I first created a .NET project for creating a PSSnapIn and wanted to work with “Cmdlet” and “PSSnapIn”; I couldn’t add/find the assembly “System.Management.Automation” in my the project. Without this you can’t create your snap-in. The…

2