Mono Support Could not load file or assembly 'MonoSoftware.Web.WAO' or one of its dependencies.  

Viewed 27132 time(s), 11 post(s), 5/27/2013 11:50:11 AM - by mev9669
5/27/2013 11:50:11 AM
515 Reputation 67 Total posts

Hi,

I have created a simple web service in the web application. it works perfect when I access the web service on the local machine. but i get the below error when I access the web service on the web server.

erver Error in '/Service' Application.Could not load file or assembly 'MonoSoftware.Web.WAO' or one of its dependencies. The system cannot find the file specified.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'MonoSoftware.Web.WAO' or one of its dependencies. The system cannot find the file specified.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'MonoSoftware.Web.WAO' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace: 

[FileNotFoundException: Could not load file or assembly 'MonoSoftware.Web.WAO' or one of its dependencies. The system cannot find the file specified.]
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) +70
System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +39
System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +62
System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +57
System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +38

[ConfigurationErrorsException: Could not load file or assembly 'MonoSoftware.Web.WAO' or one of its dependencies. The system cannot find the file specified.]
System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +346
System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, Boolean checkAptcaBit) +20
System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName, String propertyName, ConfigurationElement configElement) +40
System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) +47
System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +161
System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1036
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +80
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +176
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +332
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +182

[HttpException (0x80004005): Could not load file or assembly 'MonoSoftware.Web.WAO' or one of its dependencies. The system cannot find the file specified.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +552
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +189

1
5/27/2013 12:15:30 PM
1849 Reputation 181 Total posts

You probably didn't deployed "MonoSoftware.Web.WAO.dll" to the bin folder on the server.

2
5/27/2013 12:17:24 PM
515 Reputation 67 Total posts

Thats what I thought. But the file does exist on the server.

3
5/27/2013 12:56:11 PM
1849 Reputation 181 Total posts

Did you check all other .dll files in the bin folder?

4
5/27/2013 12:57:37 PM
515 Reputation 67 Total posts

Which other files need to be added? the site works fine as a website. I get this error only when i access the web service.

5
5/27/2013 1:05:15 PM
1849 Reputation 181 Total posts

For the beginning, please ensure that you have deployed all the .dll files from your local environment on the server.  

6
5/27/2013 1:06:13 PM
515 Reputation 67 Total posts

Yes. I am uploading all the dll files to server to check this.

7
5/27/2013 1:09:50 PM
1849 Reputation 181 Total posts

Please let me know if it helped you.

8
5/27/2013 1:10:56 PM
515 Reputation 67 Total posts

I have uploaded all the files to the server. Still the same error.

9
5/27/2013 1:57:12 PM
1849 Reputation 181 Total posts

Can you give us the URL of your site? 

10
1 2
This is a demo site for MonoX. Please visit Mono Software for more info.