asp.net 网站发布在centos 出现如下问题:

lu5462mj 发布于 2012/05/24 14:31
阅读 1K+
收藏 0
Server Error in '/' Application
Compilation Error

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

Compiler Error Message: : at System.Reflection.AssemblyName..ctor (System.String assemblyName) [0x00000] in <filename unknown>:0
/MasterPage.master
Show Detailed Compiler Output:

gmcs /target:library /lib:"/usr/local/apache/htdocs/Bin" /debug- /optimize+ /warn:0 /out:"/tmp/daemon-temp-aspnet-0/fa654860/App_Web_MasterPage.master.5bb98e7c.7ed91afb.dll" /r:"/usr/local/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll" /r:"/usr/local/lib/mono/gac/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll" /r:"/usr/local/lib/mono/gac/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll" /r:"/usr/local/lib/mono/gac/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll" /r:"/usr/local/lib/mono/gac/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll" /r:"/usr/local/lib/mono/gac/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll" /r:"/usr/local/lib/mono/gac/System.Runtime.Serialization/3.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll" /r:"/usr/local/lib/mono/gac/System.IdentityModel/3.0.0.0__b77a5c561934e089/System.IdentityModel.dll" /r:"/usr/local/lib/mono/gac/System.ServiceModel/3.0.0.0__b77a5c561934e089/System.ServiceModel.dll" /r:"/usr/local/lib/mono/gac/System.ServiceModel.Web/3.5.0.0__31bf3856ad364e35/System.ServiceModel.Web.dll" /r:"/usr/local/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll" /r:"/usr/local/lib/mono/gac/System.Data.OracleClient/2.0.0.0__b77a5c561934e089/System.Data.OracleClient.dll" /r:"/usr/local/lib/mono/gac/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll" /r:"/usr/local/lib/mono/gac/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll" /r:"/usr/local/lib/mono/gac/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll" /r:"/usr/local/lib/mono/gac/System.Configuration.Install/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.Install.dll" /r:"/usr/local/lib/mono/gac/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll" /r:"/usr/local/apache/htdocs/Bin/Maticsoft.BLL.dll" /r:"/usr/local/apache/htdocs/Bin/Maticsoft.Common.dll" /r:"/usr/local/apache/htdocs/Bin/Maticsoft.DAL.dll" /r:"/usr/local/apache/htdocs/Bin/Maticsoft.DBUtility.dll" /r:"/usr/local/apache/htdocs/Bin/Maticsoft.Model.dll" /r:"/usr/local/apache/htdocs/Bin/Microsoft.Practices.EnterpriseLibrary.Common.dll" /r:"/usr/local/apache/htdocs/Bin/Microsoft.Practices.EnterpriseLibrary.Data.dll" /r:"/usr/local/apache/htdocs/Bin/Microsoft.Web.UI.WebControls.dll" /r:"/usr/local/apache/htdocs/Bin/MySql.Data.dll"  /nowarn:0169  -- "/tmp/daemon-temp-aspnet-0/fa654860/App_Web_MasterPage.master.5bb98e7c.7ed91afb_0.cs" "/tmp/daemon-temp-aspnet-0/fa654860/App_Web_MasterPage.master.5bb98e7c.7ed91afb_1.cs" 


Unhandled Exception: System.IO.FileLoadException: The assembly name is invalid.
  at System.Reflection.AssemblyName..ctor (System.String assemblyName) [0x00000] in :0 
  at Mono.CSharp.ImportedAssemblyDefinition.ReadAttributes () [0x00000] in :0 
  at Mono.CSharp.MetadataImporter.GetAssemblyDefinition (System.Reflection.Assembly assembly) [0x00000] in :0 
  at Mono.CSharp.ReflectionImporter.ImportAssembly (System.Reflection.Assembly assembly, Mono.CSharp.RootNamespace targetNamespace) [0x00000] in :0 
  at Mono.CSharp.DynamicLoader.LoadReferences (Mono.CSharp.ModuleContainer module) [0x00000] in :0 
  at Mono.CSharp.Driver.Compile () [0x00000] in :0 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in :0 

Version information: Mono Runtime Version: 2.10.2 (tarball Mon May 21 23:44:45 PDT 2012); ASP.NET Version: 2.0.50727.1433
加载中
0
l
lu5462mj
自己回答:centos需要注册mysqll的dll下载相应版本进行注册就可以了
返回顶部
顶部