New Posts New Posts RSS Feed: Silverlight Deployement with DevForce 6.1.4
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Silverlight Deployement with DevForce 6.1.4

 Post Reply Post Reply
Author
mikeh View Drop Down
Newbie
Newbie
Avatar

Joined: 14-Dec-2011
Location: Rochester, NY
Posts: 5
Post Options Post Options   Quote mikeh Quote  Post ReplyReply Direct Link To This Post Topic: Silverlight Deployement with DevForce 6.1.4
    Posted: 15-Dec-2011 at 4:34am
We are using DevForce 6.1.4 witha Silverlight application.  It works fine locally, but when we deploy it to another machine running IIS, I we were getting an error message stating there is no endpoint listening on http://web-dev/TestApp/EntityService.svc/sl that could accept calls from this application.  We added the ideablade.configuration to the web.config and that problem when away, but now we get the following error.

The Login could not be completed because the server did not respond.  Check 
that the server is available and contains a clientApplicationType='Silverlight' 
configuration setting.

This is our web.config
<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
   <configSections>
      <section name="ideablade.configuration" type="IdeaBlade.Core.Configuration.IdeaBladeSection, IdeaBlade.Core" />
   </configSections>
  
   <ideablade.configuration version="6.00" xmlns="http://schemas.ideablade.com/2010/IdeaBladeConfig">
       <logging logFile="log\DebugLog.xml" />
       <objectServer>
         <serverSettings useAspNetSecurityServices="true" supportedClientApplicationType="Both" />
       </objectServer>
  </ideablade.configuration>
  
    <system.web>
        <compilation debug="true" targetFramework="4.0" />
    </system.web>
  <connectionStrings>
    <add name="PosEntityManager" connectionString="data source=.\SQLEXPRESS;Initial Catalog=webdb;database=webdb;multipleactiveresultsets=True;App=EntityFramework;user=webuser;password=webpassword" providerName="System.Data.SqlClient" />
  </connectionStrings>
</configuration>

Thanks,
Mike


Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 15-Dec-2011 at 12:17pm
Hi Mike,
 
Are you using a Code First model?  I'm wondering if the licensing information isn't being found, thus making the EntityServer think that Silverlight isn't supported.  The debuglog.xml file in the log folder should have tracing information which will indicate both the license it found and the endpoints it started.
Back to Top
mikeh View Drop Down
Newbie
Newbie
Avatar

Joined: 14-Dec-2011
Location: Rochester, NY
Posts: 5
Post Options Post Options   Quote mikeh Quote  Post ReplyReply Direct Link To This Post Posted: 15-Dec-2011 at 12:29pm
Yes, we are using Code First.  I also looked at the debuglog.xml file and you are correct, it is a license problem:
 
Caught exception: IdeaBlade.Core.IdeaBladeLicenseException: This product is not registered or the key may no longer be valid.
 
I thought the Ideablade could be used for up to 10 entities without a license.
 
Thanks,
Mike
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 15-Dec-2011 at 12:37pm
Yes, the Express license allows for use with small models under 10 entities. 
 
License information is actually stored inside the generated ibmmx file, which should be embedded in an assembly (on both client and server).  Since the problem is occurring on the server, is it possible that either this assembly wasn't deployed, or is being excluded from probing (via CompositionHost patterns)?  The debug log will also indicate this - telling you which assemblies it found during probing.  The assembly with the ibmmx should be in the probing list.
Back to Top
mikeh View Drop Down
Newbie
Newbie
Avatar

Joined: 14-Dec-2011
Location: Rochester, NY
Posts: 5
Post Options Post Options   Quote mikeh Quote  Post ReplyReply Direct Link To This Post Posted: 15-Dec-2011 at 1:02pm
According to the log, it looks like it's looking for the license in EntityModel.dll (which it can't find) instead of EntityModel.dll.SL
Back to Top
mikeh View Drop Down
Newbie
Newbie
Avatar

Joined: 14-Dec-2011
Location: Rochester, NY
Posts: 5
Post Options Post Options   Quote mikeh Quote  Post ReplyReply Direct Link To This Post Posted: 15-Dec-2011 at 1:13pm
Here is the error from the log:
<entry id="2" timestamp="2011-12-15T15:25:08" username="" source="IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog">Error loading assembly 'C:\Webs\TestApp\bin\EntityModel.dll' for PartsCatalog: File IdeaBlade.Aop, Version=6.1.4.0, Culture=neutral, PublicKeyToken=287b5094865421c0 not found.</entry>
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 15-Dec-2011 at 1:18pm
The ibmmx file is embedded in both a client and server assembly, so on the server EntityModel.dll would be the one to contain the file.  You'll also need to deploy that IdeaBlade.Aop assembly, and PostSharp.dll, along with the usual IdeaBlade.* assemblies. 
Back to Top
mikeh View Drop Down
Newbie
Newbie
Avatar

Joined: 14-Dec-2011
Location: Rochester, NY
Posts: 5
Post Options Post Options   Quote mikeh Quote  Post ReplyReply Direct Link To This Post Posted: 15-Dec-2011 at 1:20pm

Thanks for your help!  It looks like we were missing the reference to IdeaBlade.Aop.  I added that reference to our Web project and everything is working. 

 
Thanks,
Mike
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 15-Dec-2011 at 1:24pm
Great!  Our Code First documentation is still a work in progress, so I think we may have overlooked some of these deployment details.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down