Hi, I solved the "[loadtasks] Failure scanning ..." error by copying the latest nantcontrib-0.85-rc1.
I will update you on the other errors later... -----Original Message----- From: Hadzramin AR [mailto:[EMAIL PROTECTED] On Behalf Of Hadzramin AR Sent: Monday, December 06, 2004 2:54 PM To: 'Gert Driesen' Subject: RE: [Nant-users] Nant & COM interop Dear Gert, I got the following error when using the nightly build. What I did was copying the nightly build in to the 0.84 bin folder... Is it right to do that? Thanks, Hadzramin ----------------------- ************************************ * ViewPointNET Nant Compiler * ************************************ NAnt 0.85 (Build 0.85.1800.0; nightly; 12/5/2004) Copyright (C) 2001-2004 Gerry Shaw http://nant.sourceforge.net [loadtasks] Failure scanning "D:\websource\DevTools\nant\bin\NAnt.Contrib.Tasks.dll" for extensions. One or more of the types in the assembly unable to load. Buildfile: file:///D:/websource/ViewPoint/ViewPoint.nant.build Target(s) specified: all [property] D:\websource\ViewPoint\ViewPoint.nant.build(5,3): Attribute 'overwrite' for <property ... /> is deprecated. Use a "property::exists('...')" unless condition instead. AssemblyInfo: D:\websource\ViewPoint\ViewPoint.nant.build(72,22): Attribute 'name' for <import ... /> is deprecated. Use "namespace" attribute instead. D:\websource\ViewPoint\ViewPoint.nant.build(73,22): Attribute 'name' for <import ... /> is deprecated. Use "namespace" attribute instead. D:\websource\ViewPoint\ViewPoint.nant.build(84,18): Element <includes... /> for <assemblyfileset... /> is deprecated. Use <include> element instead. all: GetLatest: BUILD FAILED - 0 non-fatal error(s), 4 warning(s) D:\websource\ViewPoint\ViewPoint.nant.build(116,4): Invalid element <vssget>. Unknown task or datatype. Total time: 2 seconds. Press any key to continue . . . -----Original Message----- From: Gert Driesen [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 1:48 PM To: [EMAIL PROTECTED] Subject: RE: [Nant-users] Nant & COM interop Hi, Did you have time to to test this with a recent nightly build of NAnt (http://nant.sourceforge.net/nightly/latest) ? Gert > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: vrijdag 3 december 2004 13:36 > To: [EMAIL PROTECTED] > Subject: RE: [Nant-users] Nant & COM interop > > Hi Edwin & Gert, > > Thanks for your replies. See my answers below. > > Edwin -------------------------------------------- > >By chance, are you running NAnt with the WebUI solution open > in VS.NET? The > >reason I ask is that VS.NET tends to lock interop libraries. > I have had > >problems trying to clean my projects because of similar > >UnauthorizedAccessExceptions but never trying to build the solutions. > >Anyways, it's worth checking. > > No. For the sake of testing, I close the VSNET, shutdown IIS, allow > directory browsing & script source access to the virtual folder and > give full access to folder to IUSR and ASPNET users. Nothing change > really :) > > > Gert --------------------------------------------- > >What version of NAnt are you using ? Would it be possible to > create a small > >repro for this issue ? > > I am using NAnt 0.85 (Build 0.85.1583.0; net-1.0.win32; nightly; > 5/2/2004). > > We have several projects in the solution namely DataAccess, Business, > Shared & Web (the main web project). > DataAccess, Business, Shared projects have reference to DAL5 (COM > dll). > > How I look at it, nant build try to copy the same interop from these > projects to build folder. Are this allowed. > > If you refer to the end of build log below, you will see this. The 1st > & 2nd tlbimp.exe command is successful but noth the following ones. > > > [solution] - VPDal5 > [solution] C:\Program Files\Microsoft Visual Studio .NET > 2003\SDK\v1.1\bin\tlbimp.exe > "D:\WOPH_VSS\70XX\PKLYSource\Program\VpDataLayer.Dll" /silent > /out:"D:\websource\WebApp\build\WebApp-0.0.1-Debug\bin\Interop > .VPDal5.dll" > /namespace:VPDal5 > TlbImp error: System.UnauthorizedAccessException - Access to the path > "Interop.VPDal5.dll" is denied. > > > > > Below is the source: > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > <target name="debug-init"> > <property name="project.config" value="Debug" /> > <property name="build.dir" > value="${nant.project.basedir}/build/${project.name}-${project > .version}-${pr > oject.config}" /> > </target> > <target name="debug"> > <call target="debug-init" /> > <call target="clean" /> > <solution solutionfile="ViewPoint.sln" > configuration="${project.config}" outputdir="${build.dir}/bin" > verbose="true"> > <webmap> > <map url="http://localhost/web/web.vbproj" > path="web\web.vbproj" /> > </webmap> > </solution> > <call target="deploy" /> > </target> > > > The partial build log is below: > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > [solution] Starting solution build. > [solution] Loading projects... > [solution] Loading project 'D:\websource\WebApp\WebUI\WebUI.vbproj'. > [solution] Loading project > 'D:\websource\WebApp\Business\Business.vbproj'. > [solution] Loading project > 'D:\websource\WebApp\DataAccess\DataAccess.vbproj'. > [solution] Loading project > 'D:\websource\WebApp\Shared\Shared.vbproj'. > [solution] Loading project 'D:\websource\WebApp\web\web.vbproj'. > [solution] Gathering additional dependencies... > [solution] Fixing up references... > [solution] Building 'Shared' [Debug]... > [solution] Copying references: > [solution] - System.Data > [solution] - VPDal5 > [solution] C:\Program Files\Microsoft Visual Studio .NET > 2003\SDK\v1.1\bin\tlbimp.exe > "D:\WOPH_VSS\70XX\PKLYSource\Program\VpDataLayer.Dll" /silent > /out:"D:\websource\WebApp\build\WebApp-0.0.1-Debug\bin\Interop > .VPDal5.dll" > /namespace:VPDal5 > [solution] - ADODB > [solution] - System > [solution] - System.XML > [solution] Starting compiler... > [solution] Commands: > [solution] /target:library > [solution] /nologo > [solution] /optionexplicit+ > [solution] /optionstrict- > [solution] /optioncompare:binary > [solution] /d:DEBUG=true > [solution] /d:TRACE=true > [solution] /baseaddress:11000000 > [solution] /optimize- > [solution] /debug+ > [solution] /warnaserror- > [solution] > /out:"D:\websource\WebApp\build\WebApp-0.0.1-Debug\bin\WebApp. > Shared.dll" > [solution] > /Imports:Microsoft.VisualBasic,System,System.Collections,Syste > m.Data,System. > Diagnostics, > [solution] > /r:"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\System.Data.dll" > [solution] > /r:"D:\websource\WebApp\build\WebApp-0.0.1-Debug\bin\Interop.V > PDal5.dll" > [solution] > /r:"c:\winnt\assembly\gac\adodb\7.0.3300.0__b03f5f7f11d50a3a\a > dodb.dll" > [solution] > /r:"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\System.dll" > [solution] > /r:"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\System.Xml.dll" > [solution] "D:\websource\WebApp\Shared\Constants.vb" > [solution] "D:\websource\WebApp\Shared\Lookup.vb" > [solution] "D:\websource\WebApp\Shared\Config.vb" > [solution] "D:\websource\WebApp\Shared\DataUtil.vb" > [solution] > "D:\websource\WebApp\Shared\FactoryProvider.vb" > [solution] "D:\websource\WebApp\Shared\Functions.vb" > [solution] > "D:\websource\WebApp\Shared\Interface\IWebAppException.vb" > [solution] "D:\websource\WebApp\Shared\Enums.vb" > [solution] "D:\websource\WebApp\Shared\Error.vb" > [solution] > "D:\websource\WebApp\Shared\AssemblyInfo.vb" > [solution] "D:\websource\WebApp\Shared\Settings.vb" > [solution] Success! (exit code = 0) > [solution] Fixing up references... > [solution] Fixed reference 'Shared': -> > D:\websource\WebApp\build\WebApp-0.0.1-Debug\bin\WebApp.Shared.dll. > [solution] Building 'WebUI' [Debug]... > [solution] Copying references: > [solution] - System.Web > [solution] - Infragistics.WebUI.UltraWebGrid.v3.1 > [copy] Copying 2 files to > 'D:\websource\WebApp\build\WebApp-0.0.1-Debug\bin'. > [copy] Copying 'C:\Program > Files\Infragistics\NetAdvantage > 2004 Volume 2\ASP.NET\Bin\Infragistics.WebUI.UltraWebGrid.v3.1.dll' to > 'D:\websource\WebApp\build\WebApp-0.0.1-Debug\bin\Infragistics > .WebUI.UltraWe > bGrid.v3.1.dll'. > [copy] Copying 'C:\Program > Files\Infragistics\NetAdvantage > 2004 Volume 2\ASP.NET\Bin\Infragistics.WebUI.UltraWebGrid.v3.1.xml' to > 'D:\websource\WebApp\build\WebApp-0.0.1-Debug\bin\Infragistics > .WebUI.UltraWe > bGrid.v3.1.xml'. > [solution] - System.Data > [solution] - System.XML > [solution] - System.Windows.Forms > [solution] - ADODB > [solution] - Infragistics.WebUI.Shared.v2.1 > [copy] Copying 1 file to > 'D:\websource\WebApp\build\WebApp-0.0.1-Debug\bin'. > [copy] Copying 'C:\Program > Files\Infragistics\NetAdvantage > 2004 Volume 2\ASP.NET\Bin\Infragistics.WebUI.Shared.v2.1.dll' to > 'D:\websource\WebApp\build\WebApp-0.0.1-Debug\bin\Infragistics > .WebUI.Shared. > v2.1.dll'. > [solution] - System > [solution] - VPDal5 > [solution] C:\Program Files\Microsoft Visual Studio .NET > 2003\SDK\v1.1\bin\tlbimp.exe > "D:\WOPH_VSS\70XX\PKLYSource\Program\VpDataLayer.Dll" /silent > /out:"D:\websource\WebApp\build\WebApp-0.0.1-Debug\bin\Interop > .VPDal5.dll" > /namespace:VPDal5 > [solution] - Shared > [copy] Copying 0 files to > 'D:\websource\WebApp\build\WebApp-0.0.1-Debug\bin'. > [solution] - System.Drawing > [solution] Starting compiler... > [solution] Commands: > [solution] /target:library > [solution] /nologo > [solution] /optionexplicit+ > [solution] /optionstrict- > [solution] /optioncompare:binary > [solution] /d:DEBUG=true > [solution] /d:TRACE=true > [solution] /baseaddress:11000000 > [solution] /optimize- > [solution] /debug+ > [solution] /warnaserror- > [solution] > /out:"D:\websource\WebApp\build\WebApp-0.0.1-Debug\bin\WebApp. > WebUI.dll" > [solution] > /Imports:Microsoft.VisualBasic,System,System.Collections,Syste > m.Data,System. > Diagnostics, > [solution] > /r:"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\System.Web.dll" > [solution] /r:"C:\Program > Files\Infragistics\NetAdvantage > 2004 Volume 2\ASP.NET\Bin\Infragistics.WebUI.UltraWebGrid.v3.1.dll" > [solution] > /r:"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\System.Data.dll" > [solution] > /r:"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\System.Xml.dll" > [solution] > /r:"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\System.Windows. > Forms.dll" > [solution] > /r:"c:\winnt\assembly\gac\adodb\7.0.3300.0__b03f5f7f11d50a3a\a > dodb.dll" > [solution] /r:"C:\Program > Files\Infragistics\NetAdvantage > 2004 Volume 2\ASP.NET\Bin\Infragistics.WebUI.Shared.v2.1.dll" > [solution] > /r:"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\System.dll" > [solution] > /r:"D:\websource\WebApp\build\WebApp-0.0.1-Debug\bin\Interop.V > PDal5.dll" > [solution] > /r:"D:\websource\WebApp\build\WebApp-0.0.1-Debug\bin\WebApp.Sh > ared.dll" > [solution] > /r:"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\System.Drawing.dll" > [solution] > "D:\websource\WebApp\WebUI\AssemblyInfo.vb" > [solution] "D:\websource\WebApp\WebUI\DateControl.vb" > [solution] > "D:\websource\WebApp\WebUI\Search\SearchEnum.vb" > [solution] > "D:\websource\WebApp\WebUI\SearchWindow.vb" > [solution] > "D:\websource\WebApp\WebUI\SearchControl.vb" > [solution] > "D:\websource\WebApp\WebUI\Search\Search.vb" > [solution] Success! (exit code = 0) > [solution] Fixing up references... > [solution] Fixed reference 'Shared': -> > D:\websource\WebApp\build\WebApp-0.0.1-Debug\bin\WebApp.Shared.dll. > [solution] Building 'DataAccess' [Debug]... > [solution] Copying references: > [solution] - System.Web > [solution] - System.Data > [solution] - System.XML > [solution] - System.Windows.Forms > [solution] - ADODB > [solution] - System > [solution] - VPDal5 > [solution] C:\Program Files\Microsoft Visual Studio .NET > 2003\SDK\v1.1\bin\tlbimp.exe > "D:\WOPH_VSS\70XX\PKLYSource\Program\VpDataLayer.Dll" /silent > /out:"D:\websource\WebApp\build\WebApp-0.0.1-Debug\bin\Interop > .VPDal5.dll" > /namespace:VPDal5 > TlbImp error: System.UnauthorizedAccessException - Access to the path > "Interop.VPDal5.dll" is denied. > > > > > > > > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, December 02, 2004 10:57 AM > Subject: [Nant-users] Nant & COM interop > > > > Hi, > > > > > > > > I need help on building a VS.NET project with COM interop. > Try to searh on > > google and mail archive but no luck. > > > > > > > > Anyone knows what is the best & simple way to build VSNET > project that has > > interop > > > > > > > > Thanks in advance > > > > > > > > I got the following errors: > > > > > > > > > -------------------------------------------------------------- > ------------ > -- > > > > [solution] Building 'WebUI' [Debug]... > > > > [copy] Copying 2 files to > > 'D:\websource\Solution\build\Solution-0.0.1-Debug\bin'. > > > > [copy] Copying 1 file to > > 'D:\websource\Solution\build\Solution-0.0.1-Debug\bin'. > > > > [solution] Building 'DataAccess' [Debug]... > > > > TlbImp error: System.UnauthorizedAccessException - Access > to the path > > "Interop.VPDal5.dll" is denied. > > > > [solution] Building 'Business' [Debug]... > > > > TlbImp error: System.UnauthorizedAccessException - Access > to the path > > "Interop.VPDal5.dll" is denied. > > > > [solution] Building 'web' [Debug]... > > > > [copy] Copying 2 files to > > 'D:\websource\Solution\build\Solution-0.0.1-Debug\bin'. > > > > TlbImp error: System.UnauthorizedAccessException - Access > to the path > > "Interop.VPDal5.dll" is denied. > > > > [copy] Copying 2 files to > > 'D:\websource\Solution\build\Solution-0.0.1-Debug\bin'. > > > > [copy] Copying 2 files to > > 'D:\websource\Solution\build\Solution-0.0.1-Debug\bin'. > > > > TlbImp error: System.UnauthorizedAccessException - Access > to the path > > "Interop.VpBusLayer5.dll" is denied. > > > > [copy] Copying 2 files to > > 'D:\websource\Solution\build\Solution-0.0.1-Debug\bin'. > > > > > > > > BUILD FAILED > > > > > > > > Unexpected error while compiling project 'web' > > > > Exception has been thrown by the target of an invocation. > > > > The type initializer for "NAnt.Core.Task" threw an > exception. > > > > File or assembly name log4net, or one of its > dependencies, was > > not found. > > > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004 > > > > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004 > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide Read honest & candid > reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Nant-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-users > > --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users