Problem with Open NSF file from ASP .NET

Problem with Open NSF file from ASP .NET. I wrote .net code below:

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim s As New Domino.NotesSession

Dim db As Domino.NotesDatabase

s.InitializeUsingNotesUserName(“UserName”, “Password”)

db = s.GetDatabase(“ServerName”, “names.nsf”)

TextBox1.Text = db.Title & vbCrLf & db.type & vbCrLf & db.Size

End Sub

This Code is working on my PC installed VS 2005 (When I want test this application on my pc, it is working). But I send to server from my pc, it is not working. I installed all necessary programs and SDK’s to server. Server is windows 2000. I have error message and this error message below:

Server Error in ‘/’ Application.


Retrieving the COM class factory for component with CLSID {29131539-2EED-1069-BF5D-00DD011186B7} failed due to the following error: 8007000e.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.OutOfMemoryException: Retrieving the COM class factory for component with CLSID {29131539-2EED-1069-BF5D-00DD011186B7} failed due to the following error: 8007000e.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[OutOfMemoryException: Retrieving the COM class factory for component with CLSID {29131539-2EED-1069-BF5D-00DD011186B7} failed due to the following error: 8007000e.]

_Default.Button1_Click(Object sender, EventArgs e) +14

System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105

System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7

System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11

System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

Subject: RE: Problem with Open NSF file from ASP .NET

A couple things. There may be the add-on dll’s that you installed on your pc, that you did not install on your server. I can’t recall what those dll’s are. But I am sure you probably set those up on your pc if this is working.

The other thing to think about is the security piece, the logging into notes, is that user id and password exist on that server? There are two different log in options using those tools with .net, and I think it is different for on the server. Check out www.msdomino.net for more information on all of this.

Subject: RE: Problem with Open NSF file from ASP .NET

Dear Greg

Thank you for your attention. I solved this problem. I wrote below this :

  1. Register nlsxbe.dll on server’s domino directory, (I think Client’ s notes version and Server’ s Domino version must be same)

  2. Set virtual directory as “Domino” name in IIS as server’s domino directory,

  3. You must see in web site’ s virtual directory “Domino” named in IIS on Server.

  4. Restart server

It is worked.

Thanks.