help.axcms.netAxinom Logo
Save Save Chapter Send Feedback
KB10014: System.ServiceModel.CommunicationException
Usually indicates a problem in communication between client (Silverlight ribbon control) and server (Concept.svc WCF service).

SYMPTOMS

When trying to create a site, this exception is thrown:

System.ServiceModel.CommunicationException: Der Remoteserver hat einen Fehler zurückgegeben: NotFound. ---> System.Net.WebException: Der Remoteserver hat einen Fehler zurückgegeben: NotFound. ---> System.Net.WebException: Der Remoteserver hat einen Fehler zurückgegeben: NotFound. bei System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult) bei System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState) bei System.Net.Browser.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState) --- Ende der internen Ausnahmestapelüberwachung --- bei System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state) bei System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult) bei System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result) --- Ende der internen Ausnahmestapelüberwachung --- bei System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result) bei System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result) bei System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result) bei System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result) bei
Concept.ConceptClient.ConceptClientChannel.EndGetSiteDefinition(IAsyncResult result) bei Concept.ConceptClient.Concept.IConcept.EndGetSiteDefinition(IAsyncResult result) bei Concept.ConceptClient.OnEndGetSiteDefinition(IAsyncResult result) bei System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)

CAUSE

There is a problem in communication between client (Silverlight ribbon control) and server (Concept.svc service). It can be caused by:

- incorrect WCF, IIS, or application configuration or WCF, IIS configuration that contradicts each other
- exception on server-side business logic
- other reasons

SOLUTION

There's no exact resolution for this problem since it can be caused by several reasons. Proper steps are to determine the cause and then fix it.

To determine the cause:

- Check if http://yoursMSite/yourMSdir/Concept.svc opens properly
- If it returns 404 Not Found, probably WCF is not registered withing IIS - run this utility then:
C:\windows\Microsoft.Net\Framework\v3.0\Windows Communication Foundation\ ServiceModelReg.exe –r

or on 64x OS:
C:\windows\Microsoft.Net\Framework64\v3.0\Windows Communication Foundation\ ServiceModelReg.exe –r
Note. You have to run it as administrator. E.g. start the command line with "Run As Administrator" option and then execute the command.

- Use Fiddler or similar tool to monitor the traffic between client and server and check the server response after which the message comes, it usually contains exception message.

APPLIES TO

AxCMS.net versions: All versions after 9.0

MORE INFORMATION