New Posts New Posts RSS Feed: Devforce 2010 No valid license key after deploying assemblies to GAC
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Devforce 2010 No valid license key after deploying assemblies to GAC

 Post Reply Post Reply
Author
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post Topic: Devforce 2010 No valid license key after deploying assemblies to GAC
    Posted: 02-Nov-2010 at 6:01pm
Great!  Thanks for letting us know.

Back to Top
rasmus View Drop Down
Groupie
Groupie


Joined: 05-Aug-2009
Location: Denmark
Posts: 63
Post Options Post Options   Quote rasmus Quote  Post ReplyReply Direct Link To This Post Posted: 02-Nov-2010 at 4:25pm
That did the trick!
 
Just needed to add my Domain assemblies to the Probe... Section
 
Thank you for your help
 
-Rasmus
Back to Top
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post Posted: 28-Oct-2010 at 4:46pm
Understood.  I talked with one of our architects and we got this working with a sample application with both DevForce and the application assemblies deployed to the GAC.

After deploying the assemblies to the GAC, these are the changes we made to the web.config (some of which you may have done already):
1)  Specify any application assemblies in the <probeAssemblynames> element.  You should use the fully qualified assembly name.
2)  Specify the application and DevForce assemblies in the <assemblies> element under <system.web>.  Again these should be fully qualified assembly names. 


For reference, this is the Web.config that we used:

<?xml version="1.0" encoding="utf-8"?>
<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" />
    <probeAssemblyNames>
      <probeAssemblyName name="ODSWeb, Version=1.0.0.0, Culture=neutral, PublicKeyToken=287b5094865421c0" />
    </probeAssemblyNames>
  </ideablade.configuration>

  <system.serviceModel>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="false" multipleSiteBindingsEnabled="true" />
  </system.serviceModel>
  
  <system.web>
    <compilation debug="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

<add assembly="ODSWeb, Version=1.0.0.0, Culture=neutral, PublicKeyToken=287b5094865421c0" />
        <add assembly="IdeaBlade.Core, Version=6.0.6.1, Culture=neutral, PublicKeyToken=287b5094865421c0" />
        <add assembly="IdeaBlade.EntityModel, Version=6.0.6.1, Culture=neutral, PublicKeyToken=287b5094865421c0" />
        <add assembly="IdeaBlade.EntityModel.Edm, Version=6.0.6.1, Culture=neutral, PublicKeyToken=287b5094865421c0" />
        <add assembly="IdeaBlade.EntityModel.Server, Version=6.0.6.1, Culture=neutral, PublicKeyToken=287b5094865421c0" />
        <add assembly="IdeaBlade.EntityModel.Web, Version=6.0.6.1, Culture=neutral, PublicKeyToken=287b5094865421c0" />
        <add assembly="IdeaBlade.Linq, Version=6.0.6.1, Culture=neutral, PublicKeyToken=287b5094865421c0" />
        <add assembly="IdeaBlade.Validation, Version=6.0.6.1, Culture=neutral, PublicKeyToken=287b5094865421c0" />
      </assemblies>
    </compilation>
  </system.web>

  <connectionStrings>
    <add name="DomainModelEntityManager" connectionString="metadata=res://*/ServerModelNorthwindIB.csdl|res://*/ServerModelNorthwindIB.ssdl|res://*/ServerModelNorthwindIB.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=.;Initial Catalog=NorthwindIB;Integrated Security=True;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />
  </connectionStrings>
  
</configuration>
Back to Top
rasmus View Drop Down
Groupie
Groupie


Joined: 05-Aug-2009
Location: Denmark
Posts: 63
Post Options Post Options   Quote rasmus Quote  Post ReplyReply Direct Link To This Post Posted: 28-Oct-2010 at 1:40am
Hi
 
Thank you for your reply.
 
For my setup that is a very bad solution. I have a 100 sites running og the same server, using the same Devforce assemblies, and the same application assemblies. The setup with the GAC works very well, since I only have to update new assemblies at one location. I understand that this is not your recommandation, but the installation guide mentions the GAC as a way to do it - still it does not work.
 
Hope you can help
 
-Rasmus
Back to Top
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post Posted: 27-Oct-2010 at 6:19pm
Hi rasmus,

The DevForce assemblies should be deployed into the bin folder of IIS instead of the GAC (and they should be removed from the GAC to avoid assembly binding confusion).  Try that and it should solve the problem.

Back to Top
rasmus View Drop Down
Groupie
Groupie


Joined: 05-Aug-2009
Location: Denmark
Posts: 63
Post Options Post Options   Quote rasmus Quote  Post ReplyReply Direct Link To This Post Posted: 27-Oct-2010 at 4:35pm
Hi
 
When deploying my assemblies to the GAC, and referencing them from the web.config I get this error message (from the windows event log):
 
...The exception message is: Cannot find a valid license key in any domain model assembly.

. ---> IdeaBlade.Core.IdeaBladeException: Cannot find a valid license key in any domain model assembly.

I had no issues with this when running the 5.x version of Devforce.
 
Hope you can help
 
Rasmus
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down