Hi,
I am using a VB6 dll in my asp.net application.
When I call a function of that dll, I get the following error:
System.Runtime.InteropServices.COMExceptionType mismatch.
The function I am calling expects a String, and I am passing in a String.
Here is the function call:
format.ProperCase(rs("Fname"))
Please help!
try
format.ProperCase(rs.Fields("Fname").Value.ToString() )
Thank you. Do I have to do this every time now? I am converting a classic ASP page to .NET and I make this function call a lot passing in recordset fields.
0 comments:
Post a Comment