v21 error

Topics: Troubleshooting
Apr 21, 2011 at 12:10 AM

Prior to version 21 i was able to run this code with no issue.

OpenIDs ds = DataFacade.GetData<OpenIDs>().Where(o => o.Url == claimedIdentifier).FirstOrDefault();

Now i am getting an error

ThreadDataManager hasn't been initialized in the current thread. You probably have forgotten to use Composite.Core.Threading.ThreadDataManager.EnsureInitialize() call on a custom created thread.

There us a difference in the webservice creation.

Instead of creating a regular webservice i created a WCF service.

Could this be the issue or is there another call i should make to as error suggest.

I will create a regular service to see if that will work but would like to use the WCF service instead.

Thanks in advance for the reply.

Minh

Coordinator
Apr 21, 2011 at 12:43 AM

Believe or not, but googling for "ThreadDataManager hasn't been initialized in the current thread" gives the right links

Link to the documentation site: http://docs.composite.net/C1/Data/DataFAQ.aspx?q=What+does+%22ThreadDataManager+hasn't+been+initialized...%22+exception+mean%3F

Link to a similar discussion: http://compositec1.codeplex.com/discussions/250644