Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Softimage® / XSI SDK / c# plug-ins and workgroups trouble..
  RSS 2.0 ATOM  

c# plug-ins and workgroups trouble..
Rate this thread
 
30103
 
Permlink of this thread  
avatar
  • RedBjarne
  • Posted: 01 September 2008 09:12 PM
  • Location: Copenhagen
  • Total Posts: 50
  • Joined: 22 February 2008 02:47 AM

Hi there

I seem to have some trouble sharing my plugins with my colleagues using workgroups.
I have created a workgroup and copied my .dll’s there (c# plugins). The plugins load fine on my own machine but on the other machines I get the following error:

‘ ERROR : 2262 - This plug-in could not be loaded:

This only applies to compiled plugins, jScript and python scripts load just fine.
Am I doing something wrong here?

Cheers
Jacob



Replies: 0
avatar

I think it is a .NET security issue.
Sorry, that’s all I got...I’m still trying to find the answer myself.



Replies: 0
avatar
  • RedBjarne
  • Posted: 01 September 2008 11:25 PM

do you know of any workarounds (apart from distributing the plugins directly to the other machines)?



Replies: 0
avatar
  • mantom
  • Posted: 02 September 2008 06:30 AM

[quote=RedBjarne;10290]do you know of any workarounds (apart from distributing the plugins directly to the other machines)?

We had that problem with realtime shaders.  Make sure the workgroup .dll path is defined in the user’s PATH environment variable.



Replies: 0
avatar

It is .NET policy issue, the assembly (plugin) needs to be located by the .net runtime in the gac....

1) create a strong name key for the assembly
- in devenv open c# project properties and go to ‘Signing’ tab
- check ‘Sign the assembly’ and enter a strong name key file (select <New...> in listbox)
- recompile

2) add the assembly to the GAC
e.g.
C:\>gacutil /i \\server\example\workgroup\Application\Plugins\CSharpScripting.dll



Replies: 0
avatar
  • RedBjarne
  • Posted: 18 September 2008 09:24 PM

Thanks for the reply but unfortunately it does not work for me.

I am compiling the plugins on my workmachine and the copies them to a central server, can this be part of the issue?



Replies: 0