473,394 Members | 1,800 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,394 software developers and data experts.

IIS - Cannot create ActiveX component

Hello all,

I'm developing a vb.net 2.0 webservice which accesses a lotus notes
database using lotus domino api. This works fine on my local client if I
select "Use Visual Studio Development server" (on project properties).
But as soon as I select "Use IIS Web Server" I always got error messages.
One says: "Retrieving the COM class factory for component with CLSID
{29131539-2EED-1069-BF5D-00DD011186B7} failed due to the following
error: 8007000e." The CLSID is the one from "Lotus Domino Session" in my
registry.
The other error message when I deploy to an external IIS (6.0) Server
is: "Cannot create ActiveX component".

As my webservice works fine when I use the visual studio development
server, I guess my script is correct. Any ideas why it does not work on
IIS? Any registry settings? My local ASPNET-Machine account has full
access to the directory.

Many thanks in advance!!
Aug 8 '06 #1
16 12689
On Tue, 08 Aug 2006 11:22:31 +0200, Heinz K <He**********@NoSpamPlease.comwrote:

¤ Hello all,
¤
¤ I'm developing a vb.net 2.0 webservice which accesses a lotus notes
¤ database using lotus domino api. This works fine on my local client if I
¤ select "Use Visual Studio Development server" (on project properties).
¤ But as soon as I select "Use IIS Web Server" I always got error messages.
¤ One says: "Retrieving the COM class factory for component with CLSID
¤ {29131539-2EED-1069-BF5D-00DD011186B7} failed due to the following
¤ error: 8007000e." The CLSID is the one from "Lotus Domino Session" in my
¤ registry.
¤ The other error message when I deploy to an external IIS (6.0) Server
¤ is: "Cannot create ActiveX component".
¤
¤ As my webservice works fine when I use the visual studio development
¤ server, I guess my script is correct. Any ideas why it does not work on
¤ IIS? Any registry settings? My local ASPNET-Machine account has full
¤ access to the directory.

Are all of the COM components you are using in your app registered on the web server? Did you
distribute the COM interop assemblies (if any) that were created during development (should be in
your bin folder)?
Paul
~~~~
Microsoft MVP (Visual Basic)
Aug 8 '06 #2
Paul Clement schrieb:
Are all of the COM components you are using in your app registered on the web server? Did you
distribute the COM interop assemblies (if any) that were created during development (should be in
your bin folder)?
Hi Paul,

I think so. On my development client I referenced "domobj.tlb" which is
part of the Lotus Notes Program Directory. When I compile it I get a
"Īnterop.Domino.dll" in my bin-directory. I then copy everything in
app-folder, including the bin-subdirectory, to the external IIS. On
external IIS, Notes is installed so I guess the COM component is
registered correct. Is there a way to check this?

Thanks!
Aug 8 '06 #3
You need to register the COM libraries on the server. The Notes installer
doesn't correctly do this.
The one you're looking for is nlsxbe.dll in the Notes install folder on the
server.

"Heinz K" <He**********@NoSpamPlease.comwrote in message
news:44***********************@newsspool4.arcor-online.net...
Paul Clement schrieb:
>Are all of the COM components you are using in your app registered on the
web server? Did you
distribute the COM interop assemblies (if any) that were created during
development (should be in
your bin folder)?

Hi Paul,

I think so. On my development client I referenced "domobj.tlb" which is
part of the Lotus Notes Program Directory. When I compile it I get a
"Īnterop.Domino.dll" in my bin-directory. I then copy everything in
app-folder, including the bin-subdirectory, to the external IIS. On
external IIS, Notes is installed so I guess the COM component is
registered correct. Is there a way to check this?

Thanks!

Aug 8 '06 #4
Hi Ian,

yes, I already did that before (sorry I forgot to mention. I read it on
an internet page but as this was not successfull I wasn't aware that
this might be a needful information). I called "regsvr32 nlsxbe.dll" and
it says "DllRegisterServer in nlsxbe.dll succeeded, nevertheless the
ActiveX Object could still not be created.
Ian R schrieb:
You need to register the COM libraries on the server. The Notes installer
doesn't correctly do this.
The one you're looking for is nlsxbe.dll in the Notes install folder on the
server.
Aug 9 '06 #5
On Wed, 09 Aug 2006 08:22:57 +0200, Heinz K <He**********@NoSpamPlease.comwrote:

