我想在ASP.NET应用程序中使用Nemerle。具体地说,就是将.n文件放入App_Code。
我将此代码添加到我的web.config系统。section/编译器部分:
<compiler language="n;Nemerle" extension=".n" type="Nemerle.Compiler.NemerleCodeProvider, Nemerle.Compiler"/>在运行时,我得到了这个异常:
程序集'‘已加载到另一个应用程序域中。在machine.config中设置可以帮助解决此问题。
堆栈跟踪
[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我做错了什么?
发布于 2009-07-11 02:29:30
我在Visual Studio2010中偶然发现了一个问题。停止任何正在运行的虚拟web服务器主机进程,然后重新启动Visual Studio。
发布于 2009-08-22 19:53:33
看起来您在.config块中缺少一些必需的属性。以下是官方常见问题解答的更多细节,我没有理由在这里重复任何可能会过时的信息:Nemerle ASP.NET FAQ
发布于 2010-03-18 14:19:36
我也想要它,但是,App_Code文件夹是为webSite准备的,我不知道如何让App_Code和WebSite一起工作。目前正在跟踪这个想法。但是你不能在默认情况下创建Nemerle webSite。
如果您正在使用Web应用程序,您可以使用名为"PinkElephant“的代码文件夹或任何您想要的-它将解决您的问题肯定__^
https://stackoverflow.com/questions/988147
复制相似问题