Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Component Services / July 2003

Tip: Looking for answers? Try searching our database.

interop problem in ASP.NET but not in .NET Windows App

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stefu - 15 Jul 2003 14:54 GMT
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
Stefu - 15 Jul 2003 15:08 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.