Hello all,
I am a newbie. I wrote this nant build file that to build my VB.NET web project. The project builds fine and generates the dll and pdb files. So far so good. But when I access my localhost I get a parser error in the Global.asax. Building my project via Visual Studio and then acccessing the localhost URL works great.
Please help.  Thanks.


I get this error:>

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'GRD.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="GRD.Global" %>

My Nant build file is:>

<?xml version="1.0"?>
   <project name="GRD" default="rebuild" basedir=".">
       <description>The Hello World of build files.</description>

       <namespaceimports id="system.imports">
                        <import namespace="System" />
                        <import namespace="System.Data" />
                        <import namespace="System.Drawing" />
                        <import namespace="System.Web" />
                        <import namespace="System.XML" />
                </namespaceimports>

                <assemblyfileset id="sys.assemblies">
                        <include name="System.dll" />
                        <include name="System.Data.dll" />
                        <include name="System.Drawing.dll" />
                        <include name="System.Web.dll" />
                        <include name="System.XML.dll" />
                </assemblyfileset>

                <target name="clean">
                        <delete file="bin\GRD.dll" failonerror="false" />
                </target>

       <target name="build" description="compiles the source code">
<vbc target="library" output="bin\GRD.dll" rootnamespace="Test" debug="true" define="DEBUG=true,TRACE=true">
                                <imports refid="system.imports" />
               <sources>
                                        <include name="*.vb" />
               </sources>
               <resources prefix="Test" dynamicprefix="false">
                   <include name="*.aspx" />
                   <include name="*.aspx.vb" />
                                        <include name="*.aspx.resx" />
                                        <include name="*.asax" />
                                        <include name="*.asax.vb" />
                                        <include name="*.asax.resx" />
                                </resources>
               <references refid="sys.assemblies" />
           </vbc>
       </target>

       <target name="rebuild" depends="clean, build" />

   </project>




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to