¤ Hi Ian,
¤
¤ yes, I already did that before (sorry I forgot to mention. I read it on
¤ an internet page but as this was not successfull I wasn't aware that
¤ this might be a needful information). I called "regsvr32 nlsxbe.dll" and
¤ it says "DllRegisterServer in nlsxbe.dll succeeded, nevertheless the
¤ ActiveX Object could still not be created.

Did you un register the component before re-registering?

regsvr32 -u nlsxbe.dll
Paul
~~~~
Microsoft MVP (Visual Basic)
Aug 9 '06 #6
Does the account the IIS worker process is running under have access to the
Notes folder on the server ?

"Heinz K" <He**********@NoSpamPlease.comwrote in message
news:44***********************@newsspool4.arcor-online.net...
Hi Ian,

yes, I already did that before (sorry I forgot to mention. I read it on an
internet page but as this was not successfull I wasn't aware that this
might be a needful information). I called "regsvr32 nlsxbe.dll" and it
says "DllRegisterServer in nlsxbe.dll succeeded, nevertheless the ActiveX
Object could still not be created.
Ian R schrieb:
>You need to register the COM libraries on the server. The Notes installer
doesn't correctly do this.
The one you're looking for is nlsxbe.dll in the Notes install folder on
the server.

Aug 10 '06 #7
Hi Paul,

