Sorry it took me so long to get back with the
solution.  Turns out that the metabase was corrupt.  I
uninstalled and reinstalled IIS and the 2.0 framework
and all was fine...  The installing of 2.0 hadn't
caused it, renaming the machine did.

Thanks for the help!
Eric

--- Bob Archer <[EMAIL PROTECTED]> wrote:

> You can use the -defaultframework:net-1.1 or
> -k:net-1.1 command line
> switch or you can set the
> nant.settings.currentframework property in the
> build file. I assume you recently installed .Net 2.0
> and that's when
> this stopped working.
> 
> I don't know how Nant determines what version to use
> by default. My
> guess is there is something in the config that you
> could set also.
> 
> BOb
> 
> 
> -----Original Message-----
> From: Eric Fetzer [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 28, 2006 1:27 PM
> To: Bob Archer; Nant Users
> Subject: Re: [NAnt-users] Could not load type...
> *.Global
> 
> It runs great if the dll created in VS is deployed. 
> The only difference I can see is the size of the
> .dll.
>  Another given difference is that the VS version
> will
> open in ildasm whereas the NAnt version won't
> (pointing to the possibility that NAnt is using the
> wrong version of the framework).  It looks like NAnt
> is in fact doing this.  When I broke the build of
> the
> specific project in question down to use csc, the
> first attempt gave me the error:
> 
> External Program Failed:
> C:\WINNT\Microsoft.NET\Framework\v2.0.50727\csc.exe
> (return code was 1)
> 
> What would cause NAnt to use 2.0 of the framework? 
> I'm running it from the 1.1 VS Command prompt...
> 
> Thanks,
> Eric
> 
> --- Bob Archer <[EMAIL PROTECTED]> wrote:
> 
> > If you xcopy deploy the system manually built
> using
> > VS, does it run on
> > the server in question? Is the only difference the
> > size of the exe?
> > 
> > Also, you are including projects in the solution.
> > Are those projects not
> > already included in the solution?
> > 
> > Also, if this is an .aspx app I think you need to
> > include a webmap
> > section.
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> On
> > Behalf Of Eric
> > Fetzer
> > Sent: Wednesday, September 27, 2006 2:05 PM
> > To: Nant Users
> > Subject: Re: [NAnt-users] Could not load type...
> > *.Global
> > 
> > Note that this build machine is a Windows 2000
> > Server.
> >  I've tried uninstalling and reinstalling IIS to
> no
> > avail.  I've tried falling back the files that
> > changed
> > since this app was last built with NAnt
> > successfully. 
> > I'm at wits end...  Anyone?
> > 
> > Thanks,
> > Eric
> > 
> > --- Eric Fetzer <[EMAIL PROTECTED]> wrote:
> > 
> > > Solution.  I separated just the solution task
> > itself
> > > for trouble shooting simplicity:
> > > 
> > > <project name="testBuild" default="build" >
> > >   <target name="build">
> > >     <solution configuration="release"
> > > verbose="true"> 
> > >       <projects>
> > >          <include
> > > name="D:\myProject\myProject.csproj"
> > > />
> > >          <include
> > > name="D:\myProject\myProject2.csproj" />
> > >          <include name="D:\myProject\Data Access
> > > Application
> > > Block\Microsoft.ApplicationBlocks.Data.csproj"
> />
> > >       </projects>
> > >     </solution>
> > >   </target>
> > > </project>
> > > 
> > > --- Bob Archer <[EMAIL PROTECTED]> wrote:
> > > 
> > > > It would help to see your build file. Are you
> > > using
> > > > the solution task or
> > > > the csc or vbc task?
> > > > 
> > > > BOb
> > > > 
> > > > 
> > > > -----Original Message-----
> > > > From: Eric Fetzer
> [mailto:[EMAIL PROTECTED] 
> > > > Sent: Tuesday, September 26, 2006 2:55 PM
> > > > To: Eric Fetzer; Bob Archer; Nant Users
> > > > Subject: Re: [NAnt-users] Could not load
> type...
> > > > *.Global
> > > > 
> > > > Something more:
> > > > 
> > > > It looks as though the .resources files aren't
> > > being
> > > > pulled into the dll (guess based on file size
> > > > differences).
> > > > 
> > > > --- Eric Fetzer <[EMAIL PROTECTED]> wrote:
> > > > 
> > > > > Yep.  When I compile in NAnt, I end up with
> a
> > > 64K
> > > > > dll.
> > > > >  In VS, I get 68K (both using Release
> Build). 
> > > > With
> > > > > the NAnt dll, we get the error I reported. 
> > With
> > > > VS,
> > > > > it works fine.  With the NAnt dll, when I
> try
> > to
> > > > > decompile with ildasm, I get "error: failed
> to
> > > > open
> > > > > metadata".  With VS, ildasm works like a
> > charm.
> > > > > 
> > > > > Thanks,
> > > > > Eric
> > > > > 
> > > > > --- Bob Archer <[EMAIL PROTECTED]> wrote:
> > > > > 
> > > > > > Are you sure your web app is set to run in
> > the
> > > > > > correct version of
> > > > > > ASP.Net? You can check this in the virtual
> > > > > directory
> > > > > > properties in the
> > > > > > ASP.Net tab.
> > > > > > 
> > > > > > BOb
> > > > > > 
> > > > > > 
> > > > > > -----Original Message-----
> > > > > > From:
> > [EMAIL PROTECTED]
> > > > > >
> > > >
> > [mailto:[EMAIL PROTECTED]
> > > > > On
> > > > > > Behalf Of Eric
> > > > > > Fetzer
> > > > > > Sent: Tuesday, September 26, 2006 11:41 AM
> > > > > > To: Nant Users
> > > > > > Subject: [NAnt-users] Could not load
> type...
> > > > > > *.Global
> > > > > > 
> > > > > > The archives appear to be down, so sorry
> if
> > > this
> > > > > is
> > > > > > a
> > > > > > repeat...  Building in VS, my application
> > > works
> > > > > > fine. 
> > > > > > Building in NAnt, however, we get the
> error
> > in
> > > > the
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to