473,657 Members | 2,486 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with Nant on .Net 2.0 and Master Pages

Hi I am a newbie using nAnt for .net 2.0. As such I have not come
across this bug before, and I would be happy of any help that you may
be able to provide.

In order to help I have included the nant file which is causing the
problem, the object code that is not being built and the error message
which is being produced.

The weird thing is that VS.net builds without a problem. And the
intellisense within the object WorkQueue knows that Master is
referring to the PanelManager reference.

Sorry to be so verbose.

nant file
-----------------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<project name="PanelMana ger" default="build" xmlns="http://nant.sf.net/
schemas/nant-0.84.win32.net-1.0.xsd">
<sysinfo verbose='true'/>
<tstamp/>
<property name="project.n ame" value=" PanelManager"/>
<property name="target.ty pe" value="library"/>
<property name="output.ty pe" value="dll"/>
<property name="define" value="DEBUG;TR ACE" />
<property name="debug" value="true" />
<property name="build.dir " value="${projec t::get-base-directory()}
\Bin" />
<property name="output" value="${build. dir}\${project. name}.$
{output.type}" />
<property name="doc" value="${build. dir}\${project. name}.xml" />
<property name="localpath " value="C:\inetp ub\wwwroot\$
{project.name}" />

<target name="clean" description="re move all generated files">
<delete file="${project .name}..${ output.type }"
failonerror="fa lse"/>
<delete file="${project .name}..pdb" failonerror="fa lse"/>
</target>

<target name="deploy" description="Cr eate Virtual Directory and copy
redistributable s">
<mkdir dir="${localpat h}" />
<mkdir dir="${localpat h}\bin" />

<mkiisdir dirpath="${loca lpath}" vdirname="${pro ject.name}"
authntlm="true"/>
<copy todir="${localp ath}">
<fileset>
<include name="**\*.aspx "/>
<include name="**\*.asax "/>
<include name="**\*.asmx "/>
<include name="**\*.ashx "/>
<include name="**\*.conf ig"/>
</fileset>
</copy>
<copy todir="${localp ath}\bin" file="${output} " />
</target>

<target name="build" description="co mpiles the source code">
<mkdir dir="${build.di r}" />
<csc target="${targe t.type}" output="${outpu t}" debug="${debug} "
define="${defin e}" doc="${doc}">
<sources>
<include name="Workqueue .aspx.cs"/>
</sources>
<references>
<include name="C:\Projec ts\PanelManager \Bin
\DirectValuatio ns.PanelManager .dll"/>
<include name="{mkdir}
\DirectValuatio ns.PanelManager .Security.dll"/>
<include name="{mkdir}
\DirectValuatio ns.PanelManager .BusinessObject s.dll"/>
<include name="C:\Projec ts\PanelManager \Bin\System.dll "/>
<include name="C:\Projec ts\PanelManager \Bin
\System.Web.Sec urity.dll"/>
<include name="C:\Projec ts\PanelManager \Bin\App_Licens es.dll"/
>
<include name="C:\Projec ts\PanelManager \Bin
\Interop.FAXCOM Lib.dll"/>
<include name="C:\Projec ts\PanelManager \Bin
\Janus.Web.Grid Ex.dll"/>

</references>
</csc>
</target>
</project>
-----------------------------------------------------------------------------------------------------------------------------------------

Object code in C#
-----------------------------------------------------------------------------------------------------------------------------------------
private Entity entity
{
get { return Master.Entity; }
set { Master.Entity = value; }
}
-----------------------------------------------------------------------------------------------------------------------------------------

Error message
-----------------------------------------------------------------------------------------------------------------------------------------
Running NAnt File 'C:\Projects\Pa nelManager\pane lmanager.build' ,
Target=build
NAnt 0.85 (Build 0.85.2478.0; release; 14/10/2006)
Copyright (C) 2001-2006 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///C:/Projects/PanelManager/panelmanager.bu ild
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: build

