Managed UDF Cannot Call WCF service?

P

pdxJaxon

I'm in a bind here:

I have a C# component implementing a UDF.
it works great (shows up in Excel, etc)

This function needs ability to make a call to a WCF Service but is not able
to do so.

It seems to be a permissions issue of some sort.

I can call the WCF From any other component just not from the UDF....


any thoughts ?

here is the err message:
System.InvalidOperationException: Could not find default endpoint element
that references contract 'GetDataServiceProxy.IGetDataService' in the
ServiceModel client configuration section. This might be because no
configuration file was found for your application, or because no endpoint
element matching this contract could be found in the client element.





Here is the calling code which was literally copied from a C# Console tester
that works great.......this bombs on the first line where I attempt to
instantiate the proxy.


GetDataServiceProxy.GetDataServiceClient UI = new
GettDataServiceProxy.GetDataServiceClient();
DtoGetDataRequest request = new DtoGetDataRequest(TableName, ColumnName,
Filters, Aggy);

DtoGetDataResponse response = UI.GetData(request);

return response.Value;

}
 
D

Doug Glancy

I understand very little of this and you say the code runs in the console,
but you're not getting any answers so I have to ask - does the double "t" in
GettDataServiceProxy.GetDataServiceClient();
cause the problem?

Doug
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top