Using vs2008, vb.net, C#, fw 3.5
I am consuming my service in my client
Service is hosted in IIS
Client(winforms MDI) is generated using svcutil using /l, /r, /ct, & /n switches
Service and client both use a MyEntities.dll
I am using nettcp with TransportWithMessageCredential
I cache the proxy in the main form
if Membership.Valida...
I have a WCF service project hosted in IIS. The main SVC file is in the root of the web application folder, and in the bin\ folder are the actual dlls. The web.config (also in the root) contains all the unity mappings. Unfortunately, it seems that because the concrete assemblies etc. are living in the bin\ folder, Unity cannot find them....
Why this WCF 3.5 method
[ServiceContract]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class Json
{
[OperationContract]
[WebGet(ResponseFormat = WebMessageFormat.Json)]
public string Upper(string text)
{
return text.ToUpper();
}
}
returns {"d":"TE...
If my WCF Service has this attribute:
[ServiceBehavior(
InstanceContextMode = InstanceContextMode.Single,
ConcurrencyMode = ConcurrencyMode.Multiple)]
How can the following a Singleton work in a call?
System.ServiceModel.Web.WebOperationContext.Current
...
I have the following code (which was borrowed from the Microsoft site) and when I run it, it shows the public and private keys being identical. This does not seem correct. In addition, when I try to USE the private key, I get the message "Object contains only the public half of a key pair. A private key must also be provided."
I am usin...
I have a simple WCF Rest service using the latest MS Restful preview kit. Everything works fine, site works as expected. However when I go to my /help page as in http://services.acme.com/help what is being shown is --
UriTemplate http://serv17.acme.com/Service.svc/Ping/string={ping}
Method GET
R...
I have an interface ICustomerService:
public interface ICustomerService
{
CustomerList FindAll();
}
and a concrete class implementing that interface. Now I need to expose the method over the web using wcf/rest and I've had to change the interface definition to this:
[ServiceContract]
public interface ICustomerService
{
[Operati...
I want to be able to Generate WCF C# DataContract from XSD file, preferably using the xsd.exe tool. What is the easiest way for it to auto generate the
[DataContract]
and [DataMember] on each of my items?
Or is there a better approach? I am trying to avoid having to recreate the Data Contract each time the XSD file is changed and regen...
Hi,
I am working on an application where i am using a wcf service. I am currently hosting my service on localhost and accessing it from there only by adding the service reference in my project. On one of my page i am sending request on change of selected index on dropdown list. It works fine for first few requests but suddenly stops af...
So we have console-hosted WCF Service and ASP.NET WEB Service (on IIS).
After some tough operation WCF Service must return some data(large data) to ASP.NET Web Service for next processing. I tested on small results - everything is ok.
But after testing on real data(serialized result object is near 4.5 mb) error occurs on ASP.NET Web Serv...
I have made a small log service that i want to publish to a subdomain on my webhotel. I make the wcf service and test it locally - no problem. I then go to the [Build] menu and choose [Publish], type in my FTP location and publishes it to the location. No problems.
The problem arise when i need to use it, i try to navigate to the .svc f...
I have multiple instances of the same Windows Forms .net 3.5 SP1 C# application running on the same machine.
Now I'd like to be able to communicate with them from .net, one instance at a time.
What's the most simplest way to do this?
I read a bit about WCF, but I have only found examples working with one server and one client. But in ...
I have a WCF service that has methods with the PrincipalPermission attribute on them. When a user that does not have the appropriate permissions tries to access those methods the attribute throws a SecurityException but since the exception is thrown in the attribute it's not possible to put try..chatch around the call.
I have tried usin...
I've found that I can import a SOAP/WSDL service that I plan on using into my solution either as a "Web Service Reference" (System.Web.Services) or as a "Service Reference" (System.ServiceModel / WCF).
I was wondering if what the differences were. I understand that 'Add Service Reference'/WCF is newer, are there any disadvantages to us...
I have a WCF service which is being hosted in IIS.I have a WCF client also (a console application) .I have used the svcutil to build the proxy class and configuration file and then added those to my client project.It builded properly.But when i tried to run the program,ITs throwing me the below exception
Could not find default endpoint ...
Suppose one is using Microsoft's Entity Framework as an ORM to abstract/work with a database. Next comes a requirement which causes the application to have the need to work with a WCF service and a traditional database, simultaneously.
To my knowledge no ORM tool exists that can abstract a WCF service in the same manner as Entity Frame...
Hi folks,
in my C#-Silverlight-3-Application, I have created a class, that is doing some calculations that are used in different parts of my program. This class needs data from a database, so it calls a WCF-Service to get the data. The structure of the class looks like this:
public class ConsumptionCalculation
{
// Declare the event...
I'm very new in web programming stuff, so my question is about basics. I'm developing a SilverLight application and need to access the database from it. I'm using LINQ to SQL to get data from database and a WFC web service to deliver it to my app.
Everything is working fine when I'm running my app within Visual Studio. When trying to p...
I have a WCF service used mainly for managing documents in a repository.
I used the chunking channel sample from MS so that I could upload/download huge files.
Now I implemented reliable session with the service and I am seeing some strange behaviors.
Here are the timeout values I am using.
this.SendTimeout = new TimeSpan(0,10,0...
Does a WF hosted as WCF (.NET 3.5) in IIS 6 resume after a delay activity when persisted to SqlWorkflowPersistenceService ? And if so, which kind of thread is being used (one from the ASP.NET worker threads or a background thread from IIS ?)
...