A-TAK.COM

monoはまだpartialに対応していない?と思ったら

※Amazonのアソシエイトとして、A-TAK.COMは適格販売により収入を得ています
※本サイトではその他アフィリエイトも利用しております。

シェア

英語弱いと苦労しますね。「mono」の日本語情報ってなかなかみつからない。
monoはLinuxで.NETのアプリを動かす為のフレームワークです。

ブログを書くならBlogWrite

monoを入れて遊んでいるのですが、一部ASP.NET2.0に対応したとどっかで見たので期待してVisual Studio 2005で簡単なページを作ってみたものの、こんなエラーページが出て動きやしない。

Server Error in ‘/’ Application


Parser Error

Description: Error parsing a resource required to service this request. Review your source file and modify it to fix this error.

Error message: Cannot find type _Default

File name: /xxxxxxxx/Default.aspx    Line: 1

Source Error:

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

いったいなんだろかーと思って検索すると、ドイツ語のページが引っかかったのでlivedoor翻訳にかけてみた。

Hello, the present mono contains an Implementation of Asp.Net 1.1. however, your code example is an Asp.Net 2.0 side since she/it is based on Partial-Classes.  Either, you alter the source code, sodass you on the Asp.Net 1.1 method a CodeBehindFile you produce or bind the XSP2 server of mono, the Asp.Net 2.0 untest・zt, however not all new features.  Sees mono Project for more exact – Asp.Net. like one this does here.  mfg,

英語ってどうやって勉強したらいいんですかね。やっぱ本買うしかない?
XSP2サーバーがASP.NET 2.0対応しているかも?とあるので、XSP2サーバーを調べてみた。

こちらでヒント発見。
やはり、XSP2を使わないといけないみたい。試しにXSP2を起動して、そのときに表示されるルートディレクトリに、aspxファイルを置いてみたら、ばっちり動きました。
今まではmod_monoモジュールを使ってました。これってXSPサーバーへのプロキシってことなんですかね。

パーシャルクラスがOKといっても、ASP.NET2.0の機能がフルにサポートされているわけではないみたいだけど、どこを見ればそれはわかるのやら。
MembershipProviderは1.1.15でサポートされたみたいなんだけど、クラスライブラリには記載がないしなぁ。Release Noteをひたすら眺めていくか。

#お、マスターページはつかえるみたい。SiteMapコントロールはweb.configのsitemapを有効にしろとか出てきていろいろ設定してみたけど、同じエラーがでっぱなし。実装されていないのかも。


シェア

投稿日

カテゴリー:

投稿者:

タグ:

カテゴリ一覧