[sysinfo] Setting system information properties under sys.*
[sysinfo] sys.env.TEMP = C:\DOCUME~1\JAM ES~1.MCD\LOCALS ~1\Temp
[sysinfo] sys.env.ComSpec = C:\WINDOWS\syst em32\cmd.exe
[sysinfo] sys.env.USERDOM AIN = DIRECTVAL
[sysinfo] sys.env.CommonP rogramFiles = C:\Program Files\Common
Files
[sysinfo] sys.env.ALLUSER SPROFILE = C:\Documents and Settings\All
Users
[sysinfo] sys.os.folder.a pplicationdata = C:\Documents and Settings
\james.mcdonagh \Application Data
[sysinfo] sys.os.folder.s ystem = C:\WINDOWS\syst em32
[sysinfo] sys.env.OS = Windows_NT
[sysinfo] sys.env.SystemD rive = C:
[sysinfo] sys.env.VS80COM NTOOLS = C:\Program Files\Microsoft Visual
Studio 8\Common7\Tools \
[sysinfo] sys.os.folder.c ommonapplicatio nData = C:\Documents and
Settings\All Users\Applicati on Data
[sysinfo] sys.env.lib = C:\Program Files\SQLXML 4.0\bin\
[sysinfo] sys.env.HOMEPAT H = \Documents and Settings\james. mcdonagh
[sysinfo] sys.env.COMPUTE RNAME = ITDEV010
[sysinfo] sys.env.USERPRO FILE = C:\Documents and Settings
\james.mcdonagh
[sysinfo] sys.os.platform = Win32NT
[sysinfo] sys.env.CLIENTN AME = Console
[sysinfo] sys.os.folder.t emp = C:\Documents and Settings
\james.mcdonagh \Local Settings\Temp\
[sysinfo] sys.env.PROCESS OR_IDENTIFIER = x86 Family 15 Model 4
Stepping 3, GenuineIntel
[sysinfo] sys.env.APPDATA = C:\Documents and Settings\james. mcdonagh
\Application Data
[sysinfo] sys.env.LOGONSE RVER = \\DVDC02NOTTS
[sysinfo] sys.env.WecVers ionForRosebud.C DC = 2
[sysinfo] sys.clr.version = 2.0.50727.42
[sysinfo] sys.env.Program Files = C:\Program Files
[sysinfo] sys.env.PATHEXT
= .COM;.EXE;.BAT; .CMD;.VBS;.VBE; .JS;.JSE;.WSF;. WSH
[sysinfo] sys.env.SESSION NAME = Console
[sysinfo] sys.env.PROCESS OR_LEVEL = 15
[sysinfo] sys.env.Path = C:\WINDOWS\syst em32;C:\WINDOWS ;C:\WINDOWS
\System32\Wbem; C:\Program Files\Microsoft SQL Server\80\Tools \Binn\;C:
\Program Files\Microsoft SQL Server\90\Tools \binn\;C:\Progr am Files
\Microsoft SQL Server\90\DTS\B inn\;C:\Program Files\Microsoft SQL
Server\90\Tools \Binn\VSShell\C ommon7\IDE\;C:\ Program Files\Microsoft
Visual Studio 8\Common7\IDE\P rivateAssemblie s\;C:\Program Files\Common
Files\Adobe\AGL ;C:\Program Files\nant;
[sysinfo] sys.env.PROCESS OR_ARCHITECTURE = x86
[sysinfo] sys.os.folder.c ommonprogramFil es = C:\Program Files\Common
Files
[sysinfo] sys.os = Microsoft Windows NT 5.1.2600 Service Pack 2
[sysinfo] sys.env.HOMEDRI VE = C:
[sysinfo] sys.env.FP_NO_H OST_CHECK = NO
[sysinfo] sys.os.folder.d esktopdirectory = C:\Documents and Settings
\james.mcdonagh \Desktop
[sysinfo] sys.env.SystemR oot = C:\WINDOWS
[sysinfo] sys.env.TMP = C:\DOCUME~1\JAM ES~1.MCD\LOCALS ~1\Temp
[sysinfo] sys.env.PROCESS OR_REVISION = 0403
[sysinfo] sys.os.version = 5.1.2600.131072
[sysinfo] sys.env.NUMBER_ OF_PROCESSORS = 2
[sysinfo] sys.os.folder.p rogramfiles = C:\Program Files
[sysinfo] sys.env.windir = C:\WINDOWS
[sysinfo] sys.env.USERNAM E = james.mcdonagh
[sysinfo] sys.env.USERDNS DOMAIN = DIRECTVALUATION S.NET
[tstamp] 24 April 2007 12:07:10.

build:

