Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

SQL Server 2005 : CREATE ASSEMBLY error 6218

  • 09-06-2005 01:59PM
    #1
    Registered Users, Registered Users 2 Posts: 1,430 ✭✭✭


    I'm trying to add a fairly simple assembly to SQL server 2005; but keep getting a message:
    6218 : Assembly 'EnableIrelandSystem' failed verification, run peverify on the assembly.

    So - the only thing remotely controversial in th eassembly is a reference to System.Runtime.Interopservices (for StructLayout ).

    Any ideas?


Comments

  • Registered Users, Registered Users 2 Posts: 640 ✭✭✭Kernel32


    I haven't used SQL 2005 yet but done some reading. If memory serves me there are three trust levels for assemblies. Safe, trusted and unsafe, something like that. Safe assemblies have limited scope and are the default I think. Now my guess is your assembly isn't safe, if it can use interop services it can use COM components and do all sorts of nasty things. So I would think you need to add the assembly with some sort of parameter saying its not trusted. PEverify is a tool that verifys if an assembly is safe, yours is not safe but you are trying to add it as a safe assembly.


  • Registered Users, Registered Users 2 Posts: 1,430 ✭✭✭Merrion


    Sounds reasonable, thanks.


Advertisement