updating vault plugin to 2012

updating vault plugin to 2012

Anonymous
Not applicable
1,558 Views
6 Replies
Message 1 of 7

updating vault plugin to 2012

Anonymous
Not applicable

I have followed the instructions in the video on the ones and zeros website for upgrading my vault plug-in to 2012. However when I launch vault, I just get the generic error:  "Error loading extension Camlink".  Any idea where to start looking?

  Just a few questions yet too.   The video did not say anything about compiling for .Net framework 4.0 instead of 3.5 but I suppose I need to do that. When I changed that I also had to add a few dll references that the video didn't mention.

 

Also, I didn't change my webservices code, I assumed the old code is still supported, did I assume wrong?

public void OnLogOn(IApplication application)
        {
            mDocSvc = new DocumentService();
            mDocSvc.Url = application.VaultContext.RemoteBaseUrl + "DocumentService.asmx";
            mDocSvc.SecurityHeaderValue = new Autodesk.Connectivity.WebServices.DocumentSvc.SecurityHeader();
            mDocSvc.SecurityHeaderValue.Ticket = application.VaultContext.Ticket;
            mDocSvc.SecurityHeaderValue.UserId = application.VaultContext.UserId;
        }

        public void OnLogOff(IApplication application)
        {
            mDocSvc = null;
        }

 

 

0 Likes
Accepted solutions (1)
1,559 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable

I forgot to mention that I am using Visual Studio Express and do not have the option to generate a guid. I used the online generator found here. Could this be part of my problem?

0 Likes
Message 3 of 7

Redmond.D
Autodesk
Autodesk

This article should help you troubleshoot the problem:

http://justonesandzeros.typepad.com/blog/2011/05/extension-deployment-checklist.html

 



Doug Redmond
Software Engineer
Autodesk, Inc.

0 Likes
Message 4 of 7

Anonymous
Not applicable

Thanks Doug, I followed all those instructions, I do get a different error now that i'm compiling for .net v3.5 again. Now I am getting this error:

 

The source code is exactly the same as what I was running under 2011, with the exception of the modifications to the assembly attributes, etc.

 

 

0 Likes
Message 5 of 7

Anonymous
Not applicable

Also for some reason when I try to run you load tester I get this error:

0 Likes
Message 6 of 7

Redmond.D
Autodesk
Autodesk
Accepted solution

The multiple IExtension error is probably the main issue.  Check your project to make sure that there is 1 and only 1 class that implements IExtension.

The Vault API has never supported multiple implementations if IExtension, but the check may have been added in Vault 2012.  Vault 2011 probably picked the first one and used it, which is bad behavior because you never know for sure what the "first one" will be.



Doug Redmond
Software Engineer
Autodesk, Inc.

0 Likes
Message 7 of 7

Anonymous
Not applicable

Thanks Doug, I was inheriting my main class so I could access some variables I had defined in it. I learned programming in C++ where I could define global variables and need to figure out the proper way to do it in c sharp.

0 Likes