Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > NAnt
NAnt For discussing the NAnt .NET build tool. When posting a question, please specify the version of NAnt you are using.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the NAnt section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 17th, 2006, 09:30 AM
Registered User
Join Date: Nov 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ydevesh
Default Building web application using NANT

Hi i am building one simple web application using tool Nant, it's building successfully but when i run the application it's showing this error:-

Could not load type 'WebApplication21.Global'.

Source Error:

Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="WebApplication21.Global" %>

i am using this build file for building the application:-

<?xml version="1.0"?>
<project name="WebSolution" default="build" basedir="." xmlns="http://nant.sf.net/schemas/nant-0.85.win32.net-1.0.xsd">
    <description>This is a sample build file to be used for the BuildingSolution sample</description>

    <property name="Solution.Filename" value="C:\inetpub\wwwroot\WebSolution\WebSolution. sln"/>
    <property name="Solution.Configuration" value="DEBUG"/>
    <property name="Build.OutputFolder" value="c:\builds\WebSolution\"/>
    <property name="debug" value="true"/>

    <target name="clean" description="remove all generated files">
                  <fileset basedir="${Build.OutputFolder}Latest\">
                        <include name="*.*"/>

    <target name="build" description="compiles the source code">
            <call target="clean"/>
            <solution solutionfile="${Solution.Filename}" outputdir="${Build.OutputFolder}latest\" configuration="${Solution.Configuration}">
                <map url = "http://localhost/webapplication21/webapplication21.csproj"
        path = "C:\inetpub\wwwroot\webapplication21\webapplicatio n21.csproj" />
    <copy todir ="C:\builds\websolution\latest\">
    <fileset basedir ="c:\inetpub\wwwroot\webapplication21">
    <include name ="**.cs"/>
    <include name ="**.aspx"/>
    <include name ="**.config"/>
    <include name ="**.asax"/>



is there any mistake in the build file ? pls help me it's very urgent.

Thanks in advance


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building a .NET web department chroniclemaster1 ASP.NET 2.0 Professional 0 September 17th, 2007 10:17 PM
Building an Excel like Application yuenli C# 2005 1 June 22nd, 2007 11:57 AM
Building an Excel like Web based Application yuenli ASP.NET 2.0 Basics 0 June 21st, 2007 07:56 PM
Building School Library Application??? mythinky .NET Web Services 1 March 1st, 2004 06:40 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.