Creating WCF web service II

A continuation of previous post.

1) Visual Studio, publish web service: check destination IIS app
Before the change, the error was “cannot show the content of the folder”.

2) Add this line to the service.cs (service class C# file), to work around/avoid a problem, asp .net compatibility issue. Do something like this:

[ServiceBehavior]
[AspNetCompatibilityRequirements(RequirementsMode=
AspNetCompatibilityRequirementsMode.Allowed)]
class BarService : IHelloContract
{
// …
}

Refer to wenlong

3) Bad request: it appears to be a class rename problem, Visual Studio has a “red” warning sign, follow it and accept “update”, rebuild.

Join the Conversation

1 Comment

  1. You may be able to get loans using your personal credit, so why bother building business credit? It’s best to keep personal and business matter separate. Building business credit works so why bother building business credit and it’s used differently. You can also protect yourself by building business credit.

Leave a comment