SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've created a fulltrust proxy:

string assembly = "FullTrustProxyExecise1, Version=, Culture=neutral, PublicKeyToken=21621f0ea660fe24";
string type = "FullTrustProxyExecise1.WSCreatorProxy";
WSCreatorProxyArgs args = new WSCreatorProxyArgs();
args.Filename = filename;
args.Siteurl = siteurl;
string url=(string) SPUtility.ExecuteRegisteredProxyOperation(assembly, type, args);
return url;

This however gives an Exception:

"Operation is not valid due to the current state of the object."

I've checked with PowerShell if the proxy is available, it is.

Hints anyone ?

share|improve this question
Okay Andrey, thank you for the reminder. – Dre Jun 15 '12 at 8:54
Am facing same issue, Have you got the solution, Please share me if you have.its very urgent for us. thanks, Balaram – user11659 Oct 27 '12 at 14:37
I'm having the same problem - were u able to resolve it? – user14924 Feb 14 '13 at 22:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.