Visual studio

How to fix warning “System.Configuraion.ConfigurationSettings.AppSettings” is obsolete in Visual Studio

Figure 2. Adding reference "System.Configuration"

Usage “Application configuration file” is very good in creating simple applications. It’s very good to store in it values like path, string for database connection or something like this. I use it for a long time. But not so long ago I have noticed that Studio highlights string where configuration file used: Read more»

.Net & C#

C# write file to MyDocuments

Using class System.Environment you can get paths of special Windows folders such as Program Files, My Documents and others. The list of available values is stored in enum object Environment.SpecialFolder (Fugure 1). Read more»

.Net & C#

Fix error “System.InvalidCastException [A]Microsoft.Expression.Utility.Controls.ClearableSearchTextBox cannot be cast to [B]Microsoft.Expression.Utility.Controls.ClearableSearchTextBox”

[A]Microsoft.Expression.Utility.Controls.ClearableSearchTextBox cannot be cast to [B]Microsoft.Expression.Utility.Controls.ClearableSearchTextBox

As a result of experiments with WPF controls I got the error in Visual Studio 2013. I started to look for records in block “using”, but it was all right there. Read more»

.Net & C#

How to create .Ashx solution for SharePoint 2010 in Visual Studio 2010

Figure 1. Add Generic handler via Application page template

Generic handlers have an extension .ASHX. It’s a good solution to render documents or images for user on server-side after user requests, not web page. Generic Handlers solution (.ashx files) are not directly supported by Visual Studio 2010 for SharePoint projects. But there’s a little trick for this. Read more»

.Net & C#

C#. Add html tags and formatting in Gridview cell

When I tried to add html to data for my GridView control, I could only see html code. I could see “<span class=”myhtmlclass”>my text</span> from SQL request</span>. But I wanted to wrap my content with <span> tags. Read more»

.Net & C#

Convert Sandboxed Solution to Farm Solution in SharePoint

Once when I started to work over the project which used about 30 SharePoint Lists and their data should be displayed on some interfaces, I decided to use Sandboxed solution. When I started Visual studio and began to write code, everything was fine. No restarting IIS after deploying, I could easily press F5 and not […] Read more»

SharePoint

Uninstall Visual Studio 2010 automatically

With coming up Visual studio 2012 finally I decided to try it. But first I need to uninstall Visual Studio 2010. When I entered Control Panel -> Programs and Features I saw a lot of products that have been installed with VS 2010. It was hard to think about uninstalling each element manually.  Read more»

Windows

Popular Posts