Charleh
Charleh

Reputation: 14002

Could not load type '' (blank) error when trying to reference .NET assembly in NAV2013

I've created an assembly that I want to be able to call from C/SIDE in the Role-Tailored Client in Dynamics NAV2013.

I've got this all working locally but when trying to deploy to the server I can't compile the codeunit that references the .NET assembly

I have a variable of type DotNet but when trying to choose a subtype I get this error:

Could not load type '' <-- nothing between the single quotes!

I've followed all steps in the MSDN guide (save exporting the types I want to use) I've got this working locally. I can actually get it running by installing the assembly into the GAC, but I don't want to have to do this when it should work otherwise

(the add in is also registered in the Client Add-in table and is strong-named with the correct public key token in the table)

These are the things I've tried:

All the assembly does is calls out to some webservices and a couple of other things, I just can't work out why I can't get it to work

I suspect it's permission related since installing to GAC seems to make it happy

Any ideas?

Thanks in advance

Upvotes: 1

Views: 767

Answers (1)

Charleh
Charleh

Reputation: 14002

Turned out to be Windows Server 2008R2 security feature which blocks dlls when copied from another machine

I unblocked it and all is well!

Upvotes: 0

Related Questions