Re: Unable to call COM dll's from application in ASP .NET 2.0 on IIS 6.0



Try isolating this site which is using the COM dll's to a separate
application pool.

Then figure out what level of trust you need to set for that
application pool. Look up FullTrust and Code Access Security. My
guess is that you are having some partial trust issues due to the
unmanaged code because Windows Server 2003 is more strict about those
details than W2K.

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a55fb31b-5b42-476d-9cae-050ab3fae307.mspx?mfr=true

Brennan

adnaan.khalid@xxxxxxxxx wrote:
Hi,
I have an web site application developed in ASP .NET 2.0. This
application consumes a COM dll (which needs to be registered in the
server- regsvr32 utility) for a functionality. The whole setup works
fine in the test system running Windows 2000 and IIS 5.0 with .NET
Framework 2.0 (Obvious enuf!!! )

Although the whole setup fails in the production system which is
running Windows 2003 server with IIS 6.0.

On the ASPX page where the COM dll methods are invoked, this is the
error i get thru log4Net:

ERROR/31 Aug 2006 12:12:02,578/LaBu/PagePrint/0:The server threw an
exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
ERROR/31 Aug 2006
12:12:02,593/CalliHelper/EventArgFunctionCaller/0:BusinessException:
at PDF_Image_RCW.HelloClass.Create2dImage(String str, String filename1,
String filename2)
at MyComp.MS.DataAccessLayer.LaDa.PrintPage(Customer oneMore)
StackTrace: at MyComp.MS.DataAccessLayer.LaDa.PrintPage(Customer
oneMore)
at MyComp.MS.BusinessLayer.LaBu.PrintPage(Customer oneMore)
at PagePrint.Page_Load(Object sender, EventArgs e) in
c:\Inetpub\wwwroot\MSWeb\PagePrint.aspx.cs:line 48

It seems like IIS 6.0 isnt allowing the call to the COM dll complete.
Any comments wud be of great help,
& any help would be highly appreciated ! :-)

.



Relevant Pages

  • Re: unable to run asp.net on 2000 server
    ... use this version of the .NET Framework. ... Viewing the Script Map for an ASP.NET Application ... Open the IIS management console, expand the local computer by clicking ... as long as they share the same pool designation. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Unable to create ASP.NET Project... VS Cant communicate with FrontPage
    ... use this version of the .NET Framework. ... Viewing the Script Map for an ASP.NET Application ... Open the IIS management console, expand the local computer by clicking ... as long as they share the same pool designation. ...
    (microsoft.public.vsnet.general)
  • Re: Unable to create ASP.NET Project... VS Cant communicate with FrontPage
    ... > use this version of the .NET Framework. ... it is often useful to view the script map for an ASP.NET ... Open the IIS management console, ... as long as they share the same pool designation. ...
    (microsoft.public.vsnet.general)
  • RE: IIS/Mail crashes
    ... This issue can be caused by incorrect application pool settings. ... Start IIS manager, expand Application Pools -> ExchangeApplicationPool, ... Please help me gather IIS log and Metabase to me for further analysis, ... Microsoft Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • RE: IIS 6 features
    ... based config and the "change it on the fly" features ... ... Subject: IIS 6 features ... So, if I understand correctly, the misbehaving application pool is placed ... >> using the Microsoft Passport service. ...
    (Focus-Microsoft)