Works for me :) This is what I tried:
var netTcpBinding = new NetTcpBinding {
MaxReceivedMessageSize = 2147483647,
ReaderQuotas = new XmlDictionaryReaderQuotas {
MaxStringContentLength = 2147483647,
MaxArrayLength = 2147483647
}
};
var remoteAddress = new EndpointAddress("net.tcp://localhost:2660/CoreService/2011/netTcp");
using (var client = new SessionAwareCoreServiceClient(netTcpBinding, remoteAddress)) {
ReadOptions readOptions = new ReadOptions();
ComponentData component = client.Read("tcm:21-990", readOptions) as ComponentData;
Console.WriteLine("ComponentData: " + component.Title);
}
Using the code above, I executed it on several Components:
- new Component in workflow (with and without
-v0
at the end of the TCMURI);
- existing Component in Workflow (with and without
-v0
);
- new Component not in workflow;
- existing Component not in workflow;
I did execute the code as administrator and the Components in question were used by me. Maybe your case is different? and Maybe that could be the problem?