Error in DXL Import through vb.net

HI,

I am trying to create an Agent from vb .net using domino com object.

Here is my code, I got exception error when the statement

'importer.import(stream,db). will anyone help me out?

    Dim session As New Domino.NotesSession



    Dim thisdb As NotesDatabase

    Dim stream As NotesStream

    Dim importer As NotesDXLImporter



    session.Initialize()

    session.GetDatabase("", "kmanohar.nsf", True)



    stream = session.CreateStream()

    Dim fileName As String = "c:\\dxl\\mur_test_new.xml"



    If Not stream.Open(fileName) Then

        MessageBox.Show("File could not Open", "File Opening")

        Exit Sub

    End If



    If stream.Bytes = 0 Then

        MsgBox("File did not exist or was empty" & fileName)

        Exit Sub

    End If



    importer = session.CreateDXLImporter

    importer.ReplaceDBProperties = False

    importer.ReplicaRequiredForReplaceOrUpdate = False

    importer.ACLImportOption = Domino.DXLIMPORTOPTION.DXLIMPORTOPTION_IGNORE

    importer.DesignImportOption = Domino.DXLIMPORTOPTION.DXLIMPORTOPTION_CREATE

    importer.UnknownTokenLogOption = DXLLOGOPTION.DXLLOGOPTION_IGNORE



    Try

        importer.Import(stream, thisdb)

    Catch ex As Exception

        MsgBox(ex.ToString, MsgBoxStyle.ApplicationModal, "Import Agent")

    End Try

    stream.Close()

Subject: Error in DXL Import through vb.net

I have the same error on 6.5.4. It does not appear when I am using 7.0

A first chance exception of type ‘System.Runtime.InteropServices.COMException’ occurred in Microsoft.VisualBasic.dll

System.Runtime.InteropServices.COMException (0x0000174D): The ID File is in use elsewhere and cannot be modified

at Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateCall(Object o, Type objType, String name, Object args, String paramnames, Boolean CopyBack, Boolean IgnoreReturn)

at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object Arguments, String ArgumentNames, Type TypeArguments, Boolean CopyBack, Boolean IgnoreReturn)

at dxlview.modMain.dxlUIimport(String filename) in c:\My Documents\Visual Studio 2005\Projects\DXLviewer\DXLviewer\Module1.vb:line 27

Does anyone have a resolution to this problem ( on 6.5.4. ofcourse)