2

Delphi Prism で ASP.NET Web アプリケーション (サイトではない) を作成しました。開発マシンではすべて正常に動作しますが、テスト サーバーにインストールすると、次のエラーが発生します。

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}) について言及している記事がいくつかあります。

いくつかのリンクは、Language="Oxygene" を Language="C#" に変更するだけでよいことを示唆しています。これを試すと、別のエラーが発生します。

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?)

他の誰かがこれらの問題を経験しましたか?

4

1 に答える 1

5
  1. この問題を解決するにはいくつかの方法があります。最も簡単な方法: サーバーを制御する場合は、コマンド ライン エディションをインストールすることです。
  2. もう 1 つの方法はプリコンパイルです。これを行うには、Web 展開プロジェクトが必要です。これを行うときは、更新可能なオプションのチェックを外してください。
  3. 2010 年 8 月のビルドでは、.compiler、.codemodel、.pdb、.cirrus を Bin/ にコピーしてから、web.config に次のようなものを追加できます。

<system.codedom> <compilers>
<compiler language="Chrome" extension=".pas" type="RemObjects.Oxygene.CodeDom.OxygeneCodeProvider, RemObjects.Oxygene.CodeModel, Version=4.0.0.800, Culture=neutral, PublicKeyToken=3df3cad1b7aa5098" />
<compiler language="Oxygene" extension=".pas" type="RemObjects.Oxygene.CodeDom.OxygeneCodeProvider, RemObjects.Oxygene.CodeModel, Version=4.0.0.800, Culture=neutral, PublicKeyToken=3df3cad1b7aa5098" /> </compilers> </system.codedom>

これには、バージョン番号 (4.0.0.800) が、使用している CodeModel dll の dll バージョンと一致する必要があることに注意してください。

于 2011-01-11T07:26:13.370 に答える