Error running starthere.bat

Jun 9, 2008 at 3:18 AM
I get this error. I have all the frameworks installed.

DependencyViewControl.cs(118,23): error CS1061: 'Shell32.ShellClass' does not contain a definition for 'ShellExecute' and no extension method 'ShellExecute' accepting a first argument of type 'Shell32.ShellClass' could be found (are you missing a using directive or an assembly reference?)
An Error Occured building the DinnerNow Dependency Checker
The Dependency checker requires the .net framework 2.0 to be installed.
NOTE: You should also run the dependency checker from an Elevated Command Prompt.
Jun 9, 2008 at 3:37 PM
I think you are probably running on a Vista machine...

Did you try running the depedency checker from Elevated Command prompt as the last line of your error suggests?

I Used the following link
http://informationweek.com/story/showarticle.jhtml?articleID=207801611
option 3, to create a cmd window that runs from elevated command prompt.
Jun 9, 2008 at 3:52 PM
I think you are probably running on a Vista machine...

Did you try running the depedency checker from Elevated Command prompt as the last line of your error suggests?

I Used the following link
http://informationweek.com/story/showarticle.jhtml?articleID=207801611
option 3, to create a cmd window that runs from elevated command prompt.
Jun 10, 2008 at 12:58 AM

I am running XP and logged in as the administrator.
Jul 1, 2008 at 12:01 AM
I'm getting the exact same error on XP running as admin.
Dec 26, 2008 at 5:56 AM
Same exact issue here using XP Pro logged in as an Administrator.

Does this not work with Windows XP?
Jan 5, 2009 at 6:08 AM
I'm getting the same error on Vista. I have instaled Visual Studio Express 2005 and 2008 with framework 2 SP2 and 3.5 SP1
Jan 6, 2009 at 7:46 PM
I just went into the file:  DependencyViewControl.cs(118,23):
on line 118 and commented it out.

Then re-ran StartHere.bat and it found the same problem in DC1Gui.cs. 

Commenting that out allowed the build to complete and give a:

Build Complete
Finished

However, nothing else happens and no DinnerNow folder created in /localhost.

Tried the other bat files in the install folder.  Looks like maybe IIS 7.0 didn't get installed.

It's just a comedy of errors and seems like a waste of time.
Jun 12, 2009 at 12:09 PM
Edited Jun 12, 2009 at 12:15 PM

OK, this may be a little out of time , but i've got a solution for myself if anyone cares about it go ahead and read!

I searched for the 'Shell32.ShellClass' but I was not able to find some usefull informagtion so I figure out an other way to run the ShellExecute .

Go to the files:
C:\DinnerNow25\common\DC1\DCControls\DependencyViewControl.cs : Line: 118 -> shell.ShellExecute(.....
C:\DinnerNow25\common\DC1\DC1\DC1Gui.cs : Line: 189 -> shell.ShellExecute(.....

Comment both sell.ShellExecute(... and place the below code insteed:

For DependencyViewControl.cs:

Process proc = new Process ( );
proc.StartInfo.WorkingDirectory = System.IO.Path.GetDirectoryName(pathToNextScript);
proc.StartInfo.UseShellExecute = true;
proc.StartInfo.FileName = pathToNextScript;
proc.StartInfo.Arguments = "";
proc.Start();

For DC1Gui.cs:

Process proc = new Process ( );
proc.StartInfo.WorkingDirectory = workingdir;
proc.StartInfo.UseShellExecute = true;
proc.StartInfo.FileName = pathToNextScript;
proc.StartInfo.Arguments = workingdir;
proc.Start();

 

Dont forget to include System.Diagnostics at the top of the files.

using System.Diagnostics;

 

That did worked form me but my XP SP3 missing IIS7 and the Checklist is full of errors!