mySQL on CentOS with MONO 2 installed

Topics: ASP.NET 2.0
Jun 25, 2009 at 9:36 AM

I have tested MONO on CentOS 64 bit and the default page shows.

I tested my Blog on my windows machine and all works well using mySQL as the provider...

I am using the mySQL connector version 6.0.4.0 and have amended my web.config.

 

 

When I attempt to load the blog website i get one of the following errors:

Error 500<!-- body {font-family:"Verdana","DejaVu Sans",sans-serif;font-weight:normal;font-size: .7em;color:black;background-color: white} p {font-family:"Verdana","DejaVu Sans",sans-serif;font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana","DejaVu Sans",sans-serif;font-weight:bold;color:black;margin-top: -5px} h1 { font-family:"Verdana","DejaVu Sans",sans-serif;font-weight:normal;font-size:18pt;color:red } h2 { font-family:"Verdana","DejaVu Sans",sans-serif;font-weight:normal;font-size:14pt;color:maroon } pre,code {font-family:"Lucida Console","DejaVu Sans Mono",monospace;font-size: 0.9em,white-space: pre-line} div.bodyText {font-family: "Verdana","DejaVu Sans",sans-serif} table.sampleCode {width: 100%; background-color: #ffffcc; } .errorText {color: red; font-weight: bold} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:pointer; } -->

Server Error in '/' Application


Could not load file or assembly 'MySql.Data, Version=6.0.4.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D' or one of its dependencies. The system cannot find the file specified.

Description: HTTP 500. Error processing request.

Stack Trace:

System.IO.FileNotFoundException: Could not load file or assembly 'MySql.Data, Version=6.0.4.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D' or one of its dependencies. The system cannot find the file specified.
File name: 'MySql.Data, Version=6.0.4.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D'
at System.AppDomain.Load (System.String assemblyString, System.Security.Policy.Evidence assemblySecurity, Boolean refonly) [0x00000]
at System.AppDomain.Load (System.String assemblyString) [0x00000]
at (wrapper remoting-invoke-with-check) System.AppDomain:Load (string)
at System.Reflection.Assembly.Load (System.String assemblyString) [0x00000]
at System.Web.Compilation.BuildManager.LoadAssembly (System.Web.Configuration.AssemblyInfo info, System.Collections.Generic.List`1 al) [0x00000]
at System.Web.Compilation.BuildManager.GetReferencedAssemblies () [0x00000]
at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.Web.VirtualPath virtualPath, System.CodeDom.Compiler.CompilerParameters options) [0x00000]
at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.CodeDom.Compiler.CompilerParameters options) [0x00000]
at System.Web.Compilation.AppResourcesAssemblyBuilder.BuildAssembly (System.String cultureName, System.Collections.Generic.List`1 files, System.String defaultAssemblyKey, System.CodeDom.CodeCompileUnit unit) [0x00000]
at System.Web.Compilation.AppResourcesAssemblyBuilder.Build (System.CodeDom.CodeCompileUnit unit) [0x00000]
at System.Web.Compilation.AppResourcesCompiler.CompileGlobal () [0x00000]
at System.Web.Compilation.AppResourcesCompiler.Compile () [0x00000]
at System.Web.HttpApplicationFactory.InitType (System.Web.HttpContext context) [0x00000]

Version information: Mono Version: 2.0.50727.1433; ASP.NET Version: 2.0.50727.1433

 

 

or

 

  2.

 

Error 500body {font-family:"Verdana","DejaVu Sans",sans-serif;font-weight:normal;font-size: .7em;color:black;background-color: white} p {font-family:"Verdana","DejaVu Sans",sans-serif;font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana","DejaVu Sans",sans-serif;font-weight:bold;color:black;margin-top: -5px} h1 { font-family:"Verdana","DejaVu Sans",sans-serif;font-weight:normal;font-size:18pt;color:red } h2 { font-family:"Verdana","DejaVu Sans",sans-serif;font-weight:normal;font-size:14pt;color:maroon } pre,code {font-family:"Lucida Console","DejaVu Sans Mono",monospace;font-size: 0.9em,white-space: pre-line} div.bodyText {font-family: "Verdana","DejaVu Sans",sans-serif} table.sampleCode {width: 100%; background-color: #ffffcc; } .errorText {color: red; font-weight: bold} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:pointer; }

Server Error in '/' Application


Sharing violation on path /tmp/apache-temp-aspnet-0/4db0300d/Resources.labels.resources

Description: HTTP 500. Error processing request.

Stack Trace:

System.IO.IOException: Sharing violation on path /tmp/apache-temp-aspnet-0/4db0300d/Resources.labels.resources
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync, Boolean anonymous) [0x00000] 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access) [0x00000] 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess)
  at System.Web.Compilation.AppResourcesCompiler.CompileResource (System.Web.Compilation.AppResourceFileInfo arfi, Boolean local) [0x00000] 


