title: error ASPPARSE: Could not load type
body: <p>If I run this command on my system</p>
  
  <pre><code>&lt;Exec Command="C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler -v localhost -p $(SourceDir)\wwwroot -u -f projectCompileCode\project -c -errorstack -nologo" /&gt;
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>error ASPParse: Could not load the type: Projectname:SomeFile.</p>
  </blockquote>
  
  <p>The project is web application project</p>
  
  <p>This my stack trace:</p>
  
  <blockquote>
    <p>[HttpException]: Could not load type 'ProjectName.FileName'.
          at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCa
    e, Boolean throwOnError)
          at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeN
    me, String codeFileBaseTypeName, String src, Assembly assembly)
          at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDicti
    nary parseData)</p>
    
    <p>[HttpParseException]: Could not load type ''ProjectName.FileName.
          at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virt
    alPath, Encoding fileEncoding)
          at System.Web.UI.TemplateParser.ParseReader(StreamReader reader, VirtualP
    th virtualPath)
          at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPat
     virtualPath)
          at System.Web.UI.TemplateParser.ParseInternal()
          at System.Web.UI.TemplateParser.Parse()
          at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType(
          at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(
    uildProvider buildProvider)
          at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
          at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
          at System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResu
    t(Boolean isPrecompiledApp)
          at System.Web.Compilation.BuildManager.CompileGlobalAsax()
          at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
          at System.Web.Compilation.BuildManager.PrecompileAppInternal(VirtualPath
    tartingVirtualDir)
          at System.Web.Compilation.BuildManager.PrecompileApp(VirtualPath starting
    irtualDir)
          at System.Web.Compilation.BuildManager.PrecompileApp(ClientBuildManagerCa
    lback callback)
          at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManag
    rCallback callback)
          at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManag
    rCallback callback)
          at System.Web.Compilation.ClientBuildManager.PrecompileApplication(Client
    uildManagerCallback callback, Boolean forceCleanBuild)
          at System.Web.Compilation.ClientBuildManager.PrecompileApplication(Client
    uildManagerCallback callback)
          at System.Web.Compilation.Precompiler.Main(String[] args)</p>
  </blockquote>
  
  <p>If I build in v2.0.50727 then still it is giving the same error.</p>
  
  <p>My application is built in with VS 2010, .net frame asp.net frame work 4</p>
  
  <p>Any help is greatly apperciated.</p>