OT: LicenseException

OT: LicenseException

Old forum URL: forums.lhotka.net/forums/t/1924.aspx


ajj3085 posted on Thursday, December 07, 2006

I have the Infragistics controls for my windows forms application. 

I ended up creating some helper methods, where you pass in the grid (for example) and the helper does something to the control.  These are very generic routines, so I move the helper methods to my Windows library dll.

Now the build server cannot build the application.. it builds fine on my workstation.

Any ideas what might cause this?  The builder service is running under its own domain account, although its not an admin or anything.

Andy

xal replied on Thursday, December 07, 2006

I used infragistics for some time. The thing is that the controls require a registration (look inside your project and you'll notice that some files where silently added...).

I _think_ you need to publish or install the app in order for them to work.

Andrés

ajj3085 replied on Thursday, December 07, 2006

Are you talking about the licenses.licx file?  I tried adding one to the dll, but that only caused the dll to fail to build.

These exceptions occur when the build server is building the latest version of the application, so I'm not sure how I'd install my application.  It was working fine until I moved some of these methods to a dll so they can be shared among applications... I guess for now I'll move them back.

xal replied on Thursday, December 07, 2006

Ok, I know this is going to sound really silly, but try this:
Add a Form to your new class (first remove that license file you hand added).
Add some of the infragistics controls that you use in your app to the form.

Try now.

If it builds fine, you should be able to remove the form from your class library project and everything should still work just fine.

Andrés

guyroch replied on Thursday, December 07, 2006

Andy,

Just remove the licenses.licx from your project and recompile.  I lost about 2 days on the same problem you're having last year only to realize that when I deleted the file it ended up working just fine. 

ajj3085 replied on Thursday, December 07, 2006

Guyroch,

I just tried that, and it seems to have fixed the problem.  Very weird.  I thought those files were needed to properly license the component.

I've had the file for a while now, even upgraded from 20062 to 20063 and its never caused any problems before.  I don't know why now suddenly it wants to..

So what happens when the file gets added back?  Do I have to keep deleting it, or will it now suddenly work again?

Andy

guyroch replied on Thursday, December 07, 2006

As far as I know the file will automagically show up again.  I just leave it there and delete it from time to time only when this problem manifests itself.  Granted, wierd but whatever works is fine by me :)

Copyright (c) Marimer LLC