Re: More help with assignment

Well my VC# 2008 is on the C drive yet my projects are stored on the D drive and VC# knows about it. It's even pointing to the correct location but the error is still there.


--
Chris Hallsworth
E-mail: christopherh40@xxxxxxxxxxxxxx
MSN: ch9675@xxxxxxxxxxx
Skype: chrishallsworth7266
Klango: chrishallsworth

--------------------------------------------------
From: "RicksPlace" <ofbgmail@xxxxxxxxx>
Sent: Wednesday, August 05, 2009 12:18 AM
To: <programmingblind@xxxxxxxxxxxxx>
Cc: "RicksPlace" <ofbgmail@xxxxxxxxx>
Subject: Re: More help with assignment

Hi Chris:
I found this Question Answer Forum that talks about what sounds like the same problem you are having. I had trouble running vb.net or CSharp from my d drive back in 2004 or 2005 and just loaded and ran it ever since in my c drive but I don't know if that has anything to do with your problem. anyway, here is the url to the forum. read it and see if any of the comments or solutions apply to your situation.
Note it is a long url so it might wrap.
BeginCopiedUrl:
http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/1a89d2df-0c57-4bb2-8c1a-b619e6cbb065
EndCopiedURL:
Rick
----- Original Message ----- From: "RicksPlace" <ofbgmail@xxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Tuesday, August 04, 2009 6:51 PM
Subject: Re: More help with assignment


Hi Chris: I thought that would have done the trick, it was one problem. I notice your file path is off the d drive. did you download the CSharp Express onto the d drive or is your project just stored there. ----- Original Message ----- From: "Chris Hallsworth" <christopherh40@xxxxxxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Tuesday, August 04, 2009 6:01 PM
Subject: Re: More help with assignment


Ok, I'll give you the exact error message. I've this time created a new project with the title having absolutely no spaces. Here's the message:
"Microsoft Visual C# 2008 Express Edition
Visual Studio cannot start debugging because the debug target graphic 775 'D:\Downloads\Documents\DockingPort\DockingPort\DockingPort\bi
n\Debug\DockingPort.exe' is missing. Please build the project and
retry, or set the OutputPath and AssemblyName properties
appropriately to point at the correct location for the target
assembly.
OK "
Hope this helps, and thanks in advance for looking into it further.
--
Chris Hallsworth
E-mail: christopherh40@xxxxxxxxxxxxxx
MSN: ch9675@xxxxxxxxxxx
Skype: chrishallsworth7266
Klango: chrishallsworth

--------------------------------------------------
From: "RicksPlace" <ofbgmail@xxxxxxxxx>
Sent: Tuesday, August 04, 2009 5:17 PM
To: <programmingblind@xxxxxxxxxxxxx>
Subject: Re: More help with assignment

I was thinking about tthis last night. I was wondering how you named the project when you created it. You were likely asked for a path and a name for the project. If you had a space embedded in the name when you created the project the project name when compiled might contain a space and your concatenated name would not match up with what the build is working with. The problem would also be that if you left the space in then the name of the executable would be invalid since a filename can not contain spaces. Check out the name of the project. If it has spaces you might have to ReCreate the project, you might be able to copy some of the stuff from this project to the new one but perhaps not if they reference the project name. I don't know your project but this is just a guess as to how you got a space in the executable file name in the first place when the project was built. If the project is really large let me know and I will see if I can come up with something if you find out that this is the problem. If you have an instructor ask him if having a space in the Project Name would make a diference and how to fix it if that is the problem. He might have a better idea.
Rick USA
----- Original Message ----- From: "Chris Hallsworth" <christopherh40@xxxxxxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Tuesday, August 04, 2009 10:48 AM
Subject: More help with assignment


Hello all,
I'm still having problems with my assignment in Visual C# 2008 Express
Edition. First of all, please look at the code below and see why, when I run it, nothing but "Press any key to continue" is displayed. Also, When I debug the program, I'm now told that the version of DockingPort.exe that should be in the debug folder is missing. Please advise on what I should do next. Now
here is the code:

-- start of code--
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DockingPort
{
   class Program
   {
       static void Main(string[] args)
       {
       char CostAgent(int){
Console.WriteLine("enter the vessel type and press enter");
       Char VesselType=Console.ReadLine();
If(VesselType=="o"){
   Return 1;}
       else If(VesselType=="c"){
           Return 4;}
       else If(VesselType=="r"){
           Return 2;}
       else If(VesselType=="b"){
           Return 1;}
       else If(VesselType=="p"){
           Return 2;}
       else If(VesselType=="f"){
           Return 1;}
           else{
           Console.WriteLine("Invalid vessel type, please try again");
       Console.ReadLine();
           }
       }
   char FreightAgent(int){
       Console.WriteLine("enter the vessel type and press enter");
       Char VesselType=Console.ReadLine();
       If(VesselType=="o"){
           Return 1;}
       else If(VesselType=="c"){
           Return 6;}
       else If(VesselType=="r"|"b"){
           Return 2;}
       else If(VesselType=="p"|"f"|){
           Return 1;}
              else{
           Console.WriteLine("Invalid vessel type, please try again");
   Console.ReadLine();}
   }
   char MarineSafetyInspector(int){
       Console.WriteLine("enter the vessel type and press enter");
       Char VesselType=Console.ReadLine();
       If(VesselType=="o"){
           Return 3;}
       else If(VesselType=="c"){
           Return 2;}
       Else If(VesselType=="r"|"b"){
           Return 1;}
       else If(VesselType=="p"){
           Return 2;}
       else If(VesselType=="f"){
           Return 1;}
       else{
           Console.WriteLine("Invalid vessel type, please try again");
       Console.ReadLine();}
   }
   Void StaffAttendance(){
Console.WriteLine("Enter the vessel type and press enter");
               Char VesselType=Console.ReadLine();
       If(VesselType=="o"|"c"|"r"|"b"|"p"|"f"){
           Console.WriteLine("Cost agents ="+CostAgent());
           Console.WriteLine("Freight Agents="+FreightAgent());
           Console.WriteLine("Marine Safety
Inspectors="+MarineSafetyInspector());}
       else{
                   Console.WriteLine("Invalid vessel type, please try
again");
       Console.ReadLine();}
   }
       }
   }
}
--End of code--

Thanks for the help in this matter.

--
Chris Hallsworth
E-mail: christopherh40@xxxxxxxxxxxxxx
MSN: ch9675@xxxxxxxxxxx
Skype: chrishallsworth7266
Klango: chrishallsworth
__________
View the list's information and change your settings at http://www.freelists.org/list/programmingblind



__________
View the list's information and change your settings at http://www.freelists.org/list/programmingblind

__________
View the list's information and change your settings at http://www.freelists.org/list/programmingblind



__________
View the list's information and change your settings at http://www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at http://www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at http://www.freelists.org/list/programmingblind

Other related posts: