현재 웹 서버를 Windows에서 Linux로 변경하는 중입니다. 나는 현재 내 사이트에서 실행되는 asp.net 프로그램을 가지고 있으며 이것을 모노에서 리눅스로 작업하려고 노력하고 싶다.Mono Linux에서 ASP.net 실행
내 테스트 리눅스 서버에 내 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. net 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
실수로 mod-mono-server2를 설치 했습니까? (mod-mono-server4는 설치하지 않았습니까?) –
안녕하세요. 당신의 도움을 주셔서 감사합니다. 내가 yast에서 볼 때 나는 apache2-mod_mono 만 보았다. Mono에서 제공하는 지침에 따라 OpenSuse의 업그레이드를 실행했습니다. 하지만 여전히 작동하지 않는 것 같습니다. – Boardy
'ps auxwww | grep mono'와 포스트! –