Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-28-2004, 08:43 AM
sodablue sodablue is online now
Registered User
 
Join Date: 04-30-2004
Posts: 2
Build failed, wasn't caught

I had a ASP.NET web project fail to build because the IIS service was shut down, and VS.NET couldn't connect the project to the virtual directory. This was with VS.NET 2002, and it didn't report an error instead just spitting out this message and exiting:

Unable to open Web project 'Host'. Unable to validate that the file path 'D:\src\Host' matches the URL path 'http://localhost/Host'. A connection with the server could not be established


I had checked on the option to parse build output, but apparently Visual Build(v5.5) doesn't look for this particular error.

I found a workaround, which was to put something in the StepDone event to check for this and throw an error if the step failed.

Function vbld_StepDone()

dim macros, macro, LastOutput
set macros =Application.Macros(vbldMacroAll )
set macro = macros.Item("LASTSTEP_OUTPUT")
LastOutput = macro.Value

If instr(1, LastOutput, "Unable to open Web project", 1) > 0 then
builder.LogMessage("Unable to open Web project")
Err.Raise 1, "", "Step failed"
end if

End Function

I thought I'd pass that tip along to others.
Reply With Quote
  #2  
Old 10-29-2004, 06:06 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
Since version 5.3 (http://www.kinook.com/Forum/showthread.php?threadid=375) this is provided via the 'Parse build output...' checkbox. From the Make VS.NET action help topic:

Parse build output for failed projects: Sometimes, devenv.com will return a success (0) exitcode even if one or more projects failed to build. If this box is checked, the action also parses the build output to verify that 0 projects failed to build, and if an error condition is found, the step will also be marked as failed.

But that is the right approach to do it yourself (the Make VS.NET action's check is a little more generic but should work in this case too).
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off



All times are GMT -5. The time now is 04:41 AM.


Copyright © 1999-2023 Kinook Software, Inc.