-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VBATools.Repositories.Repository threw an exception #37
Comments
Hi Andreas, What do you mean by
If you start your test db first, and then your work db it works but if you start your work db first, it doesn't work?
|
Hi Krish, exactly. I copied all your modules across and added a button to my form to open your drag and drop functionality:
When I step through the code with F8, it just stops at that last line and gives me the error. |
Sorry, I was wrong! The buttons work when I had opened my test database first. If I just start my work database, the Alert buttons do nothing and the password inputbox gives me the same error. |
test dropdown works, but Rich Dialog complains, that it can't find file or assembly Newtonsoft.JSON, Version 11.0.0.0, culture neutral |
I assume your work database is not loading the dll properly? Please examine the Can you also post what version of Access + 32/64bit you are using? Please also make sure, all the dlls are trusted in your machine by right click => unblock. |
Hi Krish, I'm using Access 32 bit on all machines. One with 2010, one with 2007, one with 2003. Since I got already a Dlls folder under the work directory, I adapted your System Module to add a \Dlls\ to the currentproject.path. I reverted that already without a change. If I run a gdll.class_initialize, I get the following output: |
it must be like this.
yes Since your test Db is working, i'm not sure what causes the work db not to work. TypeInitialization error can also happens if the dlls cannot be loaded/found. The project is compiled with .NET framework 4.6. in the |
Hi Krish, |
Hi Krish, first of all thanks for your great work - it made me reconsider implementing drag & drop. I adapted it to run in the old mdb format as well (and corrected the missing .Dialog in the open multiple Files as string). If I open my test-database and start drag and drop, all is fine and afterwards my full database works as expected. But if I start my database and want to use your drag & drop, I get a Type initialisation error. I inserted a gdll.class_initialize before the gDll.DLL.Dialog.ShowDialogForFileArray, but it doesn't help. Do I have to do anything on opening the form that I missed? What does the .DragMe do? Regards, Andreas
The text was updated successfully, but these errors were encountered: