0

I am using SPSS .NET interop library to export data to SAV file.

I get error

System.TypeInitializationException was caught HResult=-2146233036 Message=The type initializer for 'Spss.SpssThinWrapper' threw an exception. Source=Spss TypeName=Spss.SpssThinWrapper

InnerException: System.DllNotFoundException HResult=-2146233052 Message=C:\inetpub\wwwroot\wss\VirtualDirectories\80\bin\win64\spssio64.dll not found.

Sharepoin can't found external dll although it exists in that location.

How can I use this kind of libraries with SharePoint projects?

Any advice or suggestions will be highly appreciated

5
  • Are you sure that you have deployed those libraries to all servers?
    – luccio
    Feb 4, 2015 at 11:41
  • Yes I'm sure. I don't know why spss.dll cannot found dependant dlls.
    – user7
    Feb 4, 2015 at 11:46
  • Check the permissions on the folder tree to the dll. First I would try with Everyone Full Control to the entire path, then strengthen the security step by step if it works. Are you sure this dll has no other external dependencies? I would also enable the Fusion log to see if their are some other problems with the managed dlls (see hanselman.com/blog/…)
    – pholpar
    Feb 4, 2015 at 21:02
  • @pholpar, your answer helped me. I changed permissions to bin folder. Thanks!
    – user7
    Feb 5, 2015 at 9:33
  • I'm glad, that it helped. Then I post it as answer, so you can accept it as a solution to your question.
    – pholpar
    Feb 5, 2015 at 12:03

1 Answer 1

0

Check the permissions on the folder tree to the dll. First I would try with Everyone Full Control to the entire path, then strengthen the security step by step if it works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.