wcf

Wcf-MSMQ: letter is being delivered, but service is not called?

I have a MSMQ application using WCF's netmsmqbinding. In the default configuration, and with active directory integration enabled, everything works fine. However, when I try to turn off security (using the netmsmqbinding's binding configuration), it seems as if the messages on the queue are received, i.e. messages are being posted, beca...

WCF test tool that supports Duplex scenarios?

Does anyone know of a tool that supports callbacks? ...

WCF obtaining certificate encoded value

I am using a certificate with my WCF service so have an encoded value in the web.Config <identity> <certificate encodedValue="large string!!!!!!!" /> </identity> The value was generated by Visual studio in development using my test certificate. Now I am deploying I want to get the encoded value for the certificate maintained by the...

DNS resolution for WCF service discovery

I have a WCF service that is hosted in IIS on a public web server, and needs to be discoverable. Thing is, when I browse http://myserver.mydomain/myfolder/myService.svc, the page that is displayed shows the actual machine name instead of the URL I provided, e.g. http://myRealServer.myRealDomain/myFolder/myService.svc?wsdl as the link to...

WCF Cant find server certificate using FindBYSubjectName

I have a certificate installed in my test environment. The subject of this is delimited by commas e.g. S80, My Company Name, Country The code below worked when the subject name was just S80 but now there are more details in the subject it no longer works. <serviceCredentials> <serviceCertificate findValue="S80, My Company N...

Writing Custom Attribute in C# like ASP.Net MVC Authorize attribute

Hi, I like ASP.Net MVC Authorize attribute, I can extend it and build my own logic and decorate my controller with it. BUT, In my architecture, I have one common service layer(C# Class Library). End user can access my application via ASP.Net MVC web site or via my exposed REST WCF Webservice layer. My asp.net MVC application and REST ...

WCF Server Certificates Keyset not found, can't find private key

I have a server certificate working with my WCF service. However when I run the webservice I seem to have a permissions problem. [ArgumentException: The certificate 'CN=S80' must have a private key that is capable of key exchange. The process must have access rights for the private key.] Any idea? ...

WCF service reference namespace differs from original

I'm having a problem regarding namespaces used by my service references. I have a number of WCF services, say with the namespace MyCompany.Services.MyProduct (the actual namespaces are longer). As part of the product, I'm also providing a sample C# .NET website. This web application uses the namespace MyCompany.MyProduct. During initial...

Can I not load a given mapped property (nhibernate)?

I am using WCF for my project and i need to transit some entities through it. The thing is that some of them have lists inside, with an enormeous ammount of items, and so forth, i cannot pass it through WCF, given its size. How can I, through code, not load a given property from the database, but load all the rest? ...

RenderControl from within WCF service fails; ASMX works.

Good afternoon! I've spent half my day trying to figure this out; hopefully one of you can help. I have written a limited CMS and am working on allowing content from the CMS to be displayed as interstitial pages within external sites. To do this, I wanted to create a WCF service that would render the appropriate content and return it as...

How to avoid CommunicationObjectFaultedException when hosting a WCF service in IIS?

After creating a WCF Web Service for IIS and sucessfully testing it in my ASP.NET development server, when I deploy the service to another machine's IIS it always fire the following exception on consumption: Test method PoolingServiceTest.ProgramTest.MainTaskTest threw exception: System.ServiceModel.CommunicationObjectFaultedExcepti...

Ambiguous references with linked .CS File and WCF Service

For brevity purposes, this post relates to ambiguous references in a Silverlight Page.XAML.CS file, whose project contains a service reference to a WCF service and a MyClass.cs file added as a 'link'. The Solution contains the Silverlight Project and a Web Project that contains a WCF service and a MyClass.cs file (along with the aspx fil...

How to sign an Amazon web service request in .NET with SOAP and without WSE

The Amazon Product Advertising API (formerly Amazon Associates Web Service or Amazon AWS) has implemented a new rule which is by August 15th 2009 all web service requests to them must be signed. They have provided sample code on their site showing how to do this in C# using both REST and SOAP. The implementation that I’m using is SOAP. Y...

What is the difference between WCF Service application and WCF Service library?

Hi, I am developing WCF web service and I used WCF Service application to do that.Is that creating "WCF Service application" fulfill this requirement. and above all what are the advantage of creating WCF Service Library over WCF Service application? ...

Where to trap failed connection on WCF calling class?

I'm trying to write a class that encapsulates WCF calls (the client is Silverlight, if it matters). It all works swimmingly, but I'm not sure how to trap a connection failure, as if the server won't respond. It would appear that bit of work happens somewhere in the resulting code from ChannelFactory, but I'm not sure. General code review...

accessing WCF service through URL

I have a WCF service ( Let's say WCFService1 ) is deployed on two remote machines. Since the same service is deployed on two different machines they have common interface and common methods exposed. WCFService1 is deployed on Machine1 and Machine2. To consume WCF service from client machine, I have created a client app: I have added ...

WCF image upload service

Hey everyone. Could any one possibly direct me to a example of how to do a WCF image upload service. I have tried to change my config increasing the size but its still not helping. If i had a full service example it would really help. Thanks ...

Error in Sql Server 2005 Express Edition while consuming a WCF web service .

My SQl Server data base is located in another machine and WCF service and client is on another machine. While I consume this service ,which in turn access the Sql server to fetch data and return to the client, it gives following error : Login failed for user ''. The user is not associated with a trusted SQL Server connection. This err...

WCF Duplex Communications in a clustered environment

So I was looking at the sample examples people have created for Duplex Communications namely when hosted by IIS and connected to via Silverlight. There are plenty of examples of this out there (this MSDN article is great), but all use the same paradigm: User A connects to server A, it puts him in an in-memory list to receive future upd...

Base64 encoding for images

I am building a service using WCF and I need to send over images. I looked around on how this is done and found that Base64 encoding is often used to send binary data as text. Is this a good practice to send over images (~500 kb)? ...