View Single Post
Old December 10th, 2010, 06:35 PM
bberrevoets bberrevoets is offline
Registered User
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts


It is working perfectly, because the code you write (if you follow the book) Rewrite the config file everytime the service start.

And yes, you need the InitialStatePartner in the code, if you want to force the path of the config file, leave out the configfile in the manifest. and write something ike the following.

[InitialStatePartner(Optional = true, ServiceUri = @"Owner\\Config\\ServiceB.config.xml")]
private ServiceBState _state = new SericeBState();
Now the config file will be saved in :
C:\Documents and Settings\owner\Microsoft Robotics Dev Studio 2008 R3\Owner\Config

I hope i was clear because english is not my language