why saying $exception	{"Incorrect syntax near ','."}	System.Exception {System.Data.SqlClient.SqlException} :     

 Incorrect syntax near ',' exception arises when application is set to 
     run. 
     in sql server management studio qury is running fine. but it gives an 
     exception while application is set to run.
     
     here is my code:

  

      USE [PBSM]
    GO
    /****** Object:  StoredProcedure [dbo].[month_wise_pending_details]    Script Date: 09-05-2017 11:26:10 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER procedure [dbo].[month_wise_pending_details]
    @month int = 4, @year int =2017
    
    as
    begin
    set nocount on;
    SELECT P.PbsName
    	 ,pc.CauseName
    	,dbo.F_CONVERT_ENG_NUMBER_TO_BNG(PCI.DayFrom)+N'/'+dbo.F_CONVERT_ENG_NUMBER_TO_BNG(PCI.MonthFrom)+N'/'+dbo.F_CONVERT_ENG_NUMBER_TO_BNG(PCI.YearFrom)+N'থেকে'+dbo.F_CONVERT_ENG_NUMBER_TO_BNG(PCI.DayTo)+N'/'+dbo.F_CONVERT_ENG_NUMBER_TO_BNG(PCI.MonthTo)+N'/'+dbo.F_CONVERT_ENG_NUMBER_TO_BNG(PCI.YearTo) 'Date'
    	,PCI.Remarks 
    FROM Pbs P
    	INNER JOIN ProbableConnectionInfo PCI ON PCI.PbsId=P.PbsId
    	inner join ConnectionPendingCause cpc on pci.Id=cpc.ProbableConnectionId
    	inner join PendingCause pc on cpc.PendingCauseId=pc.Id
    WHERE pci.Month=@month and Year=@year and cpc.PendingNumber>0
    
    select dbo.F_CONVERT_ENG_NUMBER_TO_BNG(sum(ic.Pending)) 'PendingApplication'
    	, dbo.F_CONVERT_ENG_NUMBER_TO_BNG(sum(ic.loadNeed)) 'AppliedLoadAmount'
    from IndustrialConnection ic
    	inner join ProbableConnectionInfo pci on ic.ProbableConnectionId=pci.Id
    where pci.Month=@month and year=@year
    group by pci.PbsId
    set nocount off;
    end



   and here where the problem is showing:

  

      namespace PBSM.DBGateway
    {
        public class SPService
        {
            private static string connectionString = ConfigurationManager.ConnectionStrings["Connection"].ConnectionString;
            private static SqlConnection sqlConnection = new SqlConnection(connectionString);
    
            public static DataTable GetDataByStoredProcedure(string spName)
            {
                sqlConnection.Open();
                var sqlCommand = new SqlCommand(spName, sqlConnection);
                var dataReader = sqlCommand.ExecuteReader();
                var dt = new DataTable("Command");
                dt.Load(dataReader);
                sqlConnection.Close();
                return dt;
            }
        }
    }
    
             