Error Opening Project File

junaidahmed

Well-Known Member
Licensed User
Longtime User
When I open Basic4Android Project file it shows an error message as

Error Loading file.Then Given key was not present in the directory

Pls see the attachement and advise where it is problem.
 

Attachments

  • Android.JPG
    Android.JPG
    64.9 KB · Views: 356

gilles13300

New Member
Licensed User
Longtime User
Same problem

I have the same problem and it's not occasionally.
I suppose it's a (KeyNotFoundException) in the .Net framework.
 
Upvote 0

gilles13300

New Member
Licensed User
Longtime User
The original error is fixed for the next update.

Does it happen each time you load your project? What happens after you press Ok?

Dear Erel,

TY for the fix !!
Yes it's happen each time for the same project but not for all projects.
If I press "OK" i obtain the default GUI without my project.

PS
sorry for my poor english ^^
 
Upvote 0

gilles13300

New Member
Licensed User
Longtime User
I'm sure that my project was not empty when I saved.
No error message too ...

To use the feature "export as zip" , you must be able to open the project.
The project name is in the current window title. It was not the case ...
 
Upvote 0

Taha

Member
Licensed User
Longtime User
Have got the same problem

After I saved the project, reloaded the PC - encountered the same problem. Please, help!
 
Upvote 0

AidinEslami

New Member
same problem

same problem for me.
the problem occur when we use libs (except core) and when i want to save project show that error and don't save the project.
if unchecked the libs problem have solved.
plz help us.
 
Upvote 0

aletrotta

New Member
Licensed User
Longtime User
Hi Erel,

I'm running into the "Error Loading file. Then Given key was not present in the directory" error when opening a project.

I did some tests and found that this error happen when working with the Http library and trying to save the project.

When I add the Http library to a project using B4A 1.80 full, or even if the project already have it and trying to save it again, I got the error message: "An error ocurred. Error saving file. File may be corrupted. Try to save again. It is recommended to copy the code to a text file before closing the IDE: Configuration Error", and the .b4a file gets empty, making me loss my work.

I'm using HTTP library version 1.10.

Do you know what could be wrong?

Thanks in advance,

Alejandro.
 
Upvote 0

mkvidyashankar

Active Member
Licensed User
Longtime User
Are you using v1.8? There was a bug in previous versions which prevented the file from being saved if one of the modules was read-only.

In v1.8 you should see a warning message if there was a problem saving the project.

Yes I am using v1.80
 
Upvote 0

arenaluigi

Well-Known Member
Licensed User
Longtime User
Problem saving project

Hi Erel,


I did some tests and found that this error happen when working with the all library and trying to save the project.

When I add the library to a project using B4A 1.92 full, or even if the project already have it and trying to save it again, I got the error message: "An error ocurred. Error saving file. File may be corrupted. Try to save again. It is recommended to copy the code to a text file before closing the IDE: Configuration Error", and the .b4a file gets empty, making me loss my work.

Do you know what could be wrong?

Thanks in advance,

Luigi A.
 
Upvote 0
Top