Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > NAnt
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 17th, 2006, 09:30 AM
Registered User
 
Join Date: Nov 2006
Location: Alwar, Rajasthan, India.
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">
        <delete>
                  <fileset basedir="${Build.OutputFolder}Latest\">
                        <include name="*.*"/>
                  </fileset>
        </delete>
    </target>

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


    </target>

</project>

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

Thanks in advance

Devesh
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:41 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.