Autodesk Vault Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
VB Sample from SDK 2012 does NOT work (for me)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi, I'm trying to test the main VB sample from the SDK 2012, but it does NOT work ;(
For information, my configuration is:
- Windows 7 Entreprise N SP1 64 bits
- Visual Studio 2010 Professional (10.0.30319)
- Vault Professional 2012 SP1
This is what I've done;
- I open the VS solution : C:\Program Files (x86)\Autodesk\Autodesk Vault 2012 SDK\VS9\VB\JobProcessorApiSamples\JobProcessorApiS
- I compile it to : C:\Program Files (x86)\Autodesk\Autodesk Vault 2012 SDK\VS9\VB\JobProcessorApiSamples\bin\Debug
Just one warning about 'bytes', but this is not important.
- I create the folder : C:\Program Files\Autodesk\Vault Professional 2012\Extensions\JobProcessorApiSamples
- In this folder, from ...\Debug, I copy the files :
- JobProcessorApiSamples.dll
- JobProcessorApiSamples.pdb
- JobProcessorApiSamples.xml
- JobProcessorApiSamples.vcet.config
- I edit the file : C:\Program Files\Autodesk\Vault Professional 2012\Explorer\JobProcessor.exe.config
and add the following line :
<jobHandlers>
=> <jobHandler class="MyCompany.File.Publish" handler="JobProcessorApiSamples.FolderPublishJobHa
<jobHandler class="Autodesk.Vault.DWF.Create.iam" handler="Connectivity.Explorer.JobHandlerDwfPublis
- I check the job server feature is enabled.
- I start my VP2012 and reset the menues.
- Right-cliking on a file, i do NOT have the "Queue Publish Job" command. FIRST PROBLEM.
- I start the : C:\Program Files\Autodesk\Vault Professional 2012\Explorer\JobProcessor.exe
and directly I have the JobProcessor.log giving this :
Information 26/04/2012 10:18:34
Application logging subsystem initialized
----------------------------------------
Error 26/04/2012 10:18:34
La valeur ne peut pas être null.
Nom du paramètre : key
Exception: System.ArgumentNullException: La valeur ne peut pas être null.
Nom du paramètre : key
à System.ThrowHelper.ThrowArgumentNullException(Exce
à System.Collections.Generic.Dictionary`2.FindEntry(
à JobProcessor.HandlerManager.LoadHandlerTypes()
----------------------------------------
off course, I do not see my job in the list ;(
Someone can help me to understand where are the problems?
Thanks
Re: VB Sample from SDK 2012 does NOT work (for me)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hello glanard,
I noticed in the steps you describe that you're deploying the extension to "C:\Program Files\Autodesk\Vault Professional 2012\Extensions\JobProcessorApiSamples". If you look at the readme file that is in the same directory as the JobProcessorApiSamples solution, it states that you should deploy the extension to "%programData%\Autodesk\Vault 2012\Extensions\JobProcessorApiSamples", which if you're using Windows Vista/Windows 7 is usually "C:\ProgramData\Autodesk\Vault Professional 2012\Extensions\JobProcessorApiSamples". Please try deploying the extension to that location and let me know how it goes.

Daniel Dulzo
Software Engineer
Autodesk, Inc.
Re: VB Sample from SDK 2012 does NOT work (for me)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi Daniel,
The ProgramData folder exists... but is empty.
In the doubt, I try to manually create the folder structure and deploy the files.
But, the problem is still here.
Am I the only one to work on Seven 64 bits?
Best regards,
Note: The VP2012 installation has been done by default, without any customization.
Re: VB Sample from SDK 2012 does NOT work (for me)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Well, I tested the 'Load Tester' from Doug, and the result is:
![]()
I will try to uninstall and reinstall VP2012 Client in ProgramData...
If it is this, it's not normal.
Re: VB Sample from SDK 2012 does NOT work (for me)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I wouldn't suggest reinstalling the Vault Professional client. Vault Explorer should stay installed, with all of it's program files in the Program Files location that it defaults to. Only your extension should be deployed to "C:\ProgramData\Autodesk\Vault 2012\Extensions" as described in the readme file. This folder is not created during the Vault Explorer install and will not exist until you deploy and extension and create it yourself. The error you're seeing in the Load Tester means that you have deployed your extension to the wrong location. All of the files from the sample's bin directory should be copied to "C:\ProgramData\Autodesk\Vault 2012\Extensions\JobProcessorApiSamples". You should create this folder structure if it does not already exist.

Daniel Dulzo
Software Engineer
Autodesk, Inc.
Re: VB Sample from SDK 2012 does NOT work (for me)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hello,
I have created manually the folder structure, first in order to be able to use the 'Load Tester':
Note that 'Vault Professional 2012' instead of 'Vault 2012' is not accepted.
When I start my Vault Client, I got this error:
And if I try the JobProcessor.exe, this one:
Well, it's better...
Any Idea?
Thanks.
Re: VB Sample from SDK 2012 does NOT work (for me)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Considering you are already using the Load Tester, I assume you've already found this article: http://justonesandzeros.typepad.com/blog/2011/05/e
Another thing that you might not be aware of it that you have to deploy all the depedencies for your extension alongside it in it's extension folder. This includes some of the DLL's that are part of the SDK. More information on what DLL's to deploy can be found here: http://justonesandzeros.typepad.com/blog/2011/10/w

Daniel Dulzo
Software Engineer
Autodesk, Inc.
Re: VB Sample from SDK 2012 does NOT work (for me)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Are you sure that c:\programdata is empty? It's a Windows System folder.
If you type in Windows Explorer %programdata% which folder is displayed?
Re: VB Sample from SDK 2012 does NOT work (for me)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I've the same problem with Vault Collaboration 2013.
I get the same error message: "...TypeLoadException" but tryied with the sample provided with the SDK and that worked.
There's a way to log all the callstack for example?
thank you anyone
Re: VB Sample from SDK 2012 does NOT work (for me)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi m.sabotto,
If you're using the 2013 SDK, there is a new feature available that allows you to turn on error logging for extension loading. You can find more information about it on Doug's blog here: http://justonesandzeros.typepad.com/blog/2012/07/e
Regards,
Dan

Daniel Dulzo
Software Engineer
Autodesk, Inc.


