'That assembly does not allow partially trusted callers' Error on shared hosting platforms.
StarrrLiteNL opened this issue · 2 comments
StarrrLiteNL commented
I am trying to use this library in a project I am working on. Locally it is working fine, however as soon as I deploy it to my (shared) webhost, I get the error "That assembly does not allow partially trusted callers". I have no access to IIS on the server, because it's a shared hosting platform.
From what I have read this can be fixed by addding [assembly:AllowPartiallyTrustedCallers] to the assemblyinfo.cs file. I would assume more people would have run into this, so there might be an easier solution?
ChrisMcKee commented
What version of .net and IIS/Win are you on?
StarrrLiteNL commented
I stand corrected, turns out the partial trust error wasn't caused by bcrypt.net, but by another reference that i called right under it.