473,385 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Calling out-of-proc COM object from ASP.NET

Anybody here can shed some light on this issue?

Is it at all possible to call out-of-proc COM objects from ASP.NET?

If yes, what configuration settings are required?

I played around many hours already trying to get all security settings done
(as I did not find specific informations I followed the general rules for
getting ASP to work with out-of-proc COM objects).

Any help would be highly appreciated!

I am running on Win2K German and VS.NET 2002 and .NET Framework 1.0; if
migration to .NET 1.1 and VS.NET 2003 solves my problem it would be fine but
I don't want to upgrade yet unless it really solves the problem.

--
Martin Knopp
fecher GmbH
email: Ma**********@fecher.at
web: http://www.fecher.at

-- Alle Dienstleistungen von fecher im Überlick!
http://www.fecher.at/services/ --

-- Gupta Roadmap für SQLBase und Team Developer mit Themen wie Unicode,
Linux und .NET - informieren Sie sich hier:
http://www.fecher.at/GuptaRoadmapJuly2003 --

-- Windows style web application powered by Team Developer, Building Blocks
XP and ASP.NET here: http://www2.fecher.de/islandweb/ --

-- fecher ist Premium Partner der Firma Gupta und bietet Ihnen alle
Produkte und Dienstleistungen in diesem Segment --
Nov 18 '05 #1
3 1945
sorry, I forgot some important info:

Calling the same out-of-proc COM object from a .NET Windows applications
(WinForms) works well.

--
Martin Knopp
fecher GmbH
email: Ma**********@fecher.at
web: http://www.fecher.at

-- Alle Dienstleistungen von fecher im Überlick!
http://www.fecher.at/services/ --

-- Gupta Roadmap für SQLBase und Team Developer mit Themen wie Unicode,
Linux und .NET - informieren Sie sich hier:
http://www.fecher.at/GuptaRoadmapJuly2003 --

-- Windows style web application powered by Team Developer, Building Blocks
XP and ASP.NET here: http://www2.fecher.de/islandweb/ --

-- fecher ist Premium Partner der Firma Gupta und bietet Ihnen alle
Produkte und Dienstleistungen in diesem Segment --

"Martin Knopp" <martin.knopp@_nospam_fecher.at> schrieb im Newsbeitrag
news:60********************@news.chello.at...
Anybody here can shed some light on this issue?

Is it at all possible to call out-of-proc COM objects from ASP.NET?

If yes, what configuration settings are required?

I played around many hours already trying to get all security settings done (as I did not find specific informations I followed the general rules for
getting ASP to work with out-of-proc COM objects).

Any help would be highly appreciated!

I am running on Win2K German and VS.NET 2002 and .NET Framework 1.0; if
migration to .NET 1.1 and VS.NET 2003 solves my problem it would be fine but I don't want to upgrade yet unless it really solves the problem.

--
Martin Knopp
fecher GmbH
email: Ma**********@fecher.at
web: http://www.fecher.at

-- Alle Dienstleistungen von fecher im Überlick!
http://www.fecher.at/services/ --

-- Gupta Roadmap für SQLBase und Team Developer mit Themen wie Unicode,
Linux und .NET - informieren Sie sich hier:
http://www.fecher.at/GuptaRoadmapJuly2003 --

-- Windows style web application powered by Team Developer, Building Blocks XP and ASP.NET here: http://www2.fecher.de/islandweb/ --

-- fecher ist Premium Partner der Firma Gupta und bietet Ihnen alle
Produkte und Dienstleistungen in diesem Segment --

Nov 18 '05 #2
Martin:

I don't know if this is going to help, but I've been working with similar
issues regarding interop and ASP.NET. In my case, I'm using an in-process
COM object, so the analogy may break down at some point.

I think the biggest thing to understand is how the COM object is run. What
I've discovered is that the runtime callable wrapper (RCW) runs in a
separate process from the CLR (it probably uses dllhost.exe, or something).
This other process starts in the same security context as the owner of the
calling process.

In the case of a .NET Windows app, this will be whatever account you're
logged in as. Your account probably has the necessary permissions. In
ASP.NET, by default the ASPNET user owns the process (aspnet_wp.exe), and is
the owner of the non-managed process as well.

Any security settings you need to make will have to take this into account.

