Solved

Problem with viewing ActiveX documents

Posted on 1997-09-05
3
230 Views
Last Modified: 2012-06-27
Hi everybody !

I am writing ActiveX Documents with Visual Basic 5.0 and have problem to bring them to the web. I use the Application Setup Wizard to create all the necessary files to be placed on my web server (Microsoft Internet Information Server : IIS). The problem is that only the  orkstation that created the ActiveX Document is able to display it on its Internet Explorer 3.02. Other workstation's browsers (also IE 3.02) ask what they have to do with the .VBD files. They don't recognize them...

Here are the facts :

      1.  In my web server wwwroot folder, I placed the following files (created by the Application Setup Wizard) :
            my_doc.htm
            my_doc.cab
            my_doc.vbd
            msvbvm50.cab
            asycfilt.cab

      2.  From a workstation, I run Internet Explorer 3.02 (same problem with IE 4.0 Preview) and ask the server for the my_doc.htm file. The installation with the my_doc.cab file seems to be correctly done (no error messages).

      3.  The html page then loads the my_doc.vbd file but the Internet Explorer does not recognize the file format and ask what it has to do with it (Open with a application to be defined or save it to disk).

I have read some books, some articles on the net and followed line by line what they all said. But I still can not manage to make it work properly...

I would greatly appreciate any clue or help to solve my problem.

Thanks in advance !
0
Comment
Question by:855838
3 Comments
 
LVL 3

Expert Comment

by:dansari
ID: 1433929
Do those other machines have the VB5 runtime DLL?
0
 
LVL 1

Accepted Solution

by:
estogo earned 50 total points
ID: 1433930
Hello there,

I too faced great frustration over the same issue.

There were a few things I had to do to resolve it...

1) If you haven't set your Version compatibility you must. The default is to "No compatibility", I have no idea why because if you leave it to this your ProgID (My proj.mydoc) and the class ID gets out of synch. A new class ID will be generated everytime When you deploy (try to start it from a remote site) you get the error you mentioned. You must start a new project and carry your files into the new one if this happened and be sure to set "Project Compatibility"

2) Trouble getting needed cab files - You know how when you use the set up wizard you choose Internet Download. Well on the thrid screen in the wizard (Internet Package) you specify a location for the cabs or tell it to download from microsoft's web site. I noticed that you had the VB runtime cab in your internet directory, if you want the user to download the cab you provide then click the second option (alternate location) and leave it blank.

I had the above problem because the machine I used was having trouble hitting microsoft's site and the install doesn't tell you, it just acts like every thing is OK and gives you the above error.

3) A component may have failed at start up. Sometimes errors in the initialization code prevent the document from properly starting.

This should do it for you, if you still are having problems let me know thier are a few (more obscure things you can try)

Erik Stogo
0
 

Author Comment

by:855838
ID: 1433931
Thank you.
1) Version compatibility seems to have no influence on my problem.
2) The alternate location for the Microsoft's .CAB files was correct.
3) There were no initialization error.

The correct answer was : One of my ActiveX Document used the Microsoft Common Dialog Control 5.0 (COMDLG32.OCX). When I removed this control from my document, it worked.

Because my question was, maybe, not precise enough your answers were not usefull to me. Anyway, thank you. You got a B .
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question