0
votes

I am encountering an issue when I upload my module's nuget package to a production environment. When I package my module up into a nuget package and then open it locally, in NuGet package explorer, it has "Mcrf.ProfilesWeb.Contracts, Version=1.0.1.1" inside.

When I install my module package on the Orchard CMS, my page fails and when checking the error log, I see:

"System.TypeLoadException: Could not load type 'Mcrf.ProfilesWeb.Contracts.ProfileList' from assembly 'Mcrf.ProfilesWeb.Contracts, Version=1.0.0.4, Culture=neutral, PublicKeyToken=null'."

I've ensured numerous times that the module package is 100% correct, it seems as though the production environment Orchard site doesn't update the contract when installing.

Any help would be much appreciated.

Thank you,

Roka

2

2 Answers

0
votes

You probably have a different version of ..ProfileList in your production environment than you do in your development environment

0
votes

Since I was hosting my website using Azure Web App, the resolution was to restart the Web App. It seems Orchard somehow caches DLLs and that's why it continued to use an old version; restarting forced to look for the updated one.