471,086 Members | 894 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Passing ASP Application object to a com dll in ASP .Net

I have a com dll that takes ASP Application object as one of the parameters and performs processing. We are doing a brute force conversion of our application from asp to asp.net.

We have created a RCW (run time callable wrapper) for the com object and have instantiated it, now when we call this specific method passing the Application object as a parameter, I receive the following compiler error -:

=============================================

Server Error in '/' Application.
No such interface supported
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.InvalidCastException: No such interface supported

Source Error:


Line 20: Application("ObjectName") = new
BusinessObject_RCW.CreateObject
Line 21: ' Initialize it
Line 22:
Application("ObjectName").Initialize(Application)


Stack Trace:


[InvalidCastException: No such interface supported]

Microsoft.VisualBasic.CompilerServices.LateBinding .InternalLateCall(Object
o, Type objType, String name, Object[] args, String[] paramnames,
Boolean[] CopyBack, Boolean IgnoreReturn) +795
Microsoft.VisualBasic.CompilerServices.LateBinding .LateCall(Object o,
Type objType, String name, Object[] args, String[] paramnames, Boolean[]
CopyBack) +23
ASP.Global_asax.Application_OnStart() in
Apr 13 '07 #1
0 924

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Bryan Martin | last post: by
reply views Thread by andreas | last post: by
11 posts views Thread by Arsen Vladimirskiy | last post: by
3 posts views Thread by Simon Harvey | last post: by
6 posts views Thread by Catherine Jones | last post: by
1 post views Thread by Naveed Anwar Kharadi | last post: by
4 posts views Thread by =?Utf-8?B?QmV0aA==?= | last post: by

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.