Hi
The following problem puzzles me. I have a COM layer and corresponding
Interop assemblies. The goal is to use the COM objects for a ASP.NET
application. The interop dlls were generated by TlbImp.exe (Framework 1.1).
Importing the reference in VS.NET 2003 works fine, but if I make a method
call a query interface exception appears.
If I do the same thing in a .NET Windows Application, everything works fine.
What could be the reason of this behaviour? Is this a security problem?
(Aspnet_wp.exe is running under an administrator account).
Thanx in advance Steve
The stack trace:
[InvalidCastException: QueryInterface for interface
IDAPIOBJECTSAPILib.IidapiApplication failed.]
IDAPIOBJECTSAPILib.idapiApplicationClass.SilentLogin(enIDAPICountryCode
CountryCode, String ClientType, String LibraryName, String ServerName,
String ServerType, String IDAPIUserName, String IDAPIPassword, String
IDAPIGroup, String ExtendedParameters) +0
WebApplication1.Test.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\WebApplication1\Test.aspx.vb:29
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731