Re: Error spawning 'cl.exe'

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Chris R. Timmons (crtimmons_at_X_NOSPAM_Xcrtimmonsinc.com)
Date: 11/04/04


Date: Thu, 04 Nov 2004 15:19:34 -0800


=?Utf-8?B?R2VSbUlj?= <GeRmIc@discussions.microsoft.com> wrote in
news:47AB3D26-869D-454E-9EC6-B84B4B88833F@microsoft.com:

> Hi Chris,
>
> How do i check if my code has the permission to execute cl.exe?
>
> I am doing all these through the Visual Studio 2003 IDE. Cl.exe
> is in the classpath and the path in the Environment Variables.

I'm not clear on exactly how you are running cl.exe. Is it being
done from C# code, or from the Visual Studio IDE?

Can you run cl.exe from the command line? If so, it probably isn't a
permissions problem.

Instead of relying on the environment path to find cl.exe, try using
the full path to cl.exe when spawning it.

-- 
Hope this helps.
Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/


Relevant Pages

  • Re: System.Security.SecurityException: Request
    ... To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. ... System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107 ... System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7350 ... The System.Security.Permissions.EnvironmentPermission class in Mscorlib.dll controls the access to the user environment variables. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: code 9009 executing pre build command line VS2008
    ... In $folder, there is an existing xsd.exe file. ... The cause of the error is that Visual Studio cannot find the xsd.exe file. ... After changing environment variables, we must restart Visual Studio to make ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.general)
  • Solution-global settings?
    ... I have what I suspect is a common problem with managing multiple ... manually change all the settings of each of the projects (and for each ... to set a bunch of environment variables before being able to build. ... this within Visual Studio. ...
    (microsoft.public.vc.language)
  • Starting VS IDE with WSH script causes catastrophic process failur
    ... branch of the source tree I am working on, then start Visual Studio IDE. ... Set objConfig = objStartup.SpawnInstance_ ... When I attempt to open Test View, ... started does not inherit the parent process' environment variables, ...
    (microsoft.public.vsnet.general)
  • Re: Question about connecting client programs to Sql server 2005 running on local area network
    ... Visual Studio 2008 is in beta so its stability is not guaranteed. ... Hitchhiker's Guide to Visual Studio and SQL Server ... when running my app on local area network ... Request for the permission of type ...
    (microsoft.public.dotnet.framework.adonet)