The Kinetic Jump site navigation header requires JavaScript to be enabled and the latest version of the Macromedia Flash Player. If you are you using a browser with JavaScript disabled please enable it now. Otherwise, please update your version of the free Flash Player by downloading here.

Welcome Guest Search | Active Topics | Log In | Register

Error using custom UI update engine Options
sfredette
#1 Posted : Thursday, December 08, 2011 2:09:34 PM
Rank: Member
Groups: Member

Joined: 12/7/2011
Posts: 8
Location: Montreal
Hi,

I made a custom UI update engine, and everything was working fine. I added an image to my custom window and then I started to get an error as soon as I tried to use my control, the application isn't updated after the restart and no message is shown to the user. 

I see this error in the Update Log Viewer :

2011/12/08 18:01:26.2254  - ERROR: An unexpected error occurred; the update will be aborted:
2011/12/08 18:01:26.2254  - System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
2011/12/08 18:01:26.2254  -    at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
2011/12/08 18:01:26.2254  -    at System.Reflection.Assembly.GetTypes()
2011/12/08 18:01:26.2254  -    at Kjs.AppLife.Update.Engine.UI.l.a(Image A_0, String A_1)
2011/12/08 18:01:26.2254  -    at Kjs.AppLife.Update.Engine.UI.l.a(String[] A_0)
2011/12/08 18:01:26.2264  - FAIL

Since then I removed the image from my custom window assembly, but still get the error.

If I create a new update project and keep the AppLife Update default window, the updates are working. When I change to my control, I get the error posted here, and even when I change back to the default window I have this error. 

Any idea of what cause this ? 

Thank you!
brianh
#2 Posted : Monday, December 12, 2011 8:48:25 AM
Rank: Administration
Groups: Member, Administration

Joined: 5/24/2007
Posts: 362
Location: Minnesota

Hello,

 

From your description, I suspect that the issue is not related to adding the image.  Can you test the custom ui from the AppLife Update project settings dialog?

Brian Haas
Kinetic Jump Software
sfredette
#3 Posted : Thursday, December 15, 2011 9:59:12 AM
Rank: Member
Groups: Member

Joined: 12/7/2011
Posts: 8
Location: Montreal
Hi Brian,

Yes the custom ui is working fine when I test it from the project setting dialog.
brianh
#4 Posted : Thursday, December 15, 2011 10:05:58 AM
Rank: Administration
Groups: Member, Administration

Joined: 5/24/2007
Posts: 362
Location: Minnesota

Hello,

 

This then indicates that the test fixture built into Make Update can load the custom assembly, but the update engine cannot.

 

Does this error occur when an update is run on your development computer?  Does it occur on all clients, or just some?

 

Verify that the framework version that you are compiling your custom UI against is the same as your application expects.  If you are compiling your custom UI against .Net 4.0, but a client doesnt have the 4.0 framework, I would expect this type of exception to occur.

Brian Haas
Kinetic Jump Software
sfredette
#5 Posted : Monday, February 20, 2012 6:13:51 AM
Rank: Member
Groups: Member

Joined: 12/7/2011
Posts: 8
Location: Montreal
Hi,

Sorry for the delay before any feedback.  

I verified that the framework version of my custom UI is the same as the one of my application. I also checked that they all target the same platform (any cpu). 

I still have the error. Any other idea of what could cause this ?

Thanks!
Sebastien.


sfredette
#6 Posted : Monday, February 20, 2012 7:18:35 AM
Rank: Member
Groups: Member

Joined: 12/7/2011
Posts: 8
Location: Montreal
Hi brian,

After some more test and research, it's something with the project in which the custom UI is in. I tried the Custom Forms sample and changed the form1 in the project "Custom Update UI" by the one I made. Than import this UI in the .aup project.. everything was working fine. 

Still scratching my head as what is wrong with mine.. 

Can the custom UI update engine and custom UI check update form be in the same project (a class library) ? Right now that's the case, and I saw in the sample that these two forms are in separate projects.

Thanks for your help!
sfredette
#7 Posted : Monday, February 20, 2012 7:50:55 AM
Rank: Member
Groups: Member

Joined: 12/7/2011
Posts: 8
Location: Montreal
Just to let you know that I've fixed the problem. 

The error happens when my two custom forms are in the same project. If I move the custom form used to check if an update is available in my application project and leave the IUpdateUI form in it's own project the error is gone. 

Thanks.
Sebastien
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.