Click here to Skip to main content
15,301,414 members
Home / Discussions / C#
   

C#

 
AnswerRe: problem with custom serialization in .net 2.0 Pin
Paul Unsworth31-Dec-09 2:00
MemberPaul Unsworth31-Dec-09 2:00 
AnswerRe: problem with custom serialization in .net 2.0 Pin
Abhinav S31-Dec-09 3:14
MemberAbhinav S31-Dec-09 3:14 
GeneralRe: problem with custom serialization in .net 2.0 Pin
prasadbuddhika31-Dec-09 19:14
Memberprasadbuddhika31-Dec-09 19:14 
Question"The path is not of a legal form." on trying to start the service created in c# Pin
sri_346431-Dec-09 0:25
Membersri_346431-Dec-09 0:25 
AnswerRe: "The path is not of a legal form." on trying to start the service created in c# Pin
Rob Philpott31-Dec-09 0:42
MemberRob Philpott31-Dec-09 0:42 
AnswerRe: "The path is not of a legal form." on trying to start the service created in c# Pin
Keith Barrow31-Dec-09 0:46
professionalKeith Barrow31-Dec-09 0:46 
GeneralRe: "The path is not of a legal form." on trying to start the service created in c# Pin
sri_346431-Dec-09 0:52
Membersri_346431-Dec-09 0:52 
GeneralRe: "The path is not of a legal form." on trying to start the service created in c# Pin
Keith Barrow31-Dec-09 1:09
professionalKeith Barrow31-Dec-09 1:09 
You need to set

this.FileTransferWatcher.Path = "D:\\Test\\";

before this

FileTransferWatcher.EnableRaisingEvents = true;

As the inital path of a FileSystemWatcher is an empty string.

Also, as a side note, hardcoding the paths in magic strings isn't a good plan (though obviously the code posted is, by definition, unfinished). I'd also move out the FileWatcher/Transfer code into a separate class that deals with this and let the service just handle the service related stuff.

The other thing is, if you can, I'd run this as a console app and then convert it into a service later as debugging services is trickier.

CCC solved so far: 2 (including a Hard One!)
37!?!! - Randall, Clerks

GeneralRe: "The path is not of a legal form." on trying to start the service created in c# Pin
sri_346431-Dec-09 3:24
Membersri_346431-Dec-09 3:24 
GeneralRe: "The path is not of a legal form." on trying to start the service created in c# Pin
0x3c031-Dec-09 2:25
Member0x3c031-Dec-09 2:25 
GeneralRe: "The path is not of a legal form." on trying to start the service created in c# Pin
Thomas Krojer31-Dec-09 3:05
MemberThomas Krojer31-Dec-09 3:05 
Questionproblem with RSS feed - pubDate Pin
CrimeanTurtle200831-Dec-09 0:16
MemberCrimeanTurtle200831-Dec-09 0:16 
AnswerRe: problem with RSS feed - pubDate [modified] Pin
ProtoBytes31-Dec-09 3:48
MemberProtoBytes31-Dec-09 3:48 
QuestionInternet explorer HTTP Authentication - sending or storing headers Pin
Vijayanand Settin30-Dec-09 23:32
MemberVijayanand Settin30-Dec-09 23:32 
AnswerRe: Internet explorer HTTP Authentication - sending or storing headers Pin
Sipder31-Dec-09 1:40
MemberSipder31-Dec-09 1:40 
GeneralRe: Internet explorer HTTP Authentication - sending or storing headers Pin
Vijayanand Settin4-Jan-10 1:36
MemberVijayanand Settin4-Jan-10 1:36 
QuestionSpelling checker Pin
linatta30-Dec-09 23:00
Memberlinatta30-Dec-09 23:00 
AnswerRe: Spelling checker Pin
Ravi Bhavnani31-Dec-09 16:34
professionalRavi Bhavnani31-Dec-09 16:34 
GeneralRe: Spelling checker Pin
linatta31-Dec-09 21:02
Memberlinatta31-Dec-09 21:02 
Questionfacing problems with Dictonary object Pin
yadlaprasad30-Dec-09 22:34
Memberyadlaprasad30-Dec-09 22:34 
AnswerRe: facing problems with Dictonary object Pin
Abhinav S30-Dec-09 22:56
MemberAbhinav S30-Dec-09 22:56 
AnswerRe: facing problems with Dictonary object Pin
OriginalGriff31-Dec-09 1:36
mveOriginalGriff31-Dec-09 1:36 
Questiongraphic Pin
jartrini30-Dec-09 22:14
Memberjartrini30-Dec-09 22:14 
QuestionFile Problem in VISTA Pin
Wamuti30-Dec-09 21:31
MemberWamuti30-Dec-09 21:31 
AnswerRe: File Problem in VISTA Pin
Rob Philpott30-Dec-09 21:45
MemberRob Philpott30-Dec-09 21:45 

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.