首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在asp.net App_Code目录中使用Nemerle

在asp.net App_Code目录中使用Nemerle
EN

Stack Overflow用户
提问于 2009-06-12 18:06:24
回答 3查看 1.7K关注 0票数 9

我想在ASP.NET应用程序中使用Nemerle。具体地说,就是将.n文件放入App_Code。

我将此代码添加到我的web.config系统。section/编译器部分:

代码语言:javascript
复制
<compiler language="n;Nemerle" extension=".n" type="Nemerle.Compiler.NemerleCodeProvider, Nemerle.Compiler"/>

在运行时,我得到了这个异常:

程序集'‘已加载到另一个应用程序域中。在machine.config中设置可以帮助解决此问题。

堆栈跟踪

代码语言:javascript
复制
[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

我做错了什么?

EN

回答 3

Stack Overflow用户

发布于 2009-07-11 02:29:30

我在Visual Studio2010中偶然发现了一个问题。停止任何正在运行的虚拟web服务器主机进程,然后重新启动Visual Studio。

票数 1
EN

Stack Overflow用户

发布于 2009-08-22 19:53:33

看起来您在.config块中缺少一些必需的属性。以下是官方常见问题解答的更多细节,我没有理由在这里重复任何可能会过时的信息:Nemerle ASP.NET FAQ

票数 0
EN

Stack Overflow用户

发布于 2010-03-18 14:19:36

我也想要它,但是,App_Code文件夹是为webSite准备的,我不知道如何让App_Code和WebSite一起工作。目前正在跟踪这个想法。但是你不能在默认情况下创建Nemerle webSite。

如果您正在使用Web应用程序,您可以使用名为"PinkElephant“的代码文件夹或任何您想要的-它将解决您的问题肯定__^

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/988147

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档