Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 633051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:08:34+00:00 2026-05-13T20:08:34+00:00

I am succesfully building ASP .Net applications in NAnt using the ASP Compiler, without

  • 0

I am succesfully building ASP .Net applications in NAnt using the ASP Compiler, without a problem., as part of my Continuous Integration process.

However, if I try exactly the same process on an ASP .NET MVC application, the build fails in NAnt, but will compile succesfully in Visual Studio. The error message I get in NAnt is:

[HttpParseException]: Could not load type ‘MyNamespace.Views.Home.Index’

which appears that it has a problem with the dots in the filenames, but I might be wrong.

Any suggestions are most welcome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T20:08:34+00:00Added an answer on May 13, 2026 at 8:08 pm

    The MVC app needs to be built as a project before using aspnet_compile. If your MVC project uses other class library projects, they also need to be compiled.

    After running aspnet_compile, we then want to delete various files that should not be part of the deployed site.

    This build file is located in the parent directory to my project MvcApplication.

    <project default="build">
        <property name="build.dir" value="${project::get-base-directory()}"/> 
        <property name="build.config" value="Release" />
    
        <target name="build">
    
            <exec program="${framework::get-framework-directory('net-3.5')}/msbuild.exe">
                <arg value="/property:Configuration=${build.config}" />
                <arg value="${build.dir}/MvcApplication/MvcApplication.csproj" />
            </exec>
    
            <delete dir="${build.dir}/PrecompiledWeb" includeemptydirs="true" failonerror="false"/>
    
            <exec program="${framework::get-framework-directory('net-2.0')}/aspnet_compiler.exe">
                <arg value="-v" />
                <arg value="/" />
                <arg value="-p" />
                <arg value="MvcApplication/" />
                <arg value="-f" />
                <arg value="PrecompiledWeb" />
            </exec>
    
            <delete verbose="true" includeemptydirs="true" failonerror="false">
                <fileset basedir="${build.dir}/PrecompiledWeb">
                    <include name="Controllers" />
                    <include name="Properties" />
                    <include name="obj/**" />
                    <include name="obj" />
                    <include name="*.csproj" />
                    <include name="*.csproj.user" />
                </fileset>
            </delete>
    
        </target>
    </project>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.