[csc] Compiling 1 files to 'C:\Projects\Pa nelManager\Bin\
PanelManager.dl l'.
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(25 ,29): error
CS0117: 'System.Web.UI. MasterPage' does not contain a definition for
'Entity'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(26 ,22): error
CS0117: 'System.Web.UI. MasterPage' does not contain a definition for
'Entity'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(43 ,18): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(45 ,24): error
CS0117: 'System.Web.UI. MasterPage' does not contain a definition for
'Entity'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(49 ,22): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(49 ,48): error
CS0117: 'WorkQueue' does not contain a definition for 'dsWorkQueue'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(50 ,33): error
CS0117: 'System.Web.UI. MasterPage' does not contain a definition for
'Entity'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(51 ,22): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(52 ,22): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(53 ,17): error
CS0103: The name 'lblEntity' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(57 ,22): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(57 ,48): error
CS0117: 'WorkQueue' does not contain a definition for
'dsWorkQueueAll '
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(58 ,22): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(59 ,22): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(60 ,17): error
CS0103: The name 'lblEntity' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(67 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(69 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(70 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(71 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(72 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(73 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(74 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(75 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(76 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(77 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(78 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(79 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(80 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(92 ,13): error
CS0012: The type 'Janus.Web.Comm on.IJanusXmlLay outsSupport' is defined
in an assembly that is not referenced. You must add a reference to
assembly 'Janus.Web.Comm on, Version=1.5.101 9.0, Culture=neutral ,
PublicKeyToken= 21d5517571b185b f'.
[csc] c:\Projects\Pan elManager\Bin\J anus.Web.GridEX .dll:
(Location of symbol related to previous error)
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(98 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(10 8,40): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(10 9,16): error
CS0117: 'System.Web.UI. MasterPage' does not contain a definition for
'Entity'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(31 ,19): warning
CS1591: Missing XML comment for publicly visible type or member
'WorkQueue.Enti ty'

BUILD FAILED

C:\Projects\Pan elManager\panel manager.build(3 9,6):
External Program Failed: C:\WINDOWS\Micr osoft.NET\Frame work
\v2.0.50727\csc .exe (return code was 1)

Total time: 0.7 seconds.

NAnt File 'C:\Projects\Pa nelManager\pane lmanager.build' , Target=build
completed.

-----------------------------------------------------------------------------------------------------------------------------------------

Apr 24 '07 #1
0 2107

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1567
by: hoochiegooch | last post by:
Hi, all. I have a couple of questions about NAnt. 1. Is there a better way to invoke NAnt from a C# "Master Test Rig" than shelling out? IOW, how should an ASP.NET web app or Windows Service kick off a NAnt build session? 2. We have some test tools that can
0
2097
by: muesliflakes | last post by:
I have figured out how to get this running by using Ant.Console as a starting point for calling NAnt. I had to include NAnt.Core, NAnt.DotNet & NDoc.Core in my project and it worked correctly. But, since I already have NAnt installed on my system, I was hoping that I would not need to include references to NAnt.Core, NAnt.DotNet & NDoc.Core I removed the references and set my path environment varible to point at the NAnt\bin folder...
1
1624
by: Sasha | last post by:
Hi all asp.net proffesionals out there, How do you implement master pages in your applications? What libraries do you use and what have been your experience? Sasha
4
1606
by: reezaali | last post by:
Hi All, I wanted to set up my websites like this c:\websites\intranettemplate c:\websites\app1 c:\websites\app2 Basically I wanted to have the master pages defined in the template folder and all other apps would "reference" this folder to get the
7
1951
by: Martijn Saly | last post by:
Hi there, I've created a master page with some controls on it, a Calendar control among others. Now depending on the date(s) selected, the content page needs to be updated. In the masterpage I've created StartDate and EndDate properties, which are basically wrappers around the SelectedDates property from the Calendar control. When I select another date in the Calendar, the page updates normally, but when Page_Load for the content page...
20
2417
by: Alan Silver | last post by:
Hello, In classic ASP, I used to use two include files on each page, one before and one after the main content, to provide a consistent layout across a web site. That way I could just change the include files to change the layout. When I came to ASP.NET, I used user controls to do a similar thing. I have just been looking at master pages, and it looks like they do the same thing. If so, is there any advantage in using them over the...
17
3150
by: Rob R. Ainscough | last post by:
Again another simple concept that appears NOT to be intuitive or I'm just stupid. I've read the WROX book and the example doesn't actually show how the .master page links in the other content pages? Kinda sorta a critical point no? Am I missing something? Rob. P.S. the day I find a book that actually is useful rather than just a
0
1430
by: softwareakash | last post by:
Hi All I am using cruise control for continuous integration with clearcase for this I am using 2 build files, One for cruise control and one for nant all this is done according to the documentation provided on cruisecontrol itself here is the content of my cruisecontrol build file ( which is watched
1
6168
by: jamesmcdonagh | last post by:
Hi newbie using nAnt for .net 2.0. I would be happy of any help that you may be able to provide. The weird thing is that VS.net builds without a problem. And the intellisense within the object WorkQueue knows that Master is referring to the PanelManager reference. nant file ------------------------------------------------------------------------------------------------------------------- <?xml version="1.0" encoding="utf-8"?>...
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8305
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8823
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8603
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7320
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4151
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1944
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.