no, I did not do this before, but did it now. It says
"DllUnregisterServer in nlsxbe.dll succeeded". Then I registered it
again with "regsvr32 nlsxbe.dll" and it says "DllRegisterServer in
nlsxbe.dll succeeded.". Nevertheless, when I start my Webservice it
still says "Cannot create ActiveX component" :-(

By the way, I also tried what happens if I just unregister and then
start the webservice and it's the same error message "Cannot create
ActiveX component". Does this help? Many thanks for your patience!

Paul Clement schrieb:
Did you un register the component before re-registering?

regsvr32 -u nlsxbe.dll
Paul
~~~~
Microsoft MVP (Visual Basic)
Aug 10 '06 #8
Hi Ian,

I added now Full Access for local Aspnet account also for Lotus Program
directory, but still no success :-( Many thanks for your patience!

Ian R schrieb:
Does the account the IIS worker process is running under have access to the
Notes folder on the server ?
Aug 10 '06 #9
On Thu, 10 Aug 2006 09:09:41 +0200, Heinz K <He**********@NoSpamPlease.comwrote:
¤ no, I did not do this before, but did it now. It says
¤ "DllUnregisterServer in nlsxbe.dll succeeded". Then I registered it
¤ again with "regsvr32 nlsxbe.dll" and it says "DllRegisterServer in
¤ nlsxbe.dll succeeded.". Nevertheless, when I start my Webservice it
¤ still says "Cannot create ActiveX component" :-(
¤

Did you verify that the CLSID LocalServer32 (or InprocServer32) entry in the Registry points to the
correct location of nlsxbe.dll?
Paul
~~~~
Microsoft MVP (Visual Basic)
Aug 10 '06 #10
Hi Paul,

yes, it's set to the correct filepath.

Paul Clement schrieb:
Did you verify that the CLSID LocalServer32 (or InprocServer32) entry in the Registry points to the
correct location of nlsxbe.dll?
Aug 11 '06 #11
On Fri, 11 Aug 2006 08:06:41 +0200, Heinz K <He**********@NoSpamPlease.comwrote:

¤ Hi Paul,
¤
¤ yes, it's set to the correct filepath.
¤

Do you know whether this component requires any supporting files? I'm beginning to think that
another component is missing or not registered.

The Dependency Walker utility (http://www.dependencywalker.com/) may help identify supporting files.
Paul
~~~~
Microsoft MVP (Visual Basic)
Aug 11 '06 #12
Hi Paul,

many thanks for your patience, but this is now far beyond my
knowledge... I'll contact an external developer to come here and check
it. As soon as it's working I'll post it here.

Nevertheless many thanks for your excellent support!

Paul Clement schrieb:
Do you know whether this component requires any supporting files? I'm beginning to think that
another component is missing or not registered.

The Dependency Walker utility (http://www.dependencywalker.com/) may help identify supporting files.
Aug 14 '06 #13
I'm having a similar problem, my application can initialize a notes
session and access data OK from within visual studio. When I try to
deploy it to IIS I get the Message "Cannot create ActiveX component"
the first time I try to run the application after IIS is restarted. If
I try again I get the message " Retrieving the COM class factory for
component with CLSID {29131539-2EED-1069-BF5D-00DD011186B7} failed due
to the following error: 8007000e."

The notes client is installed on the IIS server, I have registered
nlsxbe.dll and have copied the dll files from the bin directory on my
development machine to the IIS server.

Have you any ideas what else I could check?

Thanks.

Aug 15 '06 #14
Hi all,

the external guy now got the webservice running. He played around with
several settings, but the thing he said which most probably fixed the
problem: He gave 'everyone' read-access to the Lotus Notes Directory. I
only tried with the ASP.net-Account and this was not successfull.

Nevertheless I have a strange feeling about that. For me it seems that
some changes are not processed by IIS immediately but you have to wait
some minutes until they are set up.....

However, now it's working and I'm glad. Hope this helps.
Aug 17 '06 #15
Hi Anita,

try giving 'Everyone' read-access to the Lotus Notes Directory, this
helped in my case.
Aug 17 '06 #16
On Thu, 17 Aug 2006 08:03:10 +0200, Heinz K <He**********@NoSpamPlease.comwrote:

¤ Hi all,
¤
¤ the external guy now got the webservice running. He played around with
¤ several settings, but the thing he said which most probably fixed the
¤ problem: He gave 'everyone' read-access to the Lotus Notes Directory. I
¤ only tried with the ASP.net-Account and this was not successfull.
¤
¤ Nevertheless I have a strange feeling about that. For me it seems that
¤ some changes are not processed by IIS immediately but you have to wait
¤ some minutes until they are set up.....

It very well could be related to the type of authentication your web app is configured for and
whether you are using impersonation.

Based upon your description I had assumed that impersonation was not enabled. I don't know what sort
of authentication you are using (Anonymous, Basic, Integrated NT, etc.).
Paul
~~~~
Microsoft MVP (Visual Basic)
Aug 17 '06 #17

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

Similar topics

3
by: Pat | last post by:
A97, WinXP Hello, I am looking for a way to create a task (in the windows task scheduler) from an Access MDB using VBA. I found this great DLL: ...
3
by: DB | last post by:
Hi Folks, I want to create Activex component. Can we create it using c#.net or do I need to create it using vc++? Thanks in Advanced, Deepak
1
by: Zhou Jingxiong | last post by:
Hi I am using third party COM component which come with an installation program (.exe file included). The program will be register to registry automatically upon installation. There is no...
2
by: W. Broersen | last post by:
I want to use Outlook.Application, but I donot get further. Dim objOLApp As Outlook.Application objOLApp = CreateObject("Outlook.Application") Everytime I'll get the following error: Cannot...
6
by: Steve Richter | last post by:
I am getting error in a vbscript: ActiveX component cant create object: Excel.Application. The vbscript code is: Dim objExcel Set objExcel = CreateObject("Excel.Application") I am pretty...
0
by: Andrew Luke | last post by:
Hi There, I'm trying to get a listing of shares from a server. The server is a linux box running samba and LDAP for directory services (just for background info!) I have some code which I...
1
by: Rocio | last post by:
I have a windows app. written in VB6, now we need to expose some of its classes through a web service. I am only able to expose the classes using late binding becasue that's the way the original...
2
by: Shlomi | last post by:
Hi, I'm developing an application that runs in AspNet on Win2003 server. Every thing runs OK in the development environment, but in the customer site I have a problem running...
0
by: rrotstein | last post by:
I took a simple VB 6.0 .dll project, consisting of a single form, and used Vistual Studio 2005 to upgrade it and create a new solution. I then registered it and created a type library using...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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,...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.