Invalid Arguments error
Hello Everyone i just migrated our web app database from sybase sql anywhere 11  to SQL Server 2008 R2 express and when i tried to compile WCF service which interfaces with SQL server i go multiple errors and most visible among them is the one below.I never saw this issue when our database was sybase.
  
    Error	6	The best overloaded method match 
    for **'GlobeMailServiceLibrary.GMDatabaseService.KioskDataSetTableAdapters.Kiosk.CreateUser
    (string, ref int?)' has some invalid arguments**	
    C:\WebMailDev\Code\GlobeMailServiceLibrary\GMDatabaseService\GMDatabaseService.cs
    46	12	GlobeMailServiceLibrary
Here is the WCF service method from where Stored procedure is called and executed :-  

    private int CreateFolder(int iUser, string strFolder, bool bUserCreate, bool bOutgoing)
        {
            int iFolder;
            DBEncoder.EncodeObject(ref strFolder);
            KioskAdapter.CreateFolder(iUser, strFolder, bUserCreate, bOutgoing, out
                                      iFolder);            
            return iFolder;
        }

Here is the Stored Procedure definition :-

    create procedure dbo.CreateFolder( @v_userID integer,@v_foldername varchar(512),@v_IsUserDefined 
                                       bit,@v_IsOutGoing bit,@v_folderID integer Output) 
        AS
        begin
           --set option MAX_STATEMENT_COUNT = 0;
           --set option MAX_CURSOR_COUNT = 0;
            insert into GCK_Folder( Foldername,IsUserDefined,IsOutGoing,UserID ) values( 
                                    @v_foldername,@v_IsUserDefined,@v_IsOutGoing,@v_userID ) ;
            set @v_folderID = @@IDENTITY
     end
     go

I commented out the Set OPTION MAX_STATEMENT_COUUNT and MAX_CURSON_COUNT because i don't know equivalent command of Sybase in SQL server 2008 R2 express.

Any ideas how to resolve these issues?.

Thanks 
Invalid Arguments error
===

Hello Everyone i just migrated our web app database from sybase sql anywhere 11  to SQL Server 2008 R2 express and when i tried to compile WCF service which interfaces with SQL server i go multiple errors and most visible among them is the one below.I never saw this issue when our database was sybase.
  
    Error	6	The best overloaded method match 
    for **'GlobeMailServiceLibrary.GMDatabaseService.KioskDataSetTableAdapters.Kiosk.CreateUser
    (string, ref int?)' has some invalid arguments**	
    C:\WebMailDev\Code\GlobeMailServiceLibrary\GMDatabaseService\GMDatabaseService.cs
    46	12	GlobeMailServiceLibrary
Here is the WCF service method from where Stored procedure is called and executed :-  

    private int CreateFolder(int iUser, string strFolder, bool bUserCreate, bool bOutgoing)
        {
            int iFolder;
            DBEncoder.EncodeObject(ref strFolder);
            KioskAdapter.CreateFolder(iUser, strFolder, bUserCreate, bOutgoing, out
                                      iFolder);            
            return iFolder;
        }

Here is the Stored Procedure definition :-

    create procedure dbo.CreateFolder( @v_userID integer,@v_foldername varchar(512),@v_IsUserDefined 
                                       bit,@v_IsOutGoing bit,@v_folderID integer Output) 
        AS
        begin
           --set option MAX_STATEMENT_COUNT = 0;
           --set option MAX_CURSOR_COUNT = 0;
            insert into GCK_Folder( Foldername,IsUserDefined,IsOutGoing,UserID ) values( 
                                    @v_foldername,@v_IsUserDefined,@v_IsOutGoing,@v_userID ) ;
            set @v_folderID = @@IDENTITY
     end
     go

I commented out the Set OPTION MAX_STATEMENT_COUUNT and MAX_CURSON_COUNT because i don't know equivalent command of Sybase in SQL server 2008 R2 express.

Any ideas how to resolve these issues?.

Thanks 