2009-06-12 12 views
10

Bir ASP.NET uygulamasında Nemerle kullanmak istiyorum. Özellikle, .n dosyalarını App_Code'a yerleştirme. ASP.NET içinde Nemerle kullanma App_Code dizini

benim web.config system.codedom/derleyici bölümüne bu ekledi:

<compiler language="n;Nemerle" extension=".n" type="Nemerle.Compiler.NemerleCodeProvider, Nemerle.Compiler"/> 

Bu durum almak çalıştıran:

montaj '' zaten başka bir AppDomain içinde yüklenir. Machine.config dosyasındaki ayar bu sorunu çözmeye yardımcı olabilir.

Yığın izleme yanlış yapıyorum

[HttpException (0x80004005): The assembly '' is already loaded in another appdomain. Setting <deployment retail="true" /> in machine.config can help solve this issue.] 
    System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +8809675 
    System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +128 
    System.Web.Compilation.BuildManager.CompileCodeDirectories() +265 
    System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +320 

[HttpException (0x80004005): The assembly '' is already loaded in another appdomain. Setting <deployment retail="true" /> in machine.config can help solve this issue.] 
    System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58 
    System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512 
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729 

[HttpException (0x80004005): The assembly '' is already loaded in another appdomain. Setting <deployment retail="true" /> in machine.config can help solve this issue.] 
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8890735 
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85 
    System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259 

?

cevap

1

Visual Studio 2010 ile bulduğum bir sorun oldu. Çalışan herhangi bir sanal web sunucusu ana bilgisayar işlemlerini durdurun ve Visual Studio'yu yeniden başlatın.

0

.config bloğundaki gerekli özniteliklerden bazılarını kaçırıyor gibi görünüyor. Burada daha fazla ayrıntı içeren resmi SSS, muhtemelen daha sonra güncelliğini yitirmiş güncel bilgileri çoğaltmak için bir neden yok: Nemerle ASP.NET FAQ

1

Ben de istiyorum, ama App_Code klasörü webSite için, nasıl bir fikrim yok Nemerle ve WebSite birlikte çalışır. Şu anda bu fikri takip ediyor. Ancak, varsayılan olarak Nemerle webSitesi oluşturamazsınız. Web Uygulaması kullanıyorsanız

kod "PinkElephant" adlı klasörü veya her ne istediğiniz kullanabilirsiniz - ve kesin sorununuzu çözecektir __^

İlgili konular