error in metatrader api3 with asp.net

 
hello,
i use meta trader api 3 in asp.net application , i made the wrapper for the connection and login function
and where i try to connect i recieve error with this description ("Some Error") ,whenever i can use the same function in C# windows appliction and made connection with it without any errors
, i want to know the resone for this error.
or any one can give me any soluation for this problem.
thanks
bye