2012-02-04 6 views
1

私は現在、WebサーバーをWindowsからLinuxに変更しようとしています。私は現在、自分のサイトで動作するasp.netプログラムを持っています。私はこれをLinux上でモノで動かそうとします。MonoLinuxでASP.netを実行しています

私は私のテストのLinuxサーバーへの私のWindowsサーバーからのすべてのファイルを上書きコピーしているが、私は、ページにアクセスしようとすると、私は次のエラーを取得する:

以下

Unrecognised attributed 'requestValidationMode' (/srv/www/htdocs/mywebsitedirectory/web.config

は、web.configファイルのコピーですモノが考えるエラーページであるかのように見えます

<?xml version="1.0" encoding="UTF-8"?> 
<!-- 
    For more information on how to configure your ASP.NET application, please visit 
    http://go.microsoft.com/fwlink/?LinkId=169433 
    --> 
<configuration> 

    <connectionStrings> 
    <add name="DownloadManagerDB" connectionString="Server=localhost;Port=3306;Database=downloads;Uid=public;Pwd=54mCuw90;pooling=false;" providerName="MySql.Data.MySqlClient" /> 
</connectionStrings> 
    <system.web> 
    <customErrors mode="Off" /> 
    <httpRuntime requestValidationMode="2.0" maxRequestLength="16384" /> 
     <compilation debug="true" targetFramework="4.0"> 
      <assemblies> 
       <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
       <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> 
       <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /></assemblies></compilation> 
     <authentication mode="Forms"> 
      <forms loginUrl="~/Account/Login.aspx" timeout="2880" /> 
     </authentication> 
     <membership> 
      <providers> 
       <clear /> 
       <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" /> 
      </providers> 
     </membership> 
     <profile> 
      <providers> 
       <clear /> 
       <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" /> 
      </providers> 
     </profile> 
     <roleManager enabled="false"> 
      <providers> 
       <clear /> 
       <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" /> 
       <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" /> 
      </providers> 
     </roleManager> 
    </system.web> 
    <system.webServer> 
     <modules runAllManagedModulesForAllRequests="true" /> 
     <defaultDocument> 
      <files> 
       <clear /> 
       <add value="index.aspx" /> 
       <add value="Default.htm" /> 
       <add value="Default.asp" /> 
       <add value="index.htm" /> 
       <add value="default.aspx" /> 
       <add value="index.html" /> 
       <add value="iisstart.htm" /> 
       <add value="index.php" /> 
      </files> 
     </defaultDocument> 
    </system.webServer> 
</configuration> 

ファイルのその実際に私はそれをサポートしていることを述べているモノ・バージョン2.10.6を使用しています。4.を.NETに設定されているasp.netのバージョン2。ネット4.

ご協力いただきありがとうございます。

更新日: 出力のように@Eugen Rieckが指摘ps auxwww | grep mono

wwwrun 12029 0.0 0.8 48800 8100 ? Ssl 19:55 0:00 /usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename /tmp/mod_mono_server_global --nonstop --master root 12177 0.0 0.0 2524 768 pts/1 S+ 20:04 0:00 grep --color=auto mono

+0

偶然mod-mono-server2(mod-mono-server4ではなく)をインストールしましたか? –

+0

こんにちは。ご協力いただきありがとうございます。私がyastを見ると、私はapache2-mod_monoしか見ることができません。 Monoが提供する指示に従ってOpenSuseのアップグレードを実行しました。しかし、それはまだ動作しているようには見えません。 – Boardy

+0

'ps auxwww | grep mono'と投稿! –

答えて

3

実行しているから、あなたはMOD-モノSERVER4の代わりSERVER2を設定する必要があります。そして、この記事に続き

http://docs.orchardproject.net/Documentation/Running-Orchard-on-Mono?Code=1

あなたのApacheの設定に行く、と/ usr/binに/ MOD-モノSERVER4(またはあなたのボックスに有効なパス)にMonoServerPathを変更する必要がありますこの属性を適切に処理できるかどうかを再度テストできます。

関連する問題