Click here to Skip to main content
15,888,048 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
CSS
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

Utility o_Cls_Utility = new Utility();

This line of code is the problem because Utility is the namespace (
C#
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.
 
Share this answer
 
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900