Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-30-2009, 06:44 PM
Quintus Quintus is online now
Registered User
 
Join Date: 01-26-2009
Posts: 4
WebLauncher ObjectModel problems

I'm trying to adapt the WebLauncher project to a build project I've set up. I'm using Visual Studio 2008 and just playing around in a debug environment. Using the sample code for BuildWithConsoleApp I'm able to run my VBP just fine. When I try to use the sample code for BuildWithObjectModel (I'd like to be able to easily view build progress in the browser), however -- I get an "Access violation" exception:

Source Error:

Line 144: VisBuildSvr.Builder bld = new VisBuildSvr.BuilderClass();
Line 145:
Line 146: app.Project.Load(projectFile);
Line 147:
Line 148: // add all macro values as temporary macros


Source File: C:\...\Default.aspx.cs Line: 146

Stack Trace:

[COMException (0x80004005): Access violation.
Exception 0xC0000005 occurred in module C:\WINDOWS\system32\OLEAUT32.dll at address 0x77124C27, offset 0x00004C27.]
VisBuildSvr.IProject.Load(String filename) +0
WebApplication1._Default.BuildWithObjectModel(Stri ng projectFile, String[] names, String[] values) in C:\...\Default.aspx.cs:146
ASP.default_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\...\Default.aspx:17
System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +98
System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer) +20
System.Web.UI.Page.Render(HtmlTextWriter writer) +26
System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2558
Reply With Quote
  #2  
Old 01-30-2009, 06:56 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
http://www.kinook.com/Forum/showthre...?threadid=3044
Reply With Quote
  #3  
Old 01-30-2009, 07:08 PM
Quintus Quintus is online now
Registered User
 
Join Date: 01-26-2009
Posts: 4
Visual Build Professional 7.0
Evaluation Version: 15 days remaining
Windows Version: 5.1.2600.3.0
Install path: C:\Program Files\VisBuildPro7
HideConsole.exe version 1.0.0.0
VisBuildCmd.exe version 7.0.0.3
VisBuildPro.exe version 7.0.0.3
VisBuildAct.dll version 7.0.0.5
VisBuildCore.dll version 7.0.0.4
VisBuildDotNET.dll version 7.0.0.2
VisBuildExt.dll version 7.0.0.4
VisBuildMisc.dll version 7.0.0.4
VisBuildMS.dll version 7.0.0.4
VisBuildMS2.dll version 7.0.0.3
VisBuildNet.dll version 7.0.0.4
VisBuildSvr.dll version 7.0.0.5
VisBuildSvr.Interop.dll version 1.0.0.0
VisBuildVCS.dll version 7.0.0.4


The .BLD is unimportant. I know the BLD project works fine (and in fact works fine when building via the GUI, CLI, or ConsoleApp method in the sample project), so any BLD should be fine.

There is no build log because it doesn't get to actually running the build. It fails on the app.Project.Load(projectFile) call with an Access Violation exception.
Attached Files
File Type: zip configfiles.zip (566 Bytes, 1661 views)
Reply With Quote
  #4  
Old 01-30-2009, 07:49 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Try copying

C:\Program Files\VisBuildPro7\Samples\User Actions\NETAction\bin\Debug\Interop.VisBuildSvr.dl l

to

C:\Program Files\VisBuildPro7\Samples\Misc\WebLauncher\Bin\
Reply With Quote
  #5  
Old 01-30-2009, 08:23 PM
Quintus Quintus is online now
Registered User
 
Join Date: 01-26-2009
Posts: 4
That seems to have fixed it. Any particular reason for those DLLs to be different?
Reply With Quote
  #6  
Old 01-30-2009, 08:47 PM
Quintus Quintus is online now
Registered User
 
Join Date: 01-26-2009
Posts: 4
Also... Is there a way to serve up the status of a build in (pseudo) real-time? The WebLauncher sample seems to just dump all the output after the process completes - which makes the progress events seem kind of pointless (in a web environment)

Ultimately, I'd like to be able to have a page that can get the current status of a running continuous integration type setup, although I can presumably do that by dumping out status info to disk periodically and having a web page read that information.
Reply With Quote
  #7  
Old 01-30-2009, 09:12 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Quote:
Originally posted by Quintus
That seems to have fixed it. Any particular reason for those DLLs to be different?
We goofed up and didn't get that DLL updated to the final version. It's fixed now in the latest download at http://www.kinook.com/Download/VisBuildProEval.exe

Quote:
Originally posted by Quintus
Also... Is there a way to serve up the status of a build in (pseudo) real-time? The WebLauncher sample seems to just dump all the output after the process completes - which makes the progress events seem kind of pointless (in a web environment)
Add a Response.Flush() call after Response.Write() in the step events.
Reply With Quote
Reply


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 11:05 PM.


Copyright © 1999-2023 Kinook Software, Inc.