Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 136159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:54:16+00:00 2026-05-11T06:54:16+00:00

I know it’s not supported, and I know it’s not even a terribly good

  • 0

I know it’s not supported, and I know it’s not even a terribly good idea. But, I want to have a WCF client inside a SQL Table Valued Function.

I’ve (seemingly) registered the correct assemblies, but when running my client – I get a WCF error:

 Msg 6522, Level 16, State 1, Line 1 System.ServiceModel.CommunicationObjectFaultedException:   The communication object, System.ServiceModel.ChannelFactory`1[MyProxy.IMyService],   cannot be used for communication because it is in the Faulted state. 

A test outside of Sql Server seems to work – and I don’t even see the WCF client trying to make a TCP connection.

Not sure if this is a WCF or SQL CLR issue, as I’m new to both…..

Edit: I understand that the required System.ServiceModel and it’s umpteen assemblies are outside of the vetted Sql CLR list. However,

‘Unsupported libraries can still be called from your managed stored procedures, triggers, user-defined functions, user-defined types, and user-defined aggregates. The unsupported library must first be registered in the SQL Server database, using the CREATE ASSEMBLY statement, before it can be used in your code. Any unsupported library that is registered and run on the server should be reviewed and tested for security and reliability.’

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:54:16+00:00Added an answer on May 11, 2026 at 6:54 am

    This article might help you find out what the true underlying exception is and to see how fatal it is:

    http://jdconley.com/blog/archive/2007/08/22/wcfclientwrapper.aspx (archive.org copy)

    As David correctly says, the SQL CLR has support for a limited subset of .NET assemblies:

    SQL 2005 Supported .NET Framework Libraries
    SQL 2005 CLR Integration Programming Model Restrictions

    SQL 2008 Supported .NET Framework Libraries
    SQL 2008 CLR Integration Programming Model Restrictions

    System.Web.Services is supported if the end point is a WSDL service so that might help you get out of a hole? Or you could always use a web service as a proxy to whatever non-webservice WCF endpoint you’re trying to talk to.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know, I would have thought the answer was obviously no as well, but
I know only what I need but I do not know how to get
I know this question was asked before but I have the following simple code
Know of any good libraries for this? I did some searches and didn't come
I know this might be a no-brainer, but please read on. I also know
I know there is a registry key indicating the install directory, but I don't
I know I must be missing something, but in a while statement how does
I know how to take control of the back button. I have a VideoView
I know how to get the position touched, so now i have a CGPoint
Know of an OCAML/CAML IDE? Especially one that runs on Linux?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.