Author Topic: NGUI FileNotFoundException Error [*RESOLVED*]  (Read 2869 times)

Slydog

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
NGUI FileNotFoundException Error [*RESOLVED*]
« on: March 30, 2013, 09:50:08 PM »
I started my GUI using the free version of NGUI.
Liking the add-on, I purchased the full version.

Something must have messed up upgrading to the purchased version.
I noticed the latest full version has combined all the different sprite classes into a single UISprite class.
But my existing GUI didn't upgrade to the new version automatically.
I manually upgraded all the sprites to be sure I was only referencing the full version, but I may have missed something.

NGUI keeps giving me the 'FileNotFoundException' error in a 'MonoMethod.cs' at line 59.  (See the console screenshot for the details).
I think it is still trying to reference the old free .dll maybe.
Or, maybe it is something completely different.
But, everything actually works fine, my events fire properly, etc.
« Last Edit: April 01, 2013, 02:24:56 PM by Slydog »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI FileNotFoundException Error
« Reply #1 on: March 30, 2013, 10:07:48 PM »
Full version has no DLL. You need to follow the upgrade instructions that involve deleting the NGUI folder. Check the readme file.

Slydog

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
Re: NGUI FileNotFoundException Error
« Reply #2 on: March 30, 2013, 10:33:29 PM »
My first attempt, I just installed the full version along side the trial version.
That's when I read the instructions, which was included (ha, are there other instructions I could have read *before* downloading the full version! It was too late!).

But I backed up my project before upgrading, then followed the instructions with the backup project (ie. deleting the trial NGUI *first*), but it still gave me the error.
(At least that's what I thought I did.)

I meant the trial version has a DLL, and maybe my project is referencing the trial DLL somewhere.
Is there a file I can edit to remove this reference maybe?

Arg, I wish there was a warning when using the trial version to not get too far, because the versions aren't 100% compatible, and you may have some clean up to do.

I may just start a new project, and one by one, move all my assets over.  This should avoid the error I think.

Thanks,

Slydog

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
Re: NGUI FileNotFoundException Error
« Reply #3 on: April 01, 2013, 02:22:18 PM »
Turns out it was another asset I purchased causing the problem.
It included the free NGUI to demo the asset (it was a skin).
I deleted the included NGUI folder and the error went away.

Wow, that was too many hours to figure that one out!