Helo, i am trying to open a connection for inserting some nonxml documents in tamino database.
i receive the following error
“System.Net.WebException: The remote server returned an error: (401) Unauthorized.
at SoftwareAG.Tamino.Api.Common.Command.Execute()
at SoftwareAG.Tamino.Api.TaminoConnection.Diagnose(String what)
at SoftwareAG.Tamino.Api.TaminoConnection.GetDbVersion()
at SoftwareAG.Tamino.Api.TaminoConnection.CheckDbVersion()
at SoftwareAG.Tamino.Api.TaminoConnection…ctor(String connectionUri, TaminoUserInfo userInfo, TaminoPreference preference)
at SoftwareAG.Tamino.Api.TaminoConnection…ctor(String connectionUri)
at ComponenteResurse.BindDB.InsertNonXMLTamino(String DBurl, String collection, String docType, String docNameTamino, String fileName, String fileType) in C:\Inetpub\wwwroot\ComponenteResurse\BindDB.vb:line 610
at Licitatii_RONS.DocumenteLicitatie.idom_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\Licitatii_RONS\DocumenteLicitatie.aspx.vb:line 856”
and i don’t know what is cauzing it.
my procedure for inserting nonxml documents is:
Public Sub InsertNonXMLTamino(ByVal DBurl As String, ByVal collection As String, ByVal docType As String, _
ByVal docNameTamino As String, ByVal fileName As String, ByVal fileType As String)
Dim connection As TaminoConnection = New TaminoConnection(DBurl)
connection.Open(TaminoConnectionMode.AutoCommit)
Dim command As TaminoCommand = connection.CreateCommand(collection)
Dim doc As TaminoDocument = New TaminoDocument(docNameTamino, docType, New FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read), fileType)
Dim response As TaminoResponse = command.Insert(doc)
connection.Close()
End Sub
Please help
Thank you. I am using Tamino 4.4.1