View Single Post
  #1 (permalink)  
Old December 6th, 2005, 04:58 AM
Deepmala Deepmala is offline
Registered User
 
Join Date: Dec 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Type miss match for Server.CreatObject

Hi,
I am using a VB 6.0 component in ASP page.I get a "Type miss match" error wherever i used Server.CreateObject method. This method i used for creating a class object of a DLL.
 Here is the code i am using.

Dim objLogin
Set objLogin = Server.CreateObject(Cstr(strComponentName) ".clsLogin")

'Call ValidateUser method of login object.
Set objRSValidLogin = objLogin.ValidateUser(strUserID, strPassword)


strComponentName contains component name.
I am surprised that even if get this error for a page,it does not come if i refresh the page.
Please let me know if you have any ideas on the same.Because i am really not able to find any solution for it.
Thankx in advance!

Reply With Quote