Click here to Skip to main content
14,331,823 members
Rate this:
Please Sign up or sign in to vote.
See more:
using NBFC_App.AppCode.Queries;
using NBFC_App.AppCode.Utility;
using NBFC_App.AppCode.Sessions;
using System.Data;
using NBFC_App.AppCode.DbSubsystem;
using System.Text;

namespace NBFC_App.AppCode.Queries
{
    public class Usergroup_Qry
    {
        string gen_sql, MySql = "";
        int returnCount = 0;
        string where_clouse;
        string retunstring = "";
        StringBuilder sb;

        Utility o_Cls_Utility = new Utility();
        string t_sql, s_dsnstr;
        DataSet ds;



Can any1 tell the solution for above error?
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Utility o_Cls_Utility = new Utility();

This line of code is the problem because Utility is the namespace (
using NBFC_App.AppCode.Utility;
) and you have used it as a type and initializing it, which is not allowed.

There must be a particular type from Utility namespace, which you should have used instead.
   
Comments
Member 9410081 12-Jul-13 2:39am
   
If i remove using ... then also error remains.
Mohammed Hameed 12-Jul-13 2:41am
   
Remove this line also Utility o_Cls_Utility = new Utility();
if you dont want to use it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100