wcfservice

WCF Service response "HTTP/1.1 400 Bad Request" on shared hosting <aka Blank Page, XML Parsing Error, Invalid Address, Webpage cannot be found>

This is both information to those experiencing the issue and a question. edit: The question is why does dropping "www." from the URL cause this error when a website running at the same address can be referenced without "www.". I recently reproduced this problem using a trivial WCF service (the one from endpoint.tv) after resolving the ...

3-Tier Client Side WCF Service

I am able to consume the WCF Service in my front end ASP MVC application. I am now trying to configure a client side service for Jquery and this is where I am running in circles. The first thing I tried was to put the service I consumed into the client side "svc" file like below, remove the codebehind and add the factory. Using this met...

WCF with Entity Framework Error

Error: The ObjectContext instance has been disposed and can no longer be used for operations that require a connection. I am trying to create a WCF service with Entity Framework (VS 2010, .NET 4). When I run it, I get the above error. I read something about editing the T4 template, but it appears that it already has [DataContractAttri...

How to authenticate user while calling WCF service using AJAX?

I have a WCF service which needs to be called from client side(ajax call). I want to use ScriptManager on ASPX page to add a ServiceReference to the WCF service (or) JQuery ajax call to the WCF service. I want to deny anonymous users accessing the WCF service. Is there any way to do user authentication before calling a service method fro...

Receiving plain XML in .NET WCF service

Hi! I'm setting up a really simple WCF service whos only job is to receive an XML-message via SOAP and send the message on to an internal service. Let's say the one I'm creating is a guardpost of such. (Actual names have been substituted for example) Initial info: I cannot change the external service calling on me. As far as I know i...

Receving an error when calling WCF using a Service Moniker in Excel

I have a WCF webservice running that has 2 endpoints (mex and wsHttpBinding). The webservice is hostend on the address: http://localhost:2412/Service1.svc and its contact is named "WcfService1.IService1" I want to call this service from VBA in Excel. To that, I use the folowing code: mexMonikerString = "service:mexAddress='http://local...

Silverlight can't talk to RIA service

I've followed the tutorial here: http://www.silverlight.net/learn/tutorials/sqldatagrid-cs/ ANSWER: When I ran this thing in the debugger, it was starting it up on port 16048. Meanwhile, ServiceReferences.ClientConfig had the endpoint address using port 15459. No clue why it did that, but once I changed it so it was accessing the serv...

web service .exe crashing on server.

I have created just a simple web service as a console application. It works fine on my dev machine and even on one of my servers. when I installed it on my production server I keep catching this error the error that I am catching says Retrieving the COM class factory for component with CLSID {BF97F9A2-A475-4F26-9B 5B-3A14F02D9824} fail...

Get the requesting app name in WCF data service

Is there any reliable way to find from which Application the Request to a WCF Service originates? I know I can find the user name, domain, IP, etc. from the HTTP context, but what about the App name? Many thanks in advance. ...

Mocking without injection

Hello all, (C#, WCF Service, Rhino Mocks, MbUNit) I have been writing tests for code already in place (yes I know its the wrong way around but that's how its worked out on my current contract). I've done quite a bit of re-factoring to support mocking - injecting dependencies, adding additional interfaces etc - all of which have improve...

n number of user logged and use a wcf service?

If number of users login and use a same wcf service then my application hangs and i have to logout ? so please give the solution so that n number of user can login and works at a time. Thank you in advance... ...

best practices for download big files using WCF and ASP.NET

I Have this architecture: WebSite ASP.NET <------> WCF Service <--------> DataBase DAtabase gathering very big files. User request a big file in aspx page, through WCF Service. Service call database, and get the big file. Now, my entity (datacontract) has those fields: string Data1 string Data2 string Data3 byte[] FileBigger How t...

Choosing a WCF Security Model for background client processes running at multiple domains that call a WCF WS?

Hi, I am creating a WCF web service using wsHttpBinding and a corresponding application that calls this web service. The idea behind the application that calls the WS is that it will be installed and run from multiple client sites as a background process. The background processes will periodically send information from it's respective...

Do I need to do anything special to make WCF calls work over HTTPS, ..if HTTP works fine?

I have two versions of the same proof-of-concept site: The unsecure version: http://www.tlsadmin.com/tlsadmin/PortalHome.aspx and the secure version: https://www.tlsadmin.com/tlsadmin/PortalHome.aspx The problem I have is that my WCF-Based web services don't seem to work under HTTPS. Is there something I'm missing, or not underst...

Call WCF from JavaScript

Hello all, I have asp page that need to access a client resource. Can I put the client code in a Windows Service and install it on client machine and call that service in asp JavaScript page? Thanks ...

HELP: Windows Security in IIS6 & Silverlight

I have set up a Silverlight application that uses Windows Authentication, and works fine on My Windows Server 2003 Dev Box, but on Deployment to our Test Environment a windows authentication window opens and asks for the users credentials (which never get resolved). I have just realized one big difference is that I am not using host he...

WCF at Services faulted state

Hi, I have many webservices running in my project but something odd has been happening for quite some time. My services occasionally crash for no reason with an error message "The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state." This usually happens...

WCF Service Design

We currently have a WCF Service which is beginning to reach it's limits performance wise. We have decided to add another server which will host another instance of the WCF Service. We have web applications which must communicate with a specific server based on context... e.g. If the web application is dealing with objects from ServiceI...

Returning wcf/json result from the wcf service.

Hi All, I Need by service contract to return the xml/json result depending on the request type.I also need a kind of helper function which will convert my result set (i am using linq to sql) so that i do not need to create the xml format for the result set by iterating through the table row many times.What is the suitable way to do that...

Kerberos Authentication with WCF customBinding

Hello Sir, I am using an ASMX web service and creating a WCF Client for the service with customBinding. In the customBinding security section, I am using the authenticationMode as "KerberosOverTransport" and using HTTP as Transport medium. Please see the below code. <customBinding> <binding name="Service1Soap" closeTimeout="00:01:0...