Hi,
   
  No, there is no problem about target framework, I double-checked this, the 
problem is
  the solution is using some kind of Ajax extension (there is a reference in 
CSPROJ file 
  to a DLL - AjaxControlToolkit.dll installed by Ajax extension from 
http://ajax.asp.net/ajaxtoolkit/) so System.Web.UI.UpdatePanel and 
System.Web.UI.ScriptManager types are available in VS.Net2005 but not in NANT.
  See the error from my initial e-mail.
  And I don't understand why it's happening this as long as the reference to 
the DLL file should be available to NANT too as long as he knows how to compile 
a solution.
  The solution section from the task file for NANT look like this:
   
  <property name="nant.settings.currentframework" value="net-2.0" />
<solution
   failonerror="true"
   configuration="debug"
   solutionfile="C:\dev\webdev\apps\eClinicalWeb\eClinicalWeb.sln">
   <webmap>
       <map path="C:\dev\webdev\apps\eClinicalWeb\" 
url="http://localhost/apps/eClinicalWeb"/>
   </webmap>
</solution>
   
  The code where the NANT errors appears is below, in my initial e-mail.
  Still, doesn't anybody have/has any problem like this ?
  Thanks for your answers...
   
  Aurel.

Erich Eichinger <[EMAIL PROTECTED]> wrote:
        Hi,
   
  If your problem is only about compiling, use the -t option or setting 
<property name="nant.settings.currentframework" value="net-2.0" /> from within 
your build script. This will cause nant to link your build to the appropriate 
target framework's assembly versions.
   
  If it is about running e.g. NUnit test, you need to force nant to execute 
using the desired target runtime version (tests are executed in the same 
physical process  as nant). You can do this by modifiying your nant.exe.config, 
section <configuration><startup>. Leave only the <supportedRuntime> element you 
need and comment out all others.
   
  cheers,
  Erich

  
  
---------------------------------
  Von: [EMAIL PROTECTED] im Auftrag von [EMAIL PROTECTED]
Gesendet: Do 2007-04-12 01:31
An: [EMAIL PROTECTED]
Betreff: Re: [NAnt-users] Error CS0234: The type or namespace 
name'UpdatePanel'does not exist in the namespace 'System.Web.UI'


    Check what version of the framework nAnt is running under. It could be 
running under 1.1 and not 2.0 as VS 2005 does.
   
  You can pass this as a command line parameter in your call to nant 
(-t:net-1.1. I assume -t:net-2.0 for version 2.0 frameowrk) or I think there is 
a setting in nant.exe.config or something similar to tell it which version of 
framework to use
   
  Thanks,
  Angus.

      
---------------------------------
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Iordache 
Aurelian
Sent: Thursday, 12 April 2007 7:38 AM
To: [EMAIL PROTECTED]
Subject: [NAnt-users] Error CS0234: The type or namespace name 
'UpdatePanel'does not exist in the namespace 'System.Web.UI'


  
  Hello,
   
  I'm using NANT to compile a VS.Net2005 solution.
  The error I receive is:
   
   [solution] ManageSendToSiteGroupIDs.aspx.designer.cs(29,41): Error CS0234: 
The type or namespace name 'ScriptManager' does not exist in the namespace 
'System.Web.UI' (are you missing an assembly reference?)
 [solution] ManageSendToSiteGroupIDs.aspx.designer.cs(74,41): Error CS0234: The 
type or namespace name 'UpdatePanel' does not exist in the namespace 
'System.Web.UI' (are you missing an assembly reference?)

  The problem is I don't have any error while compiling the solution with 
VS.Net2005. 
  Looks like NANT doesn't recognize ScriptManager and UpdatePanel types in 
System.Web.UI altough in VS.Net2005 while editing these files these types 
appears 
  in IntelliSense dropdown for System.Web.UI.
   
  ManageSendToSiteGroupIDs.aspx.designer.cs looks like this:
   
  namespace <some namespace> {
    /// <summary>
    /// ManageSendToSiteGroupIDs class.
    /// </summary>
    /// <remarks>
    /// Auto-generated class.
    /// </remarks>
    public partial class ManageSendToSiteGroupIDs {
        
        /// <summary>
        /// scriptmanager1 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind 
file.
        /// </remarks>
        protected global::System.Web.UI.ScriptManager scriptmanager1;
   
         
---------------------------------------------------------------------------------------------------------
   
         /// <summary>
        /// UpdatePanel1 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind 
file.
        /// </remarks>
        protected global::System.Web.UI.UpdatePanel UpdatePanel1;
   
  I'm a little blocked with this issue because seems this is a NANT issue.
  Any ideea ? Does anyone has/had the same problem ?
   
  Thanks...
    
---------------------------------
  Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.
-------------------------------------------------------------------------
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users




Iordache Aurelian , 
AT&V Software Senior Programmer 
Yahoo Messenger ID: bluesurviver 
Skype ID: aiordache2005 
Email: 
Professional: [EMAIL PROTECTED] 
Personal:      [EMAIL PROTECTED]



       
---------------------------------
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.
-------------------------------------------------------------------------
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to