Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 10th, 2008, 10:20 PM   #1
iEngage
Newbie
 
iEngage's Avatar
 
Join Date: May 2008
Location: teh interwebz
Posts: 22
Rep Power: 0 iEngage is on a distinguished road
Help with error please...

I'm getting the error: "Error 1 The type or namespace name 'Process' does not exist in the namespace 'System.Diagnostics' (are you missing an assembly reference?) C:\Documents and Settings\<name>\My Documents\Visual Studio 2005\Projects\coLinuxLauncher\coLinuxLauncher\coLinuxLauncher.cs 11 32 coLinuxLauncher"

Yet I'm pretty sure I didn't make a mistake... i have the .NET Framework 2.0 and the SDK for the same.. any ideas?

C# Syntax (Toggle Plain Text)
  1. using System;
  2. using System.Diagnostics;
  3.  
  4. namespace coLinuxLauncherYo
  5. {
  6.  
  7. class coLinuxLauncher
  8. {
  9. static void Main()
  10. {
  11. Process colinux = new Process();
  12.  
  13. colinux.StartInfo.Filename = "colinux-daemon.exe";
  14. colinux.StartInfo.Arguments = @"@xubuntu\xubuntu-8.04.txt";
  15. colinux.StartInfo.WorkingDirectory = @"C:\coLinux";
  16.  
  17. colinux.Start();
  18. }
  19. }
  20. }

EDIT: I know that the Process class does in fact exist in System.Diagnostics because it's in the MSDN here
__________________
iEngage
iEngage is offline   Reply With Quote
Old Jun 10th, 2008, 10:50 PM   #2
ghg5
Newbie
 
Join Date: Apr 2008
Location: flagstaff az
Posts: 18
Rep Power: 0 ghg5 is on a distinguished road
Re: Help with error please...

You may need to manually add the reference to the project...also file path's in c# need two backslashes instead of one (for your working directory and arguments.)
ghg5 is offline   Reply With Quote
Old Jun 10th, 2008, 11:30 PM   #3
iEngage
Newbie
 
iEngage's Avatar
 
Join Date: May 2008
Location: teh interwebz
Posts: 22
Rep Power: 0 iEngage is on a distinguished road
Re: Help with error please...

ah yes now it works... ty... I have never had to manually add the reference to my project before but now I know for in the future..

and I put the '@' in front of my strings so i didn't have to do the double backslash

Thanks for the help!
__________________
iEngage
iEngage is offline   Reply With Quote
Old Jun 11th, 2008, 12:20 AM   #4
ghg5
Newbie
 
Join Date: Apr 2008
Location: flagstaff az
Posts: 18
Rep Power: 0 ghg5 is on a distinguished road
Re: Help with error please...

oh yeah I apologize, Its been a long day and I am spacing out a bit.
ghg5 is offline   Reply With Quote
Old Jun 11th, 2008, 2:10 PM   #5
iEngage
Newbie
 
iEngage's Avatar
 
Join Date: May 2008
Location: teh interwebz
Posts: 22
Rep Power: 0 iEngage is on a distinguished road
Re: Help with error please...

Quote:
Originally Posted by ghg5 View Post
oh yeah I apologize, Its been a long day and I am spacing out a bit.
hehe it's all good.. we've all been there
__________________
iEngage
iEngage is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:57 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC