Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Setup / November 2004

Tip: Looking for answers? Try searching our database.

no touch deployment and reading a XML file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ALI-R - 30 Nov 2004 00:07 GMT
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
Steve Bugden - 30 Nov 2004 19:11 GMT
Hi Ali,

Server.MapPath ?

Alternatively you could put the xml file into isolated storage.

Steve.

> Hi,,
> Is there somebody who can answer my question about this machanism.
[quoted text clipped - 14 lines]
>
> ALI
ALI-R - 30 Nov 2004 20:13 GMT
oh my god,Isolated storage is exactly what I am looking for.Thans very much
for your notification.
ALI
> Hi Ali,
>
[quoted text clipped - 16 lines]
> > "http:\myserver\test".
> > string

strAppPath=Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase).R
> > eplace(@"file:\","");
> >
> > Thanks in advance for your time.
> >
> > ALI

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.