Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 16th, 2003, 09:58 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 121
Thanks: 1
Thanked 0 Times in 0 Posts
Default IIS Application is unstable in the compiled state

Hi experts,
I need your help and advice. My intranet WEBClass IIS Application works fine from inside Visual Studio VB IDE, but after I compile this code to create DLL and ASP files it still working but lets say "unstable". It start giving me strange error messages like: “error '800a9c68'
Application-defined or object-defined error
/TestEmployeeInfo/Employee.ASP, line 13 "
 I am running everything on Windows2000 Server the virtual directory Application option is set to the "High Isolated".
I do not know what is going on???
Please give me some advice?
       -Dmitriy
 
Old October 17th, 2003, 03:40 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Those "line 13" errors mean that the ASP page is unable to launch your webclass dll. A common cause is lack of binary compatibility. How many times have you re-compiled the webclass - do you have binary compatibility set-up?
 
Old November 12th, 2003, 10:36 AM
Registered User
 
Join Date: Nov 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear All,

I am also facing the same kind of problem while running my webclass. I am trying to run it on Win 2003 server. I have kept "Binary Compatibility" in the compatibility option while compiling the dll.

I am also getting the same "line 13" error, but when I tried to view the source of the page on which I am getting the error I found that there was some javascript code in there which is expected to come from my webclass. So i guess this means that my application is able to instatiate my webclass but its dying some where in the middle. I m not able to figure out where...

Actually my application has started behaving pretty wearied manner... When i try to hit the link for the first time, i get the error (line 13). When i click on back button of the browser and try to hit the same link again, i get my required page with no error!!! if i repeat this process i get the error for every "odd" trial of mine (1,3,5,7...) and i get my page for every even trial of mine (2,4,6,8...). I do not have any explaination for this.

I tried to post the event logs through my webclass, that also didn't work out for me.

Please come up with a possible solution if u guys have it...

-Vinay

 
Old November 13th, 2003, 02:23 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 121
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Vinay,
In my application the problem was in keeping the Connection and Recordset objects inside the Session object( as a "global" for the entire session). After I've changed the way to connect to the database the problem has disappeared. You have to open and close the connection, create and close the recordset on every page you requested. You can create the tag at the bottom of each page like:"WC@ENDPAGE" and close connection and recordset under this tag inside ProcessTag procedure.
  -Dmitriy
 
Old November 14th, 2003, 05:33 PM
Registered User
 
Join Date: Nov 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Again,
With regards to the same problem mentioned above, I am able to figure out the exact problem. The actual problem here is I loose the values of my "Global Constants" on the change of my HTML templates. I have kept my DSN string for the DB connection in a global constant called "DSN_STRING". Now when i try to navigate from one HTML template to another I found that the DSN_STRING value was gone.

I just have no explaination as to why my constants are loosing their values. I remaind you guys that I am trying to run my WebClass (IIS) application on Win 2003 Server.

If you guys have come across any such kind of situation then please share your thoughts with me and if any one has a solution to this problem then I will be real glad to know it.

-Vinay

 
Old December 9th, 2003, 09:51 PM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes! I am not alone! I have an IIS application that works together with a VB DHTMLApplication. I have noticed the following anomally:

- With Win2K+ OS and IE 5.5+ browser the DHTMLApplication which makes use of VB Global variables has them cleared for an unknown reason. The IIS Application continues to run, and is not reporting any errors.

Here is where it gets weird. The server has two NICs. The DHTMLApplication never crashes when the IIS Application is accessed from the internal LAN / NIC. However, when accessed through the "hot" internet NIC, which is behind a firewall, the above anomally is observed.

I have applied all security updates, I have removed all security updates. I have built a new Win2K server with a barebones IIS install and the problem still occurs. The IIS Application has not been changed in months. Neither has the client side DHTMLApplication.

I am about to lose it. No wonder big corporations go with the Java framework instead of MS. It bugs me to no end when MS ditches a technology that they encouraged developers to use only a few years ago. Grr...

Quote:
quote:Originally posted by vinaysharma77
 Hi Again,
With regards to the same problem mentioned above, I am able to figure out the exact problem. The actual problem here is I loose the values of my "Global Constants" on the change of my HTML templates. I have kept my DSN string for the DB connection in a global constant called "DSN_STRING". Now when i try to navigate from one HTML template to another I found that the DSN_STRING value was gone.

I just have no explaination as to why my constants are loosing their values. I remaind you guys that I am trying to run my WebClass (IIS) application on Win 2003 Server.

If you guys have come across any such kind of situation then please share your thoughts with me and if any one has a solution to this problem then I will be real glad to know it.

-Vinay






Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Application state variable value in Web form smp4774 ASP.NET 2.0 Basics 1 April 10th, 2007 07:55 AM
Unstable VBA in Word Template keytecstaff Word VBA 1 June 5th, 2006 03:47 PM
tradeoff application vs session state vs page Redden ASP.NET 1.x and 2.0 Application Design 1 October 6th, 2005 12:44 AM
FSO - unstable nancy Classic ASP Databases 3 September 10th, 2004 09:52 AM
Using Application state apry BOOK: Beginning ASP.NET 1.0 7 May 31st, 2004 04:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.