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…

 

--Edwin

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Thursday, December 02, 2004 1:58 AM
To: [EMAIL PROTECTED]
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

Reply via email to