0

I used this code to open SPfarm 2010 :

SPFarm.Open(builder, log, secureStr); 

but this exception shows up:

Obsolete. Use the Open() method that takes a passphrase. 

I didint inderstande what dose it mean or how to resolve it . i found this link : http://msdn.microsoft.com/en-us/library/office/ms196945(v=office.15).aspx

1

Imen,

If you look at the below:
SPFarm.Open method

You can use the first two Open Methods.. The rest of the two are Obsolete.

  • It works, thanks Arsalan Adam Khatri, you need to enter a Passphrase – Imen Turki Apr 8 '14 at 12:55
1

You are using 3 parameters in open which is Obsolete. use only 2 parameters inside open

SPFarm.Open(builder, secureStr); 
  • 1
    It works, thanks Ashish, you need to enter a Passphrase – Imen Turki Apr 8 '14 at 12:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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