Click here to Skip to main content
15,916,835 members
Home / Discussions / C#
   

C#

 
GeneralDataTable Suggestion Please [modified] Pin
doubleas238015-Jan-08 5:09
doubleas238015-Jan-08 5:09 
GeneralRe: DataTable Suggestion Please Pin
Not Active15-Jan-08 5:37
mentorNot Active15-Jan-08 5:37 
Generalremoting and window service Pin
poqeqw15-Jan-08 4:41
poqeqw15-Jan-08 4:41 
GeneralRe: remoting and window service Pin
led mike15-Jan-08 4:46
led mike15-Jan-08 4:46 
Generalcustome Components Icon Pin
Abhijit Jana15-Jan-08 4:00
professionalAbhijit Jana15-Jan-08 4:00 
GeneralRe: custome Components Icon Pin
Judah Gabriel Himango15-Jan-08 11:27
sponsorJudah Gabriel Himango15-Jan-08 11:27 
GeneralRe: custome Components Icon Pin
Abhijit Jana15-Jan-08 18:11
professionalAbhijit Jana15-Jan-08 18:11 
GeneralEditing and Printing an word document Pin
Matjaz-xyz15-Jan-08 3:57
Matjaz-xyz15-Jan-08 3:57 
GeneralRe: Editing and Printing an word document Pin
martin_hughes15-Jan-08 4:12
martin_hughes15-Jan-08 4:12 
GeneralRe: Editing and Printing an word document Pin
Matjaz-xyz15-Jan-08 4:42
Matjaz-xyz15-Jan-08 4:42 
QuestionMonthCalendar Pin
Scotty15-Jan-08 3:14
Scotty15-Jan-08 3:14 
GeneralRe: MonthCalendar Pin
Pete O'Hanlon15-Jan-08 3:43
mvePete O'Hanlon15-Jan-08 3:43 
GeneralRe: MonthCalendar Pin
Scotty15-Jan-08 3:58
Scotty15-Jan-08 3:58 
Generaldownloading a file from an url to the server Pin
I Never Look Behind15-Jan-08 3:00
I Never Look Behind15-Jan-08 3:00 
GeneralRe: downloading a file from an url to the server Pin
Not Active15-Jan-08 3:15
mentorNot Active15-Jan-08 3:15 
GeneralCan't find XML file Error Pin
NewToAspDotNet15-Jan-08 1:22
NewToAspDotNet15-Jan-08 1:22 
Hi guys,
this is the situation:
-i use a OpenFileDialog to get .doc files
-the file wil be saved into sql server table
-with a another button i can load that file from sql and open it with MS Word.
-the file wil also be saved in a directory on the disk. where to save? the path wil be read from config.xml that is located on the 'release' folder of the application(by loading of the form).

the problem:
- when u load the form for the first time, it works fine.
- bud the second time i dont know why bud the app trys to load the config.xml from the folder where i got my .doc file.

for example suppose that the last time i got a .doc from My Documents folder then i get the error:
Can't find C:\Documents and Settings\Me\My Documents\Config.xml
if from C:\ :
Can't find C:\Config.xml



bud the config.xml is located on release folder and this is the code to load the xml:

XmlDocument configfile = new XmlDocument();<br />
configfile.Load("Config.xml");


anyone a idea how to solve this?
GeneralRe: Can't find XML file Error Pin
Luc Pattyn15-Jan-08 1:32
sitebuilderLuc Pattyn15-Jan-08 1:32 
GeneralRe: Can't find XML file Error Pin
NewToAspDotNet15-Jan-08 2:36
NewToAspDotNet15-Jan-08 2:36 
GeneralRe: Can't find XML file Error Pin
Luc Pattyn15-Jan-08 2:55
sitebuilderLuc Pattyn15-Jan-08 2:55 
GeneralRe: Can't find XML file Error Pin
NewToAspDotNet15-Jan-08 3:13
NewToAspDotNet15-Jan-08 3:13 
GeneralRe: Can't find XML file Error Pin
Pete O'Hanlon15-Jan-08 3:47
mvePete O'Hanlon15-Jan-08 3:47 
GeneralRe: Can't find XML file Error Pin
Luc Pattyn15-Jan-08 3:56
sitebuilderLuc Pattyn15-Jan-08 3:56 
GeneralRe: Can't find XML file Error Pin
Pete O'Hanlon15-Jan-08 4:28
mvePete O'Hanlon15-Jan-08 4:28 
GeneralRe: Can't find XML file Error Pin
benjymous15-Jan-08 1:36
benjymous15-Jan-08 1:36 
General.Net Remoting Pin
El'Cachubrey15-Jan-08 0:51
El'Cachubrey15-Jan-08 0:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.