wcf

Creating a WCF ServiceHost object takes three to four minutes on some PCs

Hello, I have created a WCF service which does not use the app.config to configure itself. However, it takes three to four minutes on some PCs to construct the ServiceHost object. Thinking there was something wrong with my service, I constructed a simple Hello, World service and tried it with that. I have the same issue. According to t...

Windows Live ID SOAP Authentication

Hello! I'm developing a .NET Compact Framework 2.0 SP2 application with C#. I need to use Windows Live ID Authentication. Is there any web service to do that? Thank you! ...

How to use LINQ with ServiceModel.Channels.Message

How can i use LINQ with ServiceModel.Channels.Message? I'd like to use LINQ to the SOAP message body. I initially tried doing this: XElement elem = XElement.load(message.GetReaderAtBodyContents()); But that piece of code complains that XMLReader should be EOF after the read operation. What is the correct way to do this? ...

WCF Serialization & Interfaces

Does link text mean I have to return a concrete implementation? Even though I am using svcutil with the /r that includes my entites(where IMyInterface is defined). I get no errors but it changes all List(of IMyInterface) to list(of Object) and I cannot deserialize it on the client Error: list(of object) cannot be converted to list(of IM...

App.config namespace issue

I'm working with an interface generated by from a wsdl, and I'm running into an issue when trying to host my service as a Windows Service. The following line appears above the interface. Unless I change it from [System.ServiceModel.ServiceContractAttribute(Namespace="http://xxxxxx.com/", ConfigurationName="IService")] to [S...

Hosting requirement: What does WCF need to work?

I plan to start developing with WCF this weekend. Before i get too far along, I'd like to know what I need from my web host? What does our server need to run to enable WCF? Is it standard ASP.NET 3.5 SP1 stuff? Does the host need to do anything to our IIS configuration? I'm currently hosting our ASP.NET apps, company website, etc. with ...

Type 'System.Web.HttpRequest' cannot be serialized

Hi There. I am trying to design an Picture Upload feature into a web site. I am using ASP.NET 3.5, C#, and WCF. I have been asked to accomplish the following: 1) Make the Uploader a Web Service 2) Return progress updates to the user as files are uploaded. 3) Log other relevant user-selected options in the database. So, I have s...

Identify WCF clients that do not dispose properly

Hi, we have a WCF service hosted inside IIS. Now there are loads of different client applications calling this service. WS-SecureConversion is used. Now, the service diagnostic log shows warnings that security sessions are being aborted. Most likely this is because of clients that do not properly close the session. More info: the prob...

Is HttpClient from WCF REST Starter Kit Silverlight compatible?

I know in earlier versions of the WCF REST Starter Kit the HttpClient class was not usable from Silverlight. Has that changed? I did a couple of quick searches and didn't find anything that gave a clear answer. ...

Client Access to SQL Server over the Internet

Does anyone have any opinions over the best ways to connect a client to SQL Server to get data. So lets say I have a C# DataGridView in a Winform not on the internal network and I need to load it with a lot of data. Currently to access the data we call a component SQLDataAdapter in the client which opens a connection to the SQL server,...

How do I choose between WCF, REST, POX and RIA services for a new Silverlight application.

There a lot of different ways a Silverlight application can connect back to it’ server. Including WCF - Windows Communication Foundation REST (see also) ADO.NET Data Services (or is this just REST?) POX - Plain Old XML (E.g basic xml) RIA services For each of these please say what it’s for and when you would or wouldn’t use it. I...

Get Identity when calling WCF service from Silverlight app authenticated with Forms auth.

Hi I'm doing FormsAuthentivcation, on a Silverlight app. When the SL app calls a WCF service I'm trying to get the authenticated username from within my WCF service like this: ServiceSecurityContext.Current.PrimaryIdentity.Name; or this (unsure of which to use, problem is that both are empty) ServiceSecurityContext.Anonymous.Primar...

Retrieve calling application name in wcf

Is there a way to retrieve the calling application name in a wcf service? ...

WCF: The incoming message was signed with a token which was different fron what used to encrypt the body. This was not expected.

For what ever reason, a critical third peaty webservice functions like this. I can connect, send a request, and receive valid response, but i still get the error message. This only happens on one server. "The incoming message was signed with a token which was different fron what used to encrypt the body. This was not expected." (sic) T...

What is the easiest way to transfer a class with many dependecies in WCF (using shared DLLs)?

I've got a class which has properties referenced to couple of interfaces and classes. Now I'm trying to transfer this one class via WCF (named pipes), what's the best way to deal with it? Shall go into all referenced interfaces, class and mark stuff as <DataContract()>, <Serializable()> and <DataMember()>, which means at least 6-10 c...

Hosting a long running process in IIS

Hi All, I have a design scenario that is giving me a few headaches and I'm wondering what solution is the best solution. I have a dashboard-like application that polls information from a service that requires a java RMI connection to gather real time data. I'd like to implement that dashboard component in silverlight and provide the...

WCF in Windows Mobile 6

Hello, I have seen this issue on google, however, nobody seems to be able to solve it. I am writing a Windows Mobile app that utilizes a WCF service that I created. When I deploy this app to the device, it runs fine as do other non-mobile apps that consume this web service. When I debug it (bluetooth or usb cradle connected), SOME of...

Can you combine the WSDL and XSD data from a WCF service?

Is it possible to create a single file to generate a client from a WCF generated WSDL file (and any additional XSD files that are also generated from this service) I can generate a valid client using svcutil.exe passing both the wsdl file and each xsd file, but I have a customer who is using a PHP tool to generate this and I wanted to s...

wcf : string element nillable="false"

Hello. I have a client that is mandating that my 'required' string elements have nillable="false", currently all strings in the wsdl come out will nillable="true", IE: <xs:element name="username" nillable="true" type="xs:string" /> how can i change the nillable="false" ?!? I will take any suggestions on how to do this? Am I the f...

WCF Between Matlab & a C# application.

Hi, I am trying to communicate between 2 applications. 1 matlab application 1 C# written application. The C# application publishes its functions with the Microsoft WSDL application that is non-standard and matlab cannot understand it. Do you know of any solutions to this problem? Some application that does publish the WCF functions in ...