473,395 Members | 1,595 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

AspCompat="true" on a Windows 2003 may cause an error

When using VB6 COM objects on a ASP.NET page, and having the @Page directive
with the AspCompat attribute set to true, it causes an error like "Method
'~' of object '~' failed" or "Object reference not set to an instance of an
object".

The scenario is:
- Windows 2003 server
- IIS6
- Framework 1.1

Microsoft recommends to set the AspCompat to true when using VB6 objects on
a ASP.NET page because of performance issues, but the error og above is
unaccepteable. I don't know if the hot fix at
http://support.microsoft.com/kb/827164 will lose the problem, but the fix is
not available on the net. Very interesting...

Do you have a work-around?
Can I just set AspCompat to false on a Windows 2003 server?

/Angelo
Nov 19 '05 #1
3 1561
The error in question was quite common in the old ASP world and generally
corresponded to either

a) a missing COM component
b) a changed method signature

Here is what I would do:

1. Make sure your COM component is registered on the server
2. Check all dependencies, on your machine, and make sure all of the
dependent DLLs are on the Windows Server 2003 machine
3. If the above two are fine, check the versions of the DLLs that are
installed on each machine. If there are different versions, you will want to
poke at the DLL and ensure the method calls have not changed.
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Angelo Brusati" wrote:
When using VB6 COM objects on a ASP.NET page, and having the @Page directive
with the AspCompat attribute set to true, it causes an error like "Method
'~' of object '~' failed" or "Object reference not set to an instance of an
object".

The scenario is:
- Windows 2003 server
- IIS6
- Framework 1.1

Microsoft recommends to set the AspCompat to true when using VB6 objects on
a ASP.NET page because of performance issues, but the error og above is
unaccepteable. I don't know if the hot fix at
http://support.microsoft.com/kb/827164 will lose the problem, but the fix is
not available on the net. Very interesting...

Do you have a work-around?
Can I just set AspCompat to false on a Windows 2003 server?

/Angelo

Nov 19 '05 #2
Hi Gregory

Thank you for your answer.
I'd be very happy if it was so easy!
Unfortunately it's not. The web application runs perfectly on a Windows 2000
server.
Moreover, different test aspx pages proves that the VB6 objects are working
properly. If I change the mentioned attribute "AspCompat" to false (on the
aspx pages which use the VB6 object), the application works just fine.

I'm installing the hotfix sent from Microsoft Support, the 827164.
Anyway, the article describe a similar problem - not exactly mine.

Some other suggestions?

Thanks in advance

/Angelo
"Cowboy (Gregory A. Beamer) - MVP" <No************@comcast.netNoSpamM> wrote
in message news:E1**********************************@microsof t.com...
The error in question was quite common in the old ASP world and generally
corresponded to either

a) a missing COM component
b) a changed method signature

Here is what I would do:

1. Make sure your COM component is registered on the server
2. Check all dependencies, on your machine, and make sure all of the
dependent DLLs are on the Windows Server 2003 machine
3. If the above two are fine, check the versions of the DLLs that are
installed on each machine. If there are different versions, you will want to poke at the DLL and ensure the method calls have not changed.
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Angelo Brusati" wrote:
When using VB6 COM objects on a ASP.NET page, and having the @Page directive with the AspCompat attribute set to true, it causes an error like "Method '~' of object '~' failed" or "Object reference not set to an instance of an object".

The scenario is:
- Windows 2003 server
- IIS6
- Framework 1.1

Microsoft recommends to set the AspCompat to true when using VB6 objects on a ASP.NET page because of performance issues, but the error og above is
unaccepteable. I don't know if the hot fix at
http://support.microsoft.com/kb/827164 will lose the problem, but the fix is not available on the net. Very interesting...

Do you have a work-around?
Can I just set AspCompat to false on a Windows 2003 server?

/Angelo

Nov 19 '05 #3
Unfortunately the hotfix didn't solve the problem.
As I can see there's no other solution than create a support case at
Microsoft, unless some of you have already experienced the same...

/Angelo

"Angelo Brusati" <an****@intrasuite.net> wrote in message
news:u7**************@TK2MSFTNGP15.phx.gbl...
Hi Gregory

Thank you for your answer.
I'd be very happy if it was so easy!
Unfortunately it's not. The web application runs perfectly on a Windows 2000 server.
Moreover, different test aspx pages proves that the VB6 objects are working properly. If I change the mentioned attribute "AspCompat" to false (on the aspx pages which use the VB6 object), the application works just fine.

I'm installing the hotfix sent from Microsoft Support, the 827164.
Anyway, the article describe a similar problem - not exactly mine.

Some other suggestions?

Thanks in advance

/Angelo
"Cowboy (Gregory A. Beamer) - MVP" <No************@comcast.netNoSpamM> wrote in message news:E1**********************************@microsof t.com...
The error in question was quite common in the old ASP world and generally
corresponded to either

a) a missing COM component
b) a changed method signature

Here is what I would do:

1. Make sure your COM component is registered on the server
2. Check all dependencies, on your machine, and make sure all of the
dependent DLLs are on the Windows Server 2003 machine
3. If the above two are fine, check the versions of the DLLs that are
installed on each machine. If there are different versions, you will
want to
poke at the DLL and ensure the method calls have not changed.
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Angelo Brusati" wrote:
When using VB6 COM objects on a ASP.NET page, and having the @Page
directive with the AspCompat attribute set to true, it causes an error like "Method '~' of object '~' failed" or "Object reference not set to an instance of an
object".

The scenario is:
- Windows 2003 server
- IIS6
- Framework 1.1

Microsoft recommends to set the AspCompat to true when using VB6
objects
on a ASP.NET page because of performance issues, but the error og above
is unaccepteable. I don't know if the hot fix at
http://support.microsoft.com/kb/827164 will lose the problem, but the

fix is not available on the net. Very interesting...

Do you have a work-around?
Can I just set AspCompat to false on a Windows 2003 server?

/Angelo


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Andy Norman | last post by:
I have a strange problem. When I try to call the input property of the MSXML processor object from VBScript in an ASPX page I get the error "Member not found". The same code (with a few "set"...
0
by: Sia Jai Sung | last post by:
Hi, I need to write a ASPX file that will post some request to other party (web service written in java), here is my code, <%@ Page aspcompat=true %> <% Dim xml, url
1
by: Neeraj | last post by:
I am using AspCompat="true" in the page directive from where I am calling Interop written in vb 6.0 which is deployed on COM+ Server. On some pages I am getting the error : Exception Type:...
0
by: Kit Truong | last post by:
The page directive: <% @Page aspcompat="true" %> is causing my web pages to hang. (Page takes a very long time to load, and finally loads with a blank page) Everything was working yesterday...
26
by: Jon Davis | last post by:
OK, why is Canvas not IDisposable, and how do I get rid of all the Windows handles? I'm doing a performance test of looping through a dynamic XAML-to-JPEG conversion. It gets to about 500...
2
by: =?Utf-8?B?U2VyZ2lvIE1hcnRpbnM=?= | last post by:
Hi. I have an ActiveX DLL, developed in Visual Basic 6.0 and I need to use that DLL inside an ASP.NET application, developed in Visual Basic .Net 2003. My problem is that in my machine I get the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.