Unexplainable error

Unexplainable error

Post by ehigionn » Fri, 03 Oct 2003 00:23:22


Hello everyone,
I apologize for my English. I need your help and I hope I'm
writing in the right newsgroup.
I'm writing a web application in vb .net that interoperates with
Biztalk. I've tried set the TrackFields of a Biztalk document with
this function:

Private Function setTrackFields(ByVal doc As BizTalkDocument) As
Boolean
Dim dTrackFields As MSCSCoreLib.CDictionary

Try

If doc.TrackFields Is Nothing Then _
doc.TrackFields = New MSCSCoreLib.CDictionary()
dTrackFields = doc.TrackFields

'Header attributes
dTrackFields("i_value1") = "/message/@IDSEQ"
dTrackFields("i_value2") = "/message/@REFID"
dTrackFields("d_value1") = "/message/@TIME"
dTrackFields("s_value1") = "/message/@CDMS"

'Cerca gli elementi presenti nel nodo REFOBJ dell'header
Dim xmlDoc As New MSXML2.DOMDocument()

xmlDoc.async = False
if Not xmlDoc.load(doc.Reference) Then
setTrackFields = False
Exit Function
End If

Dim REFOBJelem As MSXML2.IXMLDOMElement
REFOBJelem =
xmlDoc.selectSingleNode("//Schema/ElementType[@name = 'REFOBJ']")

If REFOBJelem Is Nothing Then
setTrackFields = False
Exit Function
End If
Dim dCustomSearch As New MSCSCoreLib.CSimpleList()
Dim REFOBJchildren As MSXML2.IXMLDOMNodeList
Dim REFOBJchild As IXMLDOMElement
Dim idxChild As Integer

REFOBJchildren = REFOBJelem.selectNodes("./element")
For idxChild = 0 To REFOBJchildren.length - 1
REFOBJchild = REFOBJchildren(idxChild)
dCustomSearch.Add("/message/header/REFOBJ/" &
REFOBJchild.getAttribute("type"))
Next

dTrackFields("x_custom_search") = dCustomSearch
setTrackFields = True

Catch exc As Exception
setTrackFields = False
End Try
End Function

Then I call this function and create the document in this way:

Dim btsConf As New BizTalkConfig()
Dim doc As BizTalkDocument

Dim retval As Integer = 0
Try
doc = btsConf.CreateDocument
setTrackFields(doc)
retval = doc.Create()
[...]

At this point it raises this error: "To be a valid object in the
BizTalk Object Model, this custom component must aggregate the
free-threaded marshaler".

This does not happen if I comment the row:
dTrackFields("x_custom_search") = dCustomSearch

I can't understand well the problem and consequently I can't find a
solution.

Could anybody help me? I hope so, I'm going crazy for this problem.

Cheers, Gionni
 
 
 

1. Unexplainable error

2. Unexplainable error in Mozilla

Why do I get the following error message in Mozilla if I press a key in the
input box?

================================

Error: [Exception... "'Permission denied to get property
XULElement.selectedIndex' when calling method:
[nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame ::
file:///D:/test/index.html :: message :: line 4" data: no]
Source File: file:///D:/test/index.html
Line: 4

================================

<html>
<script type="text/javascript">
function showmessage() {
alert("Why does Mozilla report an error?")
}

</script>

<body>
<form name="myform">
<input type="text" name="myinputbox" value=""
onKeyPress="showmessage()">
</form>
</body>
</html>

================================

What's wrong with my code?
Stefan

3. ODE45 unexplainable error?

4. Unexplainable error http 400

5. Unexplainable errors; a.o. 'the memory can not be "read"'

6. Unexplainable Error "One Usage per IP Socket"

7. Unexplainable error and inability to close Entourage X

8. Help with wierd/unexplainable error

9. Unexplainable error in Mozilla

10. Unexplainable ActiveX Error

11. Unexplainable xsl rendering error in IE

12. unexplainable crash (no error msg)`

13. Unexplainable VB.NET Error (Can't Modify Items Collection)

14. Unexplainable XIRR #NUM! Error

15. Unexplainable Syntax Error