我有一个简单的helloworld aspx页面,运行单声道2.11.4:
<%@ Page Language="C#" %>
<%
HelloWorldLabel.Text = "Hello, world!";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label runat="server" id="HelloWorldLabel"></asp:Label>
</div>
</form>
</body>
</html>
并且,我一直坚持以下错误:
"S1703: An assembly with the same identity `System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' has already been imported. Consider removing one of the references"
我只有这个页面,没有Web.config的任何内容,但是这个:
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
我的mod_mono.conf:
<IfModule mod_mono.c>
MonoServerPath /opt/mono-2.11/bin/mod-mono-server2
AddType application/x-asp-net .aspx
AddType application/x-asp-net .asmx
AddType application/x-asp-net .ashx
AddType application/x-asp-net .asax
AddType application/x-asp-net .ascx
AddType application/x-asp-net .soap
AddType application/x-asp-net .rem
AddType application/x-asp-net .axd
AddType application/x-asp-net .cs
AddType application/x-asp-net .config
AddType application/x-asp-net .Config
AddType application/x-asp-net .dll
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx
</IfModule>
我试图将单声道版本更改为2.10.8,3.0.2,降级到2.6,重启几次我的httpd,但什么也没得到...... Idk,但是有任何“默认”bin目录,可能在我的服务器中有冲突吗?我真的不知道......
我该如何解决这个问题?