Search Chirayu Software Solutions Blog

Friday, March 21, 2014

Convert Form to UserControl

1) Inherit UserControl instead in Form.
2) Comment all the errors
3) Remove ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
4) Remove ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();

Wednesday, March 19, 2014

Convert ArrayList to String Array

using System;
using System.Collections;

class Program
    static void Main()
 // Create an ArrayList with 4 strings.
 ArrayList list = new ArrayList();
 // Convert ArrayList to array.
 string[] array = list.ToArray(typeof(string)) as string[];
 // Loop over array.
 foreach (string value in array)



Tuesday, March 18, 2014

How to Host Website in your Personal PC , without Windows Server

Abyss Web Server enables you to host your Web sites on your computer.
It supports secure SSL/TLS connections (HTTPS) as well as a wide range of Web technologies.
It can also run advanced PHP, Perl, Python, ASP, ASP.NET, and Ruby on Rails Web applications which can be backed by databases such as MySQL, SQLite, MS SQL Server, MS Access, or Oracle.

Download from following location

Saturday, March 15, 2014

Repair Corrupt .Net Framework Installation

Download the tool from Microsoft to repair the corrupt .Net Framework Installation.

The link is

Friday, March 14, 2014 site is not opening while other sites are opening

If your site is blocked when other sites are opening perform the following tasks :

1) Run the following command in "command prompt"

NET STOP "dns client"

Now open and it will open.

Wednesday, March 12, 2014

A generic error occurred in GDI+ in Xceed Chart Server Control for ASP.Net

This error comes when there is no folder named 'XceedTemp' in root folder of your project.

To solve the problem :
1) Goto 'Solution Explorer'
2) Select 'Website'
3) Right-Click and select 'New Folder'
4) Name it 'XceedTemp'
5) Run the project and the error will not come again.

Connecting to inbuilt sql server ( express edition ) using Visual Studio

In Visual Studio 2010,
1) Goto View->Server Explorer
2) Right Click on 'Data Connections'
3) Click on Add Connection
4) In Data Source select "Microsoft SQL Server (SqlClient)"
5) In Server name enter "." or ".\Sqlexpress".
6) Select "Windows Authentication"
7) Click on "Test Connection" in bottom of window.
8) Then Select the database name in drop down.
9) Click 'OK'.

ClickOnce - Cannot publish because a project failed to build

To solve the ClickOnce publish issue there is a simple trick.

Start Visual Studio in safemode and then publish the software.
This way the error will not come.

Following is the command line option to start visual studio in safemode.

"C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" /SafeMode

Monday, March 10, 2014

c# a generic error occurred in gdi+

1) Right Click on Visual Studio icon.
2) Click on 'Run as Administrator'
3) Now Run the project.

ClickOnce downloading issues solved

Following commands de-hangs things like clickonce and remote desktop for Windows 2008 Server

netsh interface tcp set global autotuning=disabled