Registration free COM components in the ASP.NET application

P

Peter Schargut

I want to use registration free COM component in the ASP.NET application.
I found the articel about registration free COM in the windows application:
http://msdn.microsoft.com/msdnmag/issues/05/04/RegFreeCOM/default.aspx
So I have wrote the manifest file for my COM component and tested this with
the windows application.
It works realy good.
Now i want to use this manifest with my ASP.NET application.
The native assembly loader looks for a manifest file based on the name of
the executable.
But what ist my executable in the ASP.NET application?
- Is this my DLL?
- Is this the ASP.NET worker?
- Is this the IIS Service?
- How can I use the manifest file for the ASP.NET application?
 
B

Bruce Barker

asp.net does not use the native loader (it uses its own). the actual exe is
the asp.net worker process (aspnet_wp.exe). also you should avoid com
objects (especially sta vb6 objects) in asp.net pages as there performance
costs.

-- bruce (sqlwork.com)
 
S

Steven Cheng[MSFT]

Hi Peter,

Welcome to the ASPNET newsgroup.

As for the Reg-Free COM component deployment model, it requires the
application provide a manifest file together with the application execute
image file. For ASP.NET web application, it is different from other normal
desktop .net application, ASP.NET application reply on the particular
worker process to host their ASP.NET application domain. And this worker
process is different depend on the server platform , for IIS5, it use the
aspnet_wp.exe(under .net framework folder) process while IIS6 use the
w3wp.exe(under inetsrv dir -----e.g. "C:\WINDOWS\system32\inetsrv")
process.
So far I haven't found any document mentioned about using reg-free COM
component for ASP.NET application, also, reg-free COM deployment model is
mainly focus on light-weight client-side application which require flexible
deployment. For ASP.NET applications , they're server-side application
which should not care about this, and we're recommended to use the
traditional COM deployment(registry).

Hope this helps.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
S

Steven Cheng[MSFT]

Thanks for your response Peter,

I'm afraid for ASP.NET this REG-FREE will not work as the article has also
mentioned the limitation of the current reg-free deployment model. ASP.NET
is a particular .net runtime host which reside in a particular unmanaged
process. Anyway, you can try the manifest with those ASP.NET worker
process (aspnet_wp.exe or w3wp.exe) to see whether it works.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top