Session could not be opened

I've got this error 'System.Runtime.InteropServices.COMException (0x80004005): Session could not be
opened. at AccpacCOMAPI.IAccpacSession.Open(String UserIdentifier, String
Password, String DataBase, DateTime SessionDate, Int32 Flags, String Reserved)' when trying to connect to ACCPAC from web application VB.net/c#. But when i'm trying to connect using vb6, there is no error.

 

What should I do? please help...