Techbubbles

Archive of ‘Tips & Solutions’ category

Remote Desktop Sessions from Commandline

You will commonly see the following error message when you try to connect windows 2003 server using RemoteDesktopConnection. “The terminal server has exceeded the maximum of allowed connections ”   You can disconnect the other remotely logged in users if you are a domain Admin user. Most of the users some time not even be […]

Calculating the size of the File in C#

Introduction This code snippet explains how to calculate the size of the file and display in a label control. For example I am taking PDF file to find the size. It Displays the size of the file in Bytes, Kilobytes and Megabytes.   //Calculate size of the PDF file        if (PdfFilePath.EndsWith("pdf"))        {            […]

Working with Configuration files

Introduction Configuration files are central place to configure your web or windows applications. The web.config file is used for configuring the web applications and app.config for windows applications. The ASP.NET Application comes with web.config file with default configuration sections and you can easily manage them at the intialstage of the project development. As soon as […]