1) I would go for storing the location in the web.config. You can create a
setup package that alters the web.config while installing the app. No user
interaction is needed.
2) I think you better post this question in a compact framework newsgroup...
Another question, are you planning to run web services on a desktop pc?
--
Greetz
Jan
________________
Read my weblog:
http://weblogs.asp.net/jan
"Jay" <> schreef in bericht
news:...
> Hello,
>
> I have Windows Forms application which uses MS Access Database and a
Pocket
> PC application which uses Datasets, Iam trying to pass Datasets between
> these applications using WebServices. Both these applications are shrink
> wrapped so they need to perform with little user configuration
>
> WebService/IIS is running on the computer having the Windows Application
and
> Pocket PC connectss to the webservice through Active Sync.
>
> Iam trying to accomplish following task and am breaking my head over it-
>
> 1. How does the Webservice know where the MS Access Database is present.
ie
> How will the windows application let webservice know the location of the
MS
> Access database?
> * I thought of registry but WebService might not have permission to read
> it.
> * I thought of saving an xml file in wwwroot but it could be read only.
> * Web.config solution is not possible because end user is not very
computer
> savvy, so every time MS Access database changes its path Web.config needs
to
> chnage.
> * Finally I thought of Web Cache. But evertime user restarts his computer
> cache might get over written.
> Any other workable suggestions?
>
> 2. When application starts up in the pocket pc, how will it find the name
of
> the host computer to get to the location of the webservice? Since the
> client's computer name is not known in advance, can pocket pc application
> find it other than entering the name manually.
>
> Thanks a lot.
> Jay
>
>