468,532 Members | 1,782 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,532 developers. It's quick & easy.

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 1413
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

26 posts views Thread by Jon Davis | last post: by
2 posts views Thread by =?Utf-8?B?U2VyZ2lvIE1hcnRpbnM=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.