2012-09-14 20 views
5

Mentre la distribuzione di AppHarbor, AppHarbor mi ha dato il seguente la determinazione della produzione:AppHarbor errore di pre-compilazione

Microsoft (R) ASP.NET Compilation Tool version 4.0.30319.17929 
Utility to precompile an ASP.NET application 
Copyright (C) Microsoft Corporation. All rights reserved. 

D:\temp\cprt3dr0.2g3\output\_PublishedWebsites\WebMatrixWebsite\gnsystem\gnsystem\web.config(24): error ASPCONFIG: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. 

[ConfigurationErrorsException]: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (D:\temp\cprt3dr0.2g3\output\_PublishedWebsites\WebMatrixWebsite\gnsystem\gnsystem\web.config line 24) 
    at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal) 
    at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) 
    at System.Configuration.BaseConfigurationRecord.GetSection(String configKey) 
    at System.Web.Configuration.RuntimeConfig.GetSectionObject(String sectionName) 
    at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index) 
    at System.Web.Configuration.RuntimeConfig.get_Compilation() 
    at MTConfigUtil.GetCompilationConfig(String vpath) 
    at System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir) 
    at System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors) 
    at System.Web.Compilation.BuildManager.BatchCompileWebDirectory(VirtualDirectory vdir, VirtualPath virtualDir, Boolean ignoreErrors) 
    at System.Web.Compilation.BuildManager.PrecompileWebDirectoriesRecursive(VirtualDirectory vdir, Boolean topLevel) 
    at System.Web.Compilation.BuildManager.PrecompileWebDirectoriesRecursive(VirtualDirectory vdir, Boolean topLevel) 
    at System.Web.Compilation.BuildManager.PrecompileWebDirectoriesRecursive(VirtualDirectory vdir, Boolean topLevel) 
    at System.Web.Compilation.BuildManager.PrecompileWebDirectoriesRecursive(VirtualDirectory vdir, Boolean topLevel) 
    at System.Web.Compilation.BuildManager.PrecompileAppInternal(VirtualPath startingVirtualDir, IEnumerable`1 excludedVirtualPaths) 
    at System.Web.Compilation.BuildManager.PrecompileApp(VirtualPath startingVirtualDir, IEnumerable`1 excludedVirtualPaths) 
    at System.Web.Compilation.BuildManager.PrecompileApp(ClientBuildManagerCallback callback, IEnumerable`1 excludedVirtualPaths) 
    at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManagerCallback callback, List`1 excludedVirtualPaths) 
    at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManagerCallback callback, List`1 excludedVirtualPaths) 
    at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuildManagerCallback callback, Boolean forceCleanBuild) 
    at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuildManagerCallback callback) 
    at System.Web.Compilation.Precompiler.Main(String[] args) 




Website precompilation failed with exit code 1. Precompilation can optionally be disabled in application settings 

Dopo la ricerca in internet, ho trovato alcune soluzioni avermi oltre a pulire la mia soluzione e configurare il mio cartella app come cartella virtuale all'interno di IIS.

Ho fatto il primo (e non ha funzionato) ma non ho idea di come fare il secondo da AppHarbor, qualche suggerimento?

Edit1: Web.Config

+0

Suggerisco anche pubblicare la tua file web.config (forse in un GIST) –

+0

https://gist.github.com/3739343 –

+1

È possibile disattivare vista precompilazione in impostazioni dell'applicazione. Questo dovrebbe portarti alla larga dal problema. – friism

risposta

1

È possibile disattivare vista pre-compilazione in impostazioni dell'applicazione. Questo dovrebbe portarti alla larga dal problema.

Ma ti consiglio di controllare il tuo codice perché alla fine, quando usato, verrà gettato questa eccezione di nuovo, raccomando alcuni traccianti come elmha per aiutarti a trovare il problema in dettaglio. Il tuo errore è WebConfig acciaio ci