No touch deployment

  • Thread starter Thread starter ALI-R
  • Start date Start date
A

ALI-R

Hi,,
Is there somebody who can answer my question about this machanism.

I have an application which calls a webservice to get current time and date
( simple).
I have put these two on the server and client requests this application
through IE (No touch deployment) .everything is fine .
My problem is that in my application I read some settings from an xml file
and I don't know how to get the application path on the server ,I am using
the following statement but it returns an strange path like
"http:\myserver\test".
string
strAppPath=Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase).R
eplace(@"file:\","");

Thanks in advance for your time.



ALI
 
Hello ALI-R,

So the XML file exists on the web server? Can't you create a WebMethod that
returns something like Settings object that has all the properties for your
app settings?
 
I will give it a try,sounds like a good idea,,
I will let you know.how about files like icons and picures ,what I should do
with them ,samething you think?
 
Sorry,No I can't do that because the name of the server on which the
webservice is ,is also one of the elements in the setting file.
it must be in the application directory ,there must be a way to get a hold
of the directory which application is loading from
 
Back
Top