Mono Support Runtime error: any help ? (Closed)

Viewed 28230 time(s), 7 post(s), 8/8/2013 2:39:42 PM - by super
8/8/2013 2:39:42 PM
6018 Reputation 709 Total posts

I am suddenly getting run time error message when I try to run the website.

Here is the log error message:

2013-08-08 10:37:10,058 [5] ERROR MonoX [BaseHttpApplication] - Application Error
System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified. (C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config line 266) ---> System.IO.FileNotFoundException: Could not load file or assembly 'MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
   at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
   at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
   at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
   at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)
   --- End of inner exception stack trace ---
   at System.Web.Security.Roles.Initialize()
   at System.Web.Security.RoleManagerModule.OnEnter(Object source, EventArgs eventArgs)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2013-08-08 10:37:10,425 [8] ERROR MonoX [BaseHttpApplication] - Application Error
System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified. (C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config line 266) ---> System.IO.FileNotFoundException: Could not load file or assembly 'MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
   at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
   at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
   at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
   at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)
   --- End of inner exception stack trace ---
   at System.Web.Security.Roles.Initialize()
   at System.Web.Security.RoleManagerModule.OnEnter(Object source, EventArgs eventArgs)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2013-08-08 10:37:28,008 [8] ERROR MonoX [BaseHttpApplication] - Application Error
System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified. (C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config line 266) ---> System.IO.FileNotFoundException: Could not load file or assembly 'MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
   at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
   at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
   at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
   at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)
   --- End of inner exception stack trace ---
   at System.Web.Security.Roles.Initialize()
   at System.Web.Security.RoleManagerModule.OnEnter(Object source, EventArgs eventArgs)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
(fyi - I just installed mysql on my machine) if that helps ?

1
8/8/2013 2:49:05 PM
1849 Reputation 181 Total posts

MySql is not supported by MonoX.

2
8/8/2013 2:56:34 PM
6018 Reputation 709 Total posts

Yes, but me installing mysql has nothing to do with monox. I am not trying to install monox on mysql.

I already have installed monox and running the site on my local machine without any problem (sql server).

I just installed mysql on my machine for other applications and it seems like monox is not running on machine on which mysql is installed.

3
8/8/2013 3:03:57 PM
15993 Reputation 2214 Total posts

Hi,

as you said MonoX has nothing to do with MySQL and in this case some application or even MySQL has written something to your machine.config which requires MySQL.Web assembly. This will affect all .NET applications not only the MonoX so please try to check if any other .NET app is working on your machine and get back to us.

2013-08-08 10:37:10,058 [5] ERROR MonoX [BaseHttpApplication] - Application Error
System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified. (C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config line 266) ---> System.IO.FileNotFoundException: Could not load file or assembly 'MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies


Regards

4
8/8/2013 3:19:41 PM
6018 Reputation 709 Total posts

Khorvat, 

I just uninstalled mysql from my machine and monox is working fine now. Seems like it was def mysql that was affecting the monox application.

5
8/8/2013 3:28:33 PM
15993 Reputation 2214 Total posts

I'll quote my self, 

as you said MonoX has nothing to do with MySQL and in this case some application or even MySQL has written something to your machine.config which requires MySQL.Web assembly. This will affect all .NET applications not only the MonoX so please try to check if any other .NET app is working on your machine and get back to us.
If MySQL sets MySQL.Web assembly dependency in machine.config then all .NET applications will be affected so  "please try to check if any other .NET app is working on your machine and get back to us". 

This is not related to MonoX but to .NET in general.

Regards

6
8/8/2013 3:53:15 PM
6018 Reputation 709 Total posts

Yes - thank you for the information

7
This is a demo site for MonoX. Please visit Mono Software for more info.