Version information: Mono Version: 2.0.50727.1433; ASP.NET Version: 2.0.50727.1433 <!-- [System.Web.HttpException]: Failed to compile resource file at System.Web.Compilation.AppResourcesCompiler.CompileResource (System.Web.Compilation.AppResourceFileInfo arfi, Boolean local) [0x00000] at System.Web.Compilation.AppResourcesCompiler.GetResourceFile (System.Web.Compilation.AppResourceFileInfo arfi, Boolean local) [0x00000] at System.Web.Compilation.AppResourcesCompiler.GroupGlobalFiles () [0x00000] at System.Web.Compilation.AppResourcesCompiler.CompileGlobal () [0x00000] at System.Web.Compilation.AppResourcesCompiler.Compile () [0x00000] at System.Web.HttpApplicationFactory.InitType (System.Web.HttpContext context) [0x00000] [System.IO.IOException]: Sharing violation on path /tmp/apache-temp-aspnet-0/4db0300d/Resources.labels.resources at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync, Boolean anonymous) [0x00000] at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access) [0x00000] at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess) at System.Web.Compilation.AppResourcesCompiler.CompileResource (System.Web.Compilation.AppResourceFileInfo arfi, Boolean local) [0x00000] -->

 

 

<!-- [System.IO.FileNotFoundException]: Could not load file or assembly 'MySql.Data, Version=6.0.4.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D' or one of its dependencies. The system cannot find the file specified. at System.AppDomain.Load (System.String assemblyString, System.Security.Policy.Evidence assemblySecurity, Boolean refonly) [0x00000] at System.AppDomain.Load (System.String assemblyString) [0x00000] at (wrapper remoting-invoke-with-check) System.AppDomain:Load (string) at System.Reflection.Assembly.Load (System.String assemblyString) [0x00000] at System.Web.Compilation.BuildManager.LoadAssembly (System.Web.Configuration.AssemblyInfo info, System.Collections.Generic.List`1 al) [0x00000] at System.Web.Compilation.BuildManager.GetReferencedAssemblies () [0x00000] at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.Web.VirtualPath virtualPath, System.CodeDom.Compiler.CompilerParameters options) [0x00000] at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.CodeDom.Compiler.CompilerParameters options) [0x00000] at System.Web.Compilation.AppResourcesAssemblyBuilder.BuildAssembly (System.String cultureName, System.Collections.Generic.List`1 files, System.String defaultAssemblyKey, System.CodeDom.CodeCompileUnit unit) [0x00000] at System.Web.Compilation.AppResourcesAssemblyBuilder.Build (System.CodeDom.CodeCompileUnit unit) [0x00000] at System.Web.Compilation.AppResourcesCompiler.CompileGlobal () [0x00000] at System.Web.Compilation.AppResourcesCompiler.Compile () [0x00000] at System.Web.HttpApplicationFactory.InitType (System.Web.HttpContext context) [0x00000] -->