wcf

What is the best way to learn new technologies?

I wonder what would be the best way to learn "new" technologies (i.e. like LINQ, WPF, WCF, AJAX, latest C# 3.0 stuff, etc)? How do you learn the best? Is it by books, webcasts, online articles, tutorials, examples or hands-on-labs? Also, how do you make sure that you will remember the learned stuff? (reading a book/article again? dig...

WCF client errors when consuming Java services

I'm currently working on a project where I need to consume a Java webservice. If I connect to the service using old webservices (asmx) it works fine. However, If I try to do the same thing with a WCF client I get the following error: The content type text/xml; charset=utf-8 of the response message does not match the content type of the...

Java and other clients for WCF RESTful Services

I am wanting to expose some data service endpoints for internal application use and am debating on WCF REST as a possible solution. What are my options for other languages/platforms as clients? Keeping in mind that I need to service Java, Python and .Net clients. Essentially, I want to be able to demonstrate a single point of organ...

Does Microsoft.ServiceModel.Web only work in GAC?

Hi guys, I created my first WCF RESTful service with just one GetData so I can try, and it works perfectly in localhost, but when I add it to a hosting environment, I get: Server Error in '/' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please revie...

How to reference a DLL in the web.config?

Hi guys, I have a DLL in the BIN folder, and I need it to be referenced in the web.config, or I get that annoying error: Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Co...

How significant is .NET 3.5 SP1 for WCF/REST?

I just worked through a book on WCF and was surprised that it didn't even mention REST at all. Was REST an afterthought for WCF that was added in .NET 3.5 SP1 and hence not baked in well or is it well integrated? I assume that Silverlight and XBAPs can consume WCF with no problem or do they have some limitation due to their sandbox env...

WCF security problem

Some background: in order to provide authentication I'm using certificates on client and server side (WCF) and use one certificate for all clients (manually loading it from application directory - not the safest way, but it doesn't require to manage certificate storage and making installation more difficult): AddressHeader host...

Maximum array length quota

;Im writing a small WCF/WPF app to resize images but WCF is giving me grief when I try to send an image of size 28K to my service from the client. The service works fine when I send it smaller images. I immediately assumed that this was a configuration issue and I've trawled the web looking at posts regarding the MaxArrayLength property ...

Deploying WCF Services and 'The resource could not be found'

May be this is a newbie questions, I'm deploying a Ajax-enabled WCF Service on the production and it says 'the resource cannot be found' what am I missing ? ...

Designing services and operations in WCF.

Hi, I would appreciate some guidance on modelling services and operations in WCF. I have a series of business domains, each with bespoke methods that I want to able to use over WCF. I guess an OO view would be something like: interface IBusinessDomain1 { MyClass1 Method1(...) MyClass2 Method2(...) } interface IBusinessDomain2...

WCF Fails Under Load - MessageSecurityException

I am load testing my website. The site calls to a WCF service running on the same box using clientCredentialType="Windows". Everything works until I reach a certain load (which is not even very high), then I get the following error: System.ServiceModel.Security.MessageSecurityException: The HTTP request was forbidden with clien...

REST Service exposed on WCF not populating parameter values

I have a WCF service that takes as a parameter a string value "name". This service interface looks like this... [ServiceContract(Name = "ContactLookup", Namespace = "Search")] public interface IAjaxResultSearcherService { [OperationContract] [WebGet(RequestFormat = WebMessageFormat.Json)] Result[] SearchResultsWithNameLike(s...

Data authorisation using WCF web services

I am new to web development and WCF. I am reading some basics about it and most of the things seem very interesting. I have read that WCF services can be exposed using SOAP and other protocols. I was wondering whether there is an explicit implementation against data corruption during transmission built-in or it is left to user? For exa...

wcf System.ServiceModel.AddressAlreadyInUseException

Apologies if this question appears twice on stackOverflow Im trying to run a wcf service on a windows server 2003 box. Im getting a System.ServiceModel.AddressAlreadyInUseException exception when the servicehost calls Open() and it tells gives me the following error: HTTP could not register URL http://+:8080/LogoResizer/mex/ because...

WCF Service stops working, error is in web.config: cannot add duplicate collection entry of type 'add' with unique key att name set to 'scripthandlerfactory'

My web service (wcf) stopped working all of a sudden. I compared my web.config with older versions and they all have the exact same elements so I am very confused why all of a sudden I am getting this error message. Have any of you run into this problem before? Filename: web.config Line Number 151 Error: cannot add duplicate collectio...

WCF security mode is TransportWithMessageCredential using UserName, where to validate?

Hi, Here is part of my web.config for my WCF service: <bindings> <basicHttpBinding> <binding name="sslBinding"> <security mode="TransportWithMessageCredential"> <message clientCredentialType="UserName" algorithmSuite="Default" /> <transport /> </security> </binding> ...

WCF, Linq-to-SQL and Parameterized Constructors

How can I get WCF to allow the following? Dim EmployeeID as Integer = 10 Dim emp As New WcfServiceLibrary1.Employee(EmployeeID) Response.write (emp.LastName) Currently I have to do this because I can't figure out a way for WCF to allow for Parameterized Constructors: Dim EmployeeID as Integer = 10 Dim emp As New WcfServiceLibrary1.Em...

WCF not using my domain name, but rather my computer name when viewing MyService.svc?wsdl

Hi, My WCF seems to be pulling the computer-name instead of the domain name. When I view the MyService.svc?wsdl it is showing my computer name. Where do I add my domain name in the web.config? Endpoint address, baseaddress or identity? Note: I am using SSL so it has to be https://www.example.com/myservice.svc ...

Silverlight 2: How to abort a WCF operation.

I have a Silverlight 2 application that calls a WCF Service that invokes a database stored procedure. The query could take several minutes to process and I want to provide a cancel button on the client UI. How do I properly abort the WCF operation that was called? What is the best practice? ...

Tranfer data between Object-relational mapper and Data Access Layer using DTO

Does it make sense to transfer data between Object-relational and Data Access Layer using DTO? When would this pattern be useful and when would it be an anti-pattern ...