Re: Unable to call COM dll's from application in ASP .NET 2.0 on IIS 6.0
- From: "offwhite@xxxxxxxxx" <offwhite@xxxxxxxxx>
- Date: 31 Aug 2006 01:21:10 -0700
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 ! :-)
.
- References:
- Unable to call COM dll's from application in ASP .NET 2.0 on IIS 6.0
- From: adnaan . khalid
- Unable to call COM dll's from application in ASP .NET 2.0 on IIS 6.0
- Prev by Date: Re: Best practice : storing objects in session-variables ?
- Next by Date: Re: Best practice : storing objects in session-variables ?
- Previous by thread: Unable to call COM dll's from application in ASP .NET 2.0 on IIS 6.0
- Next by thread: How To: Debugging Design-Time Support in Visual Studio 2005
- Index(es):
Relevant Pages
|