When interfacing the WellView calculation engine to ASP.NET, I had to use the interop bridge to ADO so that WellView could share the data connection. When I do this, cannot retrieve "text" fields (e.g. LongVarChar). As usual. It seems very few components can access these fields. A quick solution was not forthcoming.
I stumbled across a good newbie XQuery compiler message: "no context for path expression". It might mean you forgot to prefix a variable with a dollar sign.