Print Page | Close Window

How to deploy to IIS?

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1428
Printed Date: 22-Sep-2025 at 11:20am


Topic: How to deploy to IIS?
Posted By: skingaby
Subject: How to deploy to IIS?
Date Posted: 17-Aug-2009 at 3:16pm
Almost all of the docs and learning modules and postings and such are about deploying the Windows Client as a One Click on IIS.
I have been struggling with a Silverlight deployment ALL DAY!
Please help.

I have tried so many things. The Silverlight client is downloading, the bootstrapper is running, the EntityServer is running, but I can't get the Silverlight Client to connect to the Entity Server no matter how I configure it.

Here's the web config changes I made:
<services>

      <service name="EntityService">
        <endpoint address="http://devserver/GcsAg/EntityService.svc" binding="customBinding" bindingConfiguration="customBinaryBinding" contract="IdeaBlade.EntityModel.IEntityServiceContract" />
      </service>
      <service name="IdeaBlade.EntityModel.Server.EntityServer">
        <endpoint address="http://devserver/GcsAg/EntityServer.svc" binding="customBinding" bindingConfiguration="customBinaryBinding" contract="IdeaBlade.EntityModel.IEntityServerContract" />
      </service>
    </services>

The endpoint tags used to have nothing inside the address="".

I am getting the following error:
The remote server returned an error: NotFound.. If the service is available, then also make sure that the endpoint bindings match between client and server.

The client app.config shows:
<objectServer isDistributed="true" remoteBaseURL="http://devserver/GcsAg" serverPort="80" serviceName="EntityService.svc" />


What am I doing wrong? How do I get this to work? Thanks, Simon.




Replies:
Posted By: JoshO
Date Posted: 17-Aug-2009 at 5:16pm
Hello Simon,
 
Please change the endpoint address in the web.config back to the "".
The client app.config needs to have the virtual directory name in the "serviceName" property and not in the "remoteBaseURL".
It should look like this:
<objectServer isDistributed="true" remoteBaseURL="http://devserver" serverPort="80" serviceName="GcsAg/EntityService.svc" />


Posted By: skingaby
Date Posted: 18-Aug-2009 at 4:16am
Fantastic! That worked. Thanks!



Print Page | Close Window