Bad IL format. The format of the file is invalid. Can't publish project

Hi,

I’m having issues to publish a project.
I have converted the project from Legacy to Windows, me all the adjustments and activities changes necessary for the robot to run perfectly and it is all ok.
The problem is when I try to publish the package, the following errors are showing up, preventing me from completing the publishing.

I tried searching through the forum, but nothing helped me at all. The majority of posts I’ve seen with the same errors, they weren’t prevented from publishing like I am.

May anyone be able to help me? I really need to publish this bot and there’s no way I can revert back to Legacy, since I needed to add activities that are not available on Legacy projects.

@adriano.dias

This error generally comes due to pdf or intelligentocr or database activities package…do you have them in your project?

If so try changing their versions

Cheers

I have both PDF and Database activities.
Would I need to remove them? How will the robot operate PDF if no with those?

I tried changing versions, but nothing resolved.

@adriano.dias

for database try this

for pdf can you try upgrading to some latest versions…this might need you to update system packages as well

cheers

I tried both solutions mentioned on the post, but still the same problem:

@adriano.dias

Try to go to your nuget location and delete the packageswhich are showing error and reopne the project and check…this would download thos edependencies again

Also I see the activities are still on same versions did you happen to upgrade?

Also for publish try to go to home → setting and then toggle the workflow analyzer rules and validations off

Cheers

I have disabled the validation before publishing, but it did not resolve as well

I tried changing the version of the packages back and forth and deleting the nuget folder completely, still the same errors.

With Database 1.6.1 and EmguCV 1.0.0

With Database 1.7.1 and EmguCV 1.1.0

I don’t know what else I can make to be able to publish this bot. It runs from studio, but I would need to publish it to the orchestrator.

I would NOT BELIEVE what was causing such issues if I hadn’t seen it for myself…

Want to know what was causing all these errors? The file extension was in upper case…

It was “.XAML” instead of “.xaml”. Changing this solved everything…

Thanks for any help, but the solution was just as simple as that. LOL.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.