问题描述
我已经用Delphi Prism编写了一个ASP.NET Web应用程序(不是网站)。在开发机器上,一切正常,但是在测试服务器上安装它时,出现以下错误:
I have written an ASP.NET web application (not site) in Delphi Prism. Everything works fine on my devlopment machine, but when I install it on a test server I get the following error:
Server Error in '/MyApp' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: 'Oxygene' is not a supported language.
Source Error:
Line 1: <%@ Application CodeBehind="Global.asax.pas" Inherits="MyApp.Global_asax" Language="Oxygene" %>
Source File: /MyApp/global.asax Line: 1
我已经阅读了所有可以在网上找到的内容。不幸的是,有几篇文章提到了RemObjects页面(http://devcenter.remobjects.com/articles/?id={B549AFB8-04C8-4574-B185-30DE14369E66}),该页面不再存在。
I've read everything I can find on the web. Several articles mention a RemObjects page (http://devcenter.remobjects.com/articles/?id={B549AFB8-04C8-4574-B185-30DE14369E66}) which unfortunately, no longer exists.
某些链接建议您仅将Language = Oxygene更改为Language = C#。尝试这样做会产生不同的错误:
Some links suggest that you can just change Language="Oxygene" to Language="C#". Trying this produces a different error:
Compiler Error Message: CS1061: 'ASP.login_aspx' does not contain a definition for 'ForgottenUsernameLinkButton_Click' and no extension method 'ForgottenUsernameLinkButton_Click' accepting a first argument of type 'ASP.login_aspx' could be found (are you missing a using directive or an assembly reference?)
还有其他人遇到过这些问题吗?
Anybody else experienced these problems?
推荐答案
- 有几种方法可以解决此问题。最简单的方法:如果控制服务器是通过安装命令行版本。
- 另一种方法是预编译,它是:您需要即可做到这一点。执行此操作时,请确保取消选中可更新的选项。
- 使用2010年8月的版本,您可以将.compiler,.codemodel,.pdb,.cirrus复制到Bin /,然后复制到您的web.config添加以下内容:
- There are several ways to solve this issue. The easiest way: If you control the server is by installing the command line edition.
- Another way is precompiling, it: You'll need the Web deployment Project to do this. When you do this, make sure to uncheck the updatable option.
- With the august 2010 build you can copy the .compiler, .codemodel, .pdb, .cirrus to Bin/, then to your web.config add something like:
< system .codedom>
< compilers>
< compiler language = Chrome extension =。pas type = RemObjects.Oxygene.CodeDom.OxygeneCodeProvider,RemObjects.Oxygene.CodeModel,版本= 4.0。 0.800,文化=中性,PublicKeyToken = 3df3cad1b7aa5098 />
< compiler language = Oxygene extension =。pas type = RemObjects.Oxygene.CodeDom.OxygeneCodeProvider,RemObjects.Oxygene.CodeModel ,版本= 4.0.0.800,文化=中性,PublicKeyToken = 3df3cad1b7aa5098 />
< / compilers>
< /system.codedom>
请注意,这要求版本号(4.0.0.800)必须与您拥有的CodeModel dll的dll版本匹配。
Note that in this requires that the version number (4.0.0.800) has to match the dll version of the CodeModel dll you have.
这篇关于如何修复Delphi Prism ASP.NET错误:“解析器错误消息:'Oxygene'不是受支持的语言”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!