Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP times out when using a DLL

Status
Not open for further replies.

Don803

Programmer
Dec 10, 2002
10
0
0
US
I inherited an application that was written in VB6.

I have been asked to convert it to ASP.

I am attempting to access some of the DLL's the application uses, and they cause the page to time out.

I write VB to access the same DLL, and it all works fine.

What would make a dll cause timeouts on a web server.

I get no errors. Just a 90 secons delay then the page times out.

If I comment out the login function, the asp runs and returns false for isloggedin and xxxx for username.

ASP:
<%
Option Explicit

Response.ExpiresAbsolute = Now() - 1
response.write(&quot;Test<br />&quot;)

Dim objUser
Set objUser = server.CreateObject(&quot;Data.User&quot;)

dim bStatus
bStatus = objUser.Login (&quot;xxxx&quot;, &quot;yyyy&quot;)
response.write (bStatus)
response.write(&quot;<br />&quot;)

response.write(objUser.IsLoggedIn )
response.write(&quot;<br />&quot;)
response.write(objUser.UserName )
response.write(&quot;<br />&quot;)
%>

VB6
Text1 = Text1 + vbCrLf + &quot;Test&quot;

Dim objUser As Object
Set objUser = New Data.User

objUser.Login &quot;xxxx&quot;, &quot;yyyy&quot;

Text1 = Text1 + vbCrLf + CStr(objUser.IsLoggedIn)
Text1 = Text1 + vbCrLf + objUser.UserName

 
OK, I have more info

The DLL I am calling has events in it, and accesses other dll's that have events in them.

Is this something that would cause the server to time out while attempting to instantiate the object?

Don803
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top