Hope this helps.

Dave P.

"Martin Knopp" <martin.knopp@_nospam_fecher.at> wrote in message
news:W3*********************@news.chello.at...
sorry, I forgot some important info:

Calling the same out-of-proc COM object from a .NET Windows applications
(WinForms) works well.

--
Martin Knopp
fecher GmbH
email: Ma**********@fecher.at
web: http://www.fecher.at

-- Alle Dienstleistungen von fecher im Überlick!
http://www.fecher.at/services/ --

-- Gupta Roadmap für SQLBase und Team Developer mit Themen wie Unicode,
Linux und .NET - informieren Sie sich hier:
http://www.fecher.at/GuptaRoadmapJuly2003 --

-- Windows style web application powered by Team Developer, Building Blocks XP and ASP.NET here: http://www2.fecher.de/islandweb/ --

-- fecher ist Premium Partner der Firma Gupta und bietet Ihnen alle
Produkte und Dienstleistungen in diesem Segment --

"Martin Knopp" <martin.knopp@_nospam_fecher.at> schrieb im Newsbeitrag
news:60********************@news.chello.at...
Anybody here can shed some light on this issue?

Is it at all possible to call out-of-proc COM objects from ASP.NET?

If yes, what configuration settings are required?

I played around many hours already trying to get all security settings

done
(as I did not find specific informations I followed the general rules for getting ASP to work with out-of-proc COM objects).

Any help would be highly appreciated!

I am running on Win2K German and VS.NET 2002 and .NET Framework 1.0; if
migration to .NET 1.1 and VS.NET 2003 solves my problem it would be fine

but
I don't want to upgrade yet unless it really solves the problem.

--
Martin Knopp
fecher GmbH
email: Ma**********@fecher.at
web: http://www.fecher.at

-- Alle Dienstleistungen von fecher im Überlick!
http://www.fecher.at/services/ --

-- Gupta Roadmap für SQLBase und Team Developer mit Themen wie Unicode,
Linux und .NET - informieren Sie sich hier:
http://www.fecher.at/GuptaRoadmapJuly2003 --

-- Windows style web application powered by Team Developer, Building

Blocks
XP and ASP.NET here: http://www2.fecher.de/islandweb/ --

-- fecher ist Premium Partner der Firma Gupta und bietet Ihnen alle
Produkte und Dienstleistungen in diesem Segment --


Nov 18 '05 #3
Thanks for the info but it doesn't help me because I am completely aware of
this issues and up to my knowledge I did set all permissions correctly but
it still doesn't work.

Anyway thanks for your answer and I hope someone else can shed some more
light on this topic.

--
Martin Knopp
fecher GmbH
email: Ma**********@fecher.at
web: http://www.fecher.at

-- Alle Dienstleistungen von fecher im Überlick!
http://www.fecher.at/services/ --

-- Gupta Roadmap für SQLBase und Team Developer mit Themen wie Unicode,
Linux und .NET - informieren Sie sich hier:
http://www.fecher.at/GuptaRoadmapJuly2003 --

-- Windows style web application powered by Team Developer, Building Blocks
XP and ASP.NET here: http://www2.fecher.de/islandweb/ --

-- fecher ist Premium Partner der Firma Gupta und bietet Ihnen alle
Produkte und Dienstleistungen in diesem Segment --
"Dave Purrington" <dp****************@yahoo.com> schrieb im Newsbeitrag
news:er**************@TK2MSFTNGP11.phx.gbl...
Martin:

I don't know if this is going to help, but I've been working with similar
issues regarding interop and ASP.NET. In my case, I'm using an in-process
COM object, so the analogy may break down at some point.

I think the biggest thing to understand is how the COM object is run. What I've discovered is that the runtime callable wrapper (RCW) runs in a
separate process from the CLR (it probably uses dllhost.exe, or something). This other process starts in the same security context as the owner of the
calling process.

In the case of a .NET Windows app, this will be whatever account you're
logged in as. Your account probably has the necessary permissions. In
ASP.NET, by default the ASPNET user owns the process (aspnet_wp.exe), and is the owner of the non-managed process as well.

Any security settings you need to make will have to take this into account.
Hope this helps.

Dave P.

