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 it's not a good idea to loop SQL queries, so I would
I know you can not set a key value dynamically, but what about the
I know the title isn't informative at all, but I had no idea how
I know the input have the maxlength, but I would like to have minlength
I know we already have many posts about this topic, but I just cannot
This could be a duplicate question, but I have no idea what search terms
I know that Azure Websites are made to be easy, not have role configs
know nothing about php, but I have this script that reads a folder and
I know that there has been one question about this but it is not
Know this might be rather basic, but I been trying to figure out how

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.