wcf

WCF, self signed Certificates for Encryption

I want to create WCF services using aspnet membership to authorize the user. However, if I just need the certificate for encryption purposes only, does it matter if it is a self signed certificate or do you need to buy a certificate from a vendor? ...

C# File Location Connundrum

I have an xml file in a WCF application that describes dependencies. It is loaded when the service facade constructor runs and works great when testing the app alone. The way our separate web testing application is setup is an endpoint in a different (mvc) project - So the relative paths are different to the xml file that we need to load...

How to get BinarySecurityToken into the wcf soap request

I need to sign my soap request to a 3rd party. The provided an example what the call should look like. And I am trying, rather unsuccessfully to make this call with wcf. I need to make a wcf soap call where the header contains BinarySecurityToken, Signature, and SecurityTokenReference. Here is the example they sent me (with some of t...

Silverlight WCF Service to Service calls

Question: Are there known issues making calls to a service that calls another service from Silverlight? Scenario: I have the following 3 projects: SilverlightClient - Silverlight project with a Button SilverlightClient.Web - A web application that hosts the SilverlightClient.xap. BackEnd - A different web application that hosts the ...

WCF Deployment to IIS 6 Results in 403 Permission Error

I've never deployed a WCF service to IIS 6 before. I've got a service that I'm deploying to IIS 6 by using the default configuration as part of the WCF project. I since simplified the configuration thinking that might have been the issue. Here is the error I'm getting if I browse to the service in a browser: HTTP Error 403.1 - Forbid...

How to implement a WCF NetPeerTcpBinding PeerResolver

I can't use Peer Name Resolution Protocol on our network because our server farm's routers won't support IPv6. So, I'm attempting to implement my own PeerResolver using a database. The Register method inserts a row with the meshId, endpointUri, and list of IP addresses in the database along with a created date, and returns a newly cre...

HTTP 'System.InvalidOperationException' exception

Help. I get the exception below when I try to run my service. I tried running the CMD LINE fix netsh http add iplisten ipaddress=127.0.0.1:8439 to fix the problem. Problem is I get an IP address successfully added message but I still get the error below when I run my application. Any idea how I can deal with this please? An unhandled...

The breakpoint will not currently be hit. No symbols have been loaded for this document.

Ok, what i have: Visual Studio 2010 RC, W7 x64, started a new project type of Silverlight application. Hosting the Silverlight application in a ASP.NET Web Application Project. Silverlight Version 3.0. Added a LinqToSQL Class, a WCF Service, a Winform Tester Application (Project in the Solution) and a few Classes (also as Projects in t...

WCF Server Connect to the client Automatically When Connection was aborted

Hi I am using WCF service in my WindowsApplication... when i was running the application both server and client, The server disconnected the connetion in few minutes.... How shall i reconnect the client automatically When Connection was aborted.... This is my Client code: public void connecttoserver() { D: try...

Page is reloaded after ajax based client callback to WCF

Ive set up a basic client side callback to a WCF service. see sample code below. when viewing using an http filter attached to the explorer you can see that: 1. service1.svc/js is working fine and return proper java script to the browser 2. serrvice1.svc works and returns a proper json data. 3. call is fine and using alert instead of up...

Page is reloaded after ajax based client callback to WCF

Exact duplicate of http://stackoverflow.com/questions/2302382 Ive set up a basic client side callback to a WCF service. see sample code below. when viewing using an http filter attached to the explorer you can see that: 1. service1.svc/js is working fine and return proper java script to the browser 2. serrvice1.svc works and retu...

Passing an instance of anonymous type over WCF

I have a WCF service method that expects an object and then retrieves its properties using reflection. On the client side I create an anonymous type object var obj = new {FirstName="John", LastName="Doe"} and pass it to the method. I'm getting an exception: Type '<>f__AnonymousType0`2[System.String,System.String]' cannot be serial...

Can WCF WS-duplex in publisher-subsciber hold a real-time application?

I want to develop a proof of concept WCF pub-sub service that should hold thousand of users and a lot of publications (stock rates). has anyone has experience which such kind of service? can it hold real time apps? does anyone has a sample for high performance WCF pub-sub? ...

postgresql and firewall

I will be building a server/client software on Windows, where many machines need to communicate with a Postresql database running on the server. This is C++ software so I will use libpq to connect to the database. If I do this, will there be issues with the firewall? I'd like to make configuration as easy as possible and not have us...

How return memorystream from Compact Framework 3.5 using WCF 3.5

From Video Luggage i need captue foto or video and return without saving I would be grateful for any direction on this topic if this is possible? ...

Looking for a basic example showing the use of Entity Framework with a WCF service

Can anyone point out a sample or two that demonstrate the use of Entity Framework and a WCF service? My data will be stored in SQL Server 2008 and accessed via a WCF service. I'd like a basic sample that shows how to build the data model using the WCF service and how to update the data when changes occur (also via WCF). Thanks! ...

WCF: Direct Channel usage vs using a Proxy?

Hello As the title implies I am trying to get an understanding of why in WCF sometimes people choose to "generate proxies" vs using a ChannelFactory to manually create new channel instances. I have seen examples of each, but haven't really found any explainations of WHY you would go for one vs the other. To be honest I have only ever w...

How to start using WCF/WPF?

I've been using .net for quite some time, and everywhere I interview these days, I keep getting asked about my knowledge with .NET 3.0/3.5 technologies (WF, WPF, WCF etc.) How do you start learning those? Any good links available out there? Should I change my current code to start working like that? ...

How to make WCF client use the same data types as the WCF service

I have a .NET WCF service that services only .NET WCF clients (all .NET 3.5, no interoperability, via TCP, binary encoding). Using svcutil.exe the composite types that are used by the data members of the service are generated as part of the proxy.cs class used by the clients. However, what to do if I wanted to reference the same types d...

this Operation is not supported in WCF Test Client Error

Hello, Actually i implemented WCF service in IIS Host Using WCF Test Client tool I get this error: "this Operation is not supported in WCF Test Client". http://desbiz:49615/GestionProvision.svc Using wsdl in IExplorer all is ok. http://desbiz:49615/GestionProvision.svc?wsdl The contract is: namespace Security.Provision.ServiceCon...