473,791 Members | 2,985 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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_SERVERFA ULT))
ERROR/31 Aug 2006
12:12:02,593/CalliHelper/EventArgFunctio nCaller/0:BusinessExcep tion:
at PDF_Image_RCW.H elloClass.Creat e2dImage(String str, String filename1,
String filename2)
at MyComp.MS.DataA ccessLayer.LaDa .PrintPage(Cust omer oneMore)
StackTrace: at MyComp.MS.DataA ccessLayer.LaDa .PrintPage(Cust omer
oneMore)
at MyComp.MS.Busin essLayer.LaBu.P rintPage(Custom er oneMore)
at PagePrint.Page_ Load(Object sender, EventArgs e) in
c:\Inetpub\wwwr oot\MSWeb\PageP rint.aspx.cs:li ne 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 ! :-)

Aug 31 '06 #1
1 1909
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/pro....mspx?mfr=true

Brennan

ad***********@g mail.com 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_SERVERFA ULT))
ERROR/31 Aug 2006
12:12:02,593/CalliHelper/EventArgFunctio nCaller/0:BusinessExcep tion:
at PDF_Image_RCW.H elloClass.Creat e2dImage(String str, String filename1,
String filename2)
at MyComp.MS.DataA ccessLayer.LaDa .PrintPage(Cust omer oneMore)
StackTrace: at MyComp.MS.DataA ccessLayer.LaDa .PrintPage(Cust omer
oneMore)
at MyComp.MS.Busin essLayer.LaBu.P rintPage(Custom er oneMore)
at PagePrint.Page_ Load(Object sender, EventArgs e) in
c:\Inetpub\wwwr oot\MSWeb\PageP rint.aspx.cs:li ne 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 ! :-)
Aug 31 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6408
by: Carlos G Benevides | last post by:
I have a ASP.Net web application that has two assemblies that run under com+. Under Windows 2000 the two assemblies are added to com+ automatically when instantiated from the web site. For this to happen we had to change the context in which asp.net runs from machine to SYSTEM by modifying the machine.config file. Under Windows 2003 no matter how asp.net is set to run as either machine or system. I get the following error: ...
3
2661
by: James Proctor | last post by:
Hi there, im brand new to ASP. Ive done loads of VB coding and one of my clients is intrested in a web based application, so im trying to play on and learn it a tad. However im comming across lots of problems. Up until now ive managed to sort most of them, but now im strugling. When i run my application i keep getting this. Server Error in '/WebApplication1' Application....
1
4202
by: Muscha | last post by:
Hello, Every now and then my application throw this exception: "Unable to read data from the transport connection" And when I break into the Visual Studio, the thread where it failed has none of my code and the following is the call stack:
5
2132
by: Sunil Menon | last post by:
Dear All, I am writing an ASP.Net application that needs to call a C++ dll. There are two problems that I am facing... 1. There are two dlls one.dll & two.dll. Using DllImport I call one.dll's function. It works well. But when I call two.dll's function it say "cannot Load DLL two.dll". Two.dll depends on one.dll. Can it be that since asp.net has loaded one.dll, two.dll is failing? 2. After one.dll is loaded other applications cannot call...
1
3409
by: James Proctor | last post by:
Hi there, im brand new to ASP. Ive done loads of VB coding and one of my clients is intrested in a web based application, so im trying to play on and learn it a tad. However im comming across lots of problems. Up until now ive managed to sort most of them, but now im strugling. When i run my application i keep getting this. Server Error in '/WebApplication1' Application...
1
3540
by: TRI_CODER | last post by:
I am trying to solve the following exception. The exception occurs when my ASP.NET code behind code attemtps to access a remore site using SSL. Please note that all certificates are valid and the remote site is trusted. Also, my web site uses a custom HTTPModule implemented in a DLL named Security.dll. Unable to find an entry point named EnumerateSecurityPackagesW in DLL security.dll. Description: An unhandled exception occurred during...
3
7223
by: DJTN | last post by:
I'm getting the following error when I try to compile my setup project in VS 2002. I have re-installed the .net framework 1.1 and it didnt solve the problem. WARNING: Unable to find dependency 'mscorlib' (Signature='B77A5C561934E089' Version='1.0.5000.0') of assembly 'System.dll' WARNING: Unable to find dependency 'mscorlib' (Signature='B77A5C561934E089' Version='1.0.5000.0') of assembly 'System.Windows.Forms.dll' WARNING: Unable to...
1
31161
by: mminto | last post by:
Unable to cast COM object of type 'System.__ComObject' to interface type 'Manage.Statistics.IManageStats'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{4C2875B5-3265-306B-9C74-1BEC98986B1A}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)). The client is calling a method shown below (exposed by a...
3
5550
by: =?Utf-8?B?TGV3aXMgTW90ZW4=?= | last post by:
Hello. We are having a problem here trying to compile C# applications. Only one developer has a problem where they attempt to compile the application and the compiler complains about being out of memory and unable to find a dll - webengine.dll. They have tried rebooting, gettling latest, and a few other things. We can not determine what is at the heart of this problem. They have Visual Studio.Net 2005 with .Net Framework 2.0 SP1. The...
0
9669
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10427
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9995
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9029
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5431
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.