Packaging error : exception in mscorlib

Hello people ! I’m having errors when packaging for windows. The strange is that i succeed to package and get a full working .exe of my game earlier in the project. Since then, lots happend, computer has to be formated and so on.

The log seems to mean that it has to be with “mscorlib” and some intenet research didn’t help further or I wasn’t able to understand what to do concretely…

I’m pretty sure it’s something idiot but I’m failing to find what…

He’re the full log when packaging :
[link text][1]

75633-log.txt (8.94 KB)

Anyone got an idea please ? =/

I’m still working on it but I can’t figure out how to solve the problem. Seems that I have to build the Engine but I’m not sure if it’s the answer (since I’ve succeed to package the project when it got only one level) or how to do it properly…

Hey PxStardust!

Could you please try to delete your DerivedDataCache, Intermediate and Saved folders from your project. Attempt to package your project. If that does not work, I would suggest looking over the following AnswerHub posts for additional guidance. There seems to be a couple of ways others have fixed this issue in the past:

  • [Mscorlib AnswerHub One][1]
  • [Mscorlib AnswerHub Two][2]

Let me know if none of these suggestions work and I will continue to dig into this issue further for you. Thank you! :slight_smile:

Can't package game (an item with the same key has already been added) - Programming & Scripting - Epic Developer Community Forums
[2]: Can't package project - Platform & Builds - Epic Developer Community Forums

Hi !

Deleting the Saved folder seemed to work, thank you ! It still happends but deleting the folder again solve the problem.
There are just minor errors like widgets that are not cooked but that doesn’t matter, thank you !
Also, I got an other question. Is it wrong to package (or just cook?) in the same folder than a previous package (of the same project) after some edits? The few times I tried the mscorlib error showed up again. I feel like losing time packaging the whole thing again for little things x)

I’m glad that deleting your Saved folder fixed the issue you were originally running in to. I personally have not ran into any issue repeatedly packaging over and over again. I normally only save, and package if it’s a huge change to make sure I don’t run into any errors during that process.

So when you’re making these changes and saving them, how often are you actually packaging? Are you changing lets say, one color and repackaging again? And then you change one more thing, and package that too?

Give me a bit more info, and I will test it on this side and let you know what I come up with.

Thanks! :slight_smile:

(Ho, and BTW, I switched to 4.10 and Visual Studio 2015, if it could help anyone later)

Actually, it goes like this :

  • I succeed to package correctly, but I only got one map cooked and only things refered in this one. I loaded and checked my other maps, added some trivial changes and then tried to package > Fail > Delete saved folder > Worked !

  • After some tests on my .exe, I figured out that widgets didn’t work except few ones > loaded them, edit them a bit > tried to package > Fail > Delete Saved folder > Fail > Full rebuild package in a new folder > Fail.

Logs are the same as the first one (the mscorlib exception). I haven’t tried more since I’m not at home. The thing is that I have to create a demo version but we had several problems and I packaged to ensure that everything up to now was working and to spot things that doesn’t.

Well, after getting done with my edits I’m facing again the “mscorlib” error. However, cleaning the three folders as well as the Saved Folder in my project (that’s the one I cleaned earlier) don’t allow me to package again.

I’m building the Engine from source right now according to the 2nd option, hoping that I will succeed. I was wondering, could it be because I duplicate my project?

It could be possible due to a duplication of your project. Is the error exactly the same as the other error from your earlier logs?

Let me know how your source build cooperates, thank you!

Ho so… Yes, it’s exactly the same. The souce build ended correctly but I still have to install plug-ins.

By the way, is there a reason widget blueprints doesn’t show up when packaged? (Or should I create an other topic?)

For your widget blueprint issue, please submit a new AnswerHub post. Regarding your mscorlib issue, did you try deleting your saved folder again once it started happening? Or does it persist through?

I did but it persist. I figured out that changing the project version while deleted the folder helps, as well as changing it back. Worked until now so I guess it’s good !

Let us know if you run into the issue again. :slight_smile: