0

I created a WCF Rest service but not with the WCF Rest Service template. I just used a simple class library project and then made all the settings which were listed to create a WCF Rest service.

It compiled fine and I deployed it on IIS 7. When I ran the service it gave me the following error:

The server encountered an error processing the request. Please see the service help page for constructing valid requests to the service.

I then downloaded the WCF Rest template and created a sample service. Again deployed it on IIS7 and this is working fine. I compared the project, solution, references, web.config and other files as well and see no difference. Yet the WCF Rest Template service is working and the other once is not working...

Any thoughts?

Regards, Sid

Rui Jarimba
  • 11,166
  • 11
  • 56
  • 86
Sidharth Panwar
  • 4,606
  • 6
  • 27
  • 36
  • Can you please post the full exception stack trace? – Rui Jarimba Apr 03 '13 at 13:35
  • And post some of the configuration... and the way you host the service would probably also be helpful. – jl. Apr 03 '13 at 13:38
  • Application is hosted in IIS. It's a simple WCF rest service with one post method that takes a string as input. When I try to send a request from fiddler it gives me a 400. Will post the web.config tomorrow. – Sidharth Panwar Apr 03 '13 at 20:07

1 Answers1

0

I was able to solve it. The problem was that in the service there was an activator, trying to create an object. This object creation was failing at runtime. So, even though code was compiling the service was not able to get started.

Sidharth Panwar
  • 4,606
  • 6
  • 27
  • 36