Re: Problems building from command line when custom IIS directories used

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



Hi Stephen,

To build from command line you need to open first from source control the
solution using the IDE.
The paths you introduce in the SetProjectLocation dialog are saved by the
IDE in the <solution>.suo file and are later needed to locate the project -
make sure you don't delete by mistake this file.
Building from command line should work if you use "devenv /build". The IDE
should read the web projects translations stored in the suo paths and should
locate the project correctly.
If you use other tools to build (like msbuild), they will not read the suo
translations, and will try to use directly the paths from the sln file,
which most likely point to a path that doesn't exist, and will cause the
message you describe to be displayed and the build to fail.
--
Alin Constantin
This posting is provided "AS IS" with no warranties, and confers no rights.


"Stephen Ahn" <noaddress_at_noaddress.com> wrote in message
news:e0kq6YbNGHA.3944@xxxxxxxxxxxxxxxxxxxxxxx
Using Visual Studio.NET 2003, dotnet 1.1 sp 1, VSS 6.0c.

I have a simple solution with a few web projects in them. It builds fine
from both the VS IDE and when calling devenv from command line for
automated builds.


The problems start when I try to map the web projects to custom IIS
directories. i.e. when using Open From Source Control, and using a non
standard location in the "Enter Working Copy Location Here" box. eg. say
the default location is : http://localhost/HelloWorldWebService, and I
change it to : http://localhost/HelloWorldWebService_v1
This will build ok from within the IDE, but when built from the command
line, the web projects give errors such as :

Visual Studio .NET cannot create or open the application. The likeliest
problem is that required components are not installed on the local Web
server. Run Visual Studio .NET setup and add the Web Development
component.

TIA,
Stephen






.



Relevant Pages

  • Re: Problems building from command line when custom IIS directories used
    ... Basically, I'm trying to use "Idea 1, Let VisualStudio to create an suo file ... dreadful SUO file and ASP.NET Web Projects in VisualStudio .NET 2002/2003". ... from command line. ... command line build (although it is getting used if the IDE is used). ...
    (microsoft.public.vstudio.sourcesafe)
  • Re: Problems building from command line when custom IIS directories used
    ... The problem with VS2003 is that when the solution is opened and the command ... interfaces and the translation table from the suo file (which should have ... command line build (although it is getting used if the IDE is used). ... I have a simple solution with a few web projects in them. ...
    (microsoft.public.vstudio.sourcesafe)
  • Problems building from command line when custom IIS directories used
    ... The problems start when I try to map the web projects to custom IIS ... This will build ok from within the IDE, but when built from the command ... Run Visual Studio .NET setup and add the Web Development component. ...
    (microsoft.public.vstudio.sourcesafe)
  • Re: Math Error in the .NET Framework 1.1.4322 SP1
    ... > returns incorrect results for varying powers of 2 that depend on whether the ... > program is run from within the IDE or from the command line. ... > in further calculations, which can throw off some functions. ...
    (microsoft.public.dotnet.framework)
  • Re: Math Error in the .NET Framework 1.1.4322 SP1
    ... > returns incorrect results for varying powers of 2 that depend on whether the ... > program is run from within the IDE or from the command line. ... > in further calculations, which can throw off some functions. ...
    (microsoft.public.dotnet.general)