Notifications
Clear all

[Closed] dotNet runtime exception: Token is not valid

Hello!

I recently realized that something I had written/created a long time back, suddenly does not work anymore in max.

I compiled a DLL (WPF Form) that has been working fine in 3DS Max 2016 64bit for a long time.
I still actually use it often at work, on same version of max/SP3/everything should be the same.

But I wonder if Windows Updates somehow broke this now…

I installed the latest dotnet runtimes , but haven’t restarted yet to be 100% sure if that will fix or not.

But does anyone know what this error means, or how to possibly see what “token” is not valid?

I don’t think I’ve ever seen this error before, when working on these DLL type forms / loading assemblies.

1 Reply

So a previous version of the tool I made/ DLL as well, works… compiled the same way.

But it’s using an older version of Dotnet, and I can’t change my build version on my newer tool , since some UI elements and other things won’t compile then.

But as I said, it USED to work just fine in Max… and now suddenly, fails. With no changes on my part directly.

I attached Visual Studio to the 3dsmax.exe process and I could see my form was loaded into memory/into the scene. Just not fully loading for whatever reason…

Does anyone know of another way to debug possibly? I might try to install 3ds 2018, or if I can install another copy of 2016, could test that way too maybe.