"Martin Knopp" <martin.knopp@_nospam_fecher.at> wrote in message
news:W3*********************@news.chello.at...
sorry, I forgot some important info:

Calling the same out-of-proc COM object from a .NET Windows applications
(WinForms) works well.

--
Martin Knopp
fecher GmbH
email: Ma**********@fecher.at
web: http://www.fecher.at

-- Alle Dienstleistungen von fecher im Überlick!
http://www.fecher.at/services/ --

-- Gupta Roadmap für SQLBase und Team Developer mit Themen wie Unicode,
Linux und .NET - informieren Sie sich hier:
http://www.fecher.at/GuptaRoadmapJuly2003 --

-- Windows style web application powered by Team Developer, Building

Blocks
XP and ASP.NET here: http://www2.fecher.de/islandweb/ --

-- fecher ist Premium Partner der Firma Gupta und bietet Ihnen alle
Produkte und Dienstleistungen in diesem Segment --

"Martin Knopp" <martin.knopp@_nospam_fecher.at> schrieb im Newsbeitrag
news:60********************@news.chello.at...
Anybody here can shed some light on this issue?

Is it at all possible to call out-of-proc COM objects from ASP.NET?

If yes, what configuration settings are required?

I played around many hours already trying to get all security settings

done
(as I did not find specific informations I followed the general rules for getting ASP to work with out-of-proc COM objects).

Any help would be highly appreciated!

I am running on Win2K German and VS.NET 2002 and .NET Framework 1.0; if migration to .NET 1.1 and VS.NET 2003 solves my problem it would be fine
but
I don't want to upgrade yet unless it really solves the problem.

--
Martin Knopp
fecher GmbH
email: Ma**********@fecher.at
web: http://www.fecher.at

-- Alle Dienstleistungen von fecher im Überlick!
http://www.fecher.at/services/ --

-- Gupta Roadmap für SQLBase und Team Developer mit Themen wie

Unicode, Linux und .NET - informieren Sie sich hier:
http://www.fecher.at/GuptaRoadmapJuly2003 --

-- Windows style web application powered by Team Developer, Building

Blocks
XP and ASP.NET here: http://www2.fecher.de/islandweb/ --

-- fecher ist Premium Partner der Firma Gupta und bietet Ihnen alle
Produkte und Dienstleistungen in diesem Segment --



Nov 18 '05 #4

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

Similar topics

5
by: Marina | last post by:
Hi, we have an app, that executes jobs submitted from an outside application. It executes them asynchronusly, by creating a delegate to the method that can run the job, and calling BeginInvoke on...
3
by: Daniel Diehl | last post by:
Good morning! Now I'm sitting over 2 hours on a problem calling a method in the logitech SDK DLL. Everything is working fine, but calling one method I fell in a problem. I'm not that old with C#...
1
by: NOSPAM | last post by:
I have a question on calling parent class... What I want to do is: when calling the derived class, it automatically executes the parent's method, is it possible? // main code: Derived d = new...
5
by: benc | last post by:
Hi Can some good soul help on this. I need to call jscript functions from C#. I have hosted a web control and displayed an html page successfully, but just can't find a way to call jscript...
11
by: j23 | last post by:
I have library (static) testlib.cpp: #include <stdarg.h> void xxx(...) { char buf; va_list args; va_start(args, buf); va_end(args); }
5
by: James Radke | last post by:
Hello, I am using VB.NET to call an unmanaged DLL which contains some functions. When I call the DLL from a windows application, it all works fine. When I place the same code in a webform...
9
by: Laurent | last post by:
Hello, I received a C++ DLL and I must include it in my C# programm. The problem is that I don't know how to convert the parameters from C++ to C#, specialy when there are pointers in it....
0
by: Przemys³aw Bana¶ | last post by:
Hello! Can anyone help me with calling Novell function from dll? I think my main problem is in translating C variable types to C# types. Here is the code: using System; using...
1
by: Peter Rilling | last post by:
I have the following nAnt task which does not work. The problem is that I an calling is-assembly(...) passing in as a parameter a dynamically property. This property is not known until runtime. ...
7
by: jomcfall97 | last post by:
hey wondering if anyone can help me with some work im doing im trying to remove a record from a queue by using a method from a class. class QueueNode { private String document ; private String...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.