[Mono-list] cannot find metadata file

Stefano77 stefano.bianchi at softeco.it
Thu May 14 05:26:50 EDT 2009


Hi,
I am new to Mono and a dummy in Linux (a disaster, I'd say).
I am experiencing similar problems when trying to setup mono on centOS 5.3
and see the demo shipped with release 2.4.
In particular, I can see the index.aspx and index2.aspx in my
/opt/mono/lib/xsp/test folder, but any link I click on gives me back an
error similar to the following:

Server Error in '/demo' 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: CS0006: cannot find metadata file
`/tmp/daemon-temp-aspnet-0/e831c5dc/App_global.asax.4966b3a2.dll'
/demo/2.0/menu/index.aspx
Show Detailed Compiler Output:
gmcs /target:library /debug- /optimize+ /warn:0
/out:"/tmp/daemon-temp-aspnet-0/e831c5dc/App_Web_d2a5153.dll"
/r:"/opt/mono/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll"
/r:"/opt/mono/lib/mono/gac/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll"
/r:"/opt/mono/lib/mono/gac/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll"
/r:"/opt/mono/lib/mono/gac/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll"
/r:"/opt/mono/lib/mono/gac/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll"
/r:"/opt/mono/lib/mono/gac/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll"
/r:"/opt/mono/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll"
/r:"/tmp/daemon-temp-aspnet-0/7b163829/assembly/shadow/ccd3e603/cb960d4c_0745eb4f_00000001/SiteMapReader_1.1.dll"
/r:"/tmp/daemon-temp-aspnet-0/7b163829/assembly/shadow/8352dca0/841737ef_0745eb4f_00000001/codebehind1.dll"
/r:"/tmp/daemon-temp-aspnet-0/7b163829/assembly/shadow/0440b00a/03055b45_0745eb4f_00000001/extensions.dll"
/r:"/tmp/daemon-temp-aspnet-0/7b163829/assembly/shadow/43d7fe1e/44921551_0745eb4f_00000001/tabcontrol.dll"
/r:"/tmp/daemon-temp-aspnet-0/7b163829/assembly/shadow/37477a00/3002914f_0745eb4f_00000001/tabcontrol2.dll"
/r:"/tmp/daemon-temp-aspnet-0/7b163829/assembly/shadow/f185c3b9/f6c028f6_0745eb4f_00000001/treeview.dll"
/r:"/tmp/daemon-temp-aspnet-0/7b163829/assembly/shadow/784a7141/7f0f9a0e_0745eb4f_00000001/typedesc.dll"
/r:"/tmp/daemon-temp-aspnet-0/e831c5dc/App_global.asax.4966b3a2.dll"
/r:"/tmp/daemon-temp-aspnet-0/e831c5dc/App_Code.11d3007f.dll"
/r:"/tmp/daemon-temp-aspnet-0/e831c5dc/App_Web_268cbe9b.dll"
/r:"/opt/mono/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll"
/r:"/opt/mono/lib/mono/gac/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll"
/r:"/opt/mono/lib/mono/gac/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll"
/r:"/opt/mono/lib/mono/gac/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll"
/r:"/opt/mono/lib/mono/gac/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll"
/r:"/opt/mono/lib/mono/gac/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll"
/r:"/opt/mono/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll"
/r:"/tmp/daemon-temp-aspnet-0/7b163829/assembly/shadow/ccd3e603/cb960d4c_0745eb4f_00000001/SiteMapReader_1.1.dll"
/r:"/tmp/daemon-temp-aspnet-0/7b163829/assembly/shadow/8352dca0/841737ef_0745eb4f_00000001/codebehind1.dll"
/r:"/tmp/daemon-temp-aspnet-0/7b163829/assembly/shadow/0440b00a/03055b45_0745eb4f_00000001/extensions.dll"
/r:"/tmp/daemon-temp-aspnet-0/7b163829/assembly/shadow/43d7fe1e/44921551_0745eb4f_00000001/tabcontrol.dll"
/r:"/tmp/daemon-temp-aspnet-0/7b163829/assembly/shadow/37477a00/3002914f_0745eb4f_00000001/tabcontrol2.dll"
/r:"/tmp/daemon-temp-aspnet-0/7b163829/assembly/shadow/f185c3b9/f6c028f6_0745eb4f_00000001/treeview.dll"
/r:"/tmp/daemon-temp-aspnet-0/7b163829/assembly/shadow/784a7141/7f0f9a0e_0745eb4f_00000001/typedesc.dll"
/r:"/tmp/daemon-temp-aspnet-0/e831c5dc/App_global.asax.4966b3a2.dll"
/r:"/tmp/daemon-temp-aspnet-0/e831c5dc/App_Code.11d3007f.dll"
/r:"/tmp/daemon-temp-aspnet-0/e831c5dc/App_Web_268cbe9b.dll"  /nowarn:0169 
-- "/tmp/daemon-temp-aspnet-0/e831c5dc/App_Web_4a7454fa_0.cs" 

error CS0006: cannot find metadata file
`/tmp/daemon-temp-aspnet-0/e831c5dc/App_global.asax.4966b3a2.dll'
error CS0006: cannot find metadata file
`/tmp/daemon-temp-aspnet-0/e831c5dc/App_Code.11d3007f.dll'
error CS0006: cannot find metadata file
`/tmp/daemon-temp-aspnet-0/e831c5dc/App_Web_268cbe9b.dll'
error CS0006: cannot find metadata file
`/tmp/daemon-temp-aspnet-0/e831c5dc/App_global.asax.4966b3a2.dll'
error CS0006: cannot find metadata file
`/tmp/daemon-temp-aspnet-0/e831c5dc/App_Code.11d3007f.dll'
error CS0006: cannot find metadata file
`/tmp/daemon-temp-aspnet-0/e831c5dc/App_Web_268cbe9b.dll'

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

I have no idea of what recompiling is, and BTW this comes for the demo
shipped with mono, not with an application of mine.
What do "error CS0006" lines mean?

Thank you very much and congratulations for your technical effort.

Cheers
Stefano



Danny Waite wrote:
> 
> 
> Hi All,
>  
> Sorry to come back to you on this one, but I'm having troubles getting
> this working.
>  
> I've now pre-compiled my web app using VS2008 and Web Deployment Tool.
>  
> When I browse to the URL I get:
>  
> "This is a marker file generated by the precompilation tool".
>  
> What needs to be done to the apache configuration, ie. which extensions
> should be passed to mod_mono.
>  
> I know I'm missing something very silly.
>  
> TIA -- Danny
> 
> ----------------------------------------
>> Date: Thu, 30 Apr 2009 16:57:47 +0100
>> Subject: Re: [Mono-list] cannot find metadata file
>> From: donbonifacio at gmail.com
>> To: dannywaite7 at hotmail.com
>> CC: mono-list at lists.ximian.com
>>
>>> Interesting! Thanks Pedro. What do you mean by precompile?
>>
>> I mean this:
>> http://gonzalo.name/blog/archive/archive-2009-Feb.html
>>
>> Our deploy process sends everything to a Web folder and then we call
>> (using nant);
>>
>>> basedir="H:\WINDOWS\Microsoft.NET\Framework\v2.0.50727"
>> program="aspnet_compiler"
>> commandline="-nologo -f -c -fixednames -p Deploy/Web -v /
>> Deploy/WebPrecompiled/" />
>>
>> This creates a WebPrecompiled folder with everything precompiled. The
>> first access is faster because mono doesn't need to compile
>> aspx/master/etc.
>>
>> Hope this helps,
>> BR
>>
>> On Thu, Apr 30, 2009 at 4:49 PM, Danny Waite wrote:
>>>
>>> Interesting! Thanks Pedro. What do you mean by precompile? I'm using the
>>> publish function in Visual Studio (gulp) I saw that there is better
>>> support for that in 2.4 however maybe thats a bad way to do things.
>>>
>>> ----------------------------------------
>>>> Date: Thu, 30 Apr 2009 16:33:03 +0100
>>>> Subject: Re: [Mono-list] cannot find metadata file
>>>> From: donbonifacio at gmail.com
>>>> To: dannywaite7 at hotmail.com
>>>> CC: mono-list at lists.ximian.com
>>>>
>>>> I also experienced that behavior. What we now do is precompile
>>>> everything. That way our websites never get that error when mono tries
>>>> to compile them. :-)
>>>>
>>>> On Thu, Apr 30, 2009 at 4:21 PM, Danny Waite wrote:
>>>>>
>>>>> Hi All,
>>>>>
>>>>> I've been through various mono versions over time and have seen this
>>>>> error throughout and it really has been beaten! It's an ASP.NET web
>>>>> app, quite a simple one. It works well for a while until we get the
>>>>> following error.
>>>>>
>>>>> If we kill the mod-mono-server2.exe process or restart apache, it
>>>>> stops.
>>>>>
>>>>> Could anyone shed any light onto it before I pull my hair out! :-)
>>>>>
>>>>> Best,
>>>>> Danny
>>>>>
>>>>>
>>>>> 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: CS0006: cannot find metadata file
>>>>> `/tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_18ec48c7.dll'/manage/dynamic-interfaces.aspx
>>>>>
>>>>> Show Detailed Compiler Output:
>>>>>
>>>>>
>>>>> gmcs /target:library /debug+ /optimize- /warn:4
>>>>> /out:"/tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_3639c1f1.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.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll"
>>>>> /r:"/usr/local/lib/mono/gac/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll"
>>>>> /r:"/usr/local/lib/mono/gac/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll"
>>>>> /r:"/tmp/daemon-temp-aspnet-0/ade07c07/assembly/shadow/a41b7686/305f42ab_9444342d_00000001/Mo
>  no.Da
>>>>> ta.SqliteClient.dll"
>>>>> /r:"/tmp/daemon-temp-aspnet-0/ade07c07/assembly/shadow/0c44534b/98006766_9444342d_00000001/Mono.Data.dll"
>>>>> /r:"/tmp/daemon-temp-aspnet-0/ade07c07/assembly/shadow/fa8669ae/6ec25d83_9444342d_00000001/Mono.Posix.dll"
>>>>> /r:"/tmp/daemon-temp-aspnet-0/ade07c07/assembly/shadow/3c856a06/a8c15e2b_9444342d_00000001/Xrio.Enterprise.DataTypes.dll"
>>>>> /r:"/tmp/daemon-temp-aspnet-0/ade07c07/assembly/shadow/7dcf53f1/e98b67dc_9444342d_00000001/Xrio.Standalone.Configuration.dll"
>>>>> /r:"/tmp/daemon-temp-aspnet-0/ade07c07/assembly/shadow/c09555f0/54d161dd_9444342d_00000001/Xrio.Standalone.Service.dll"
>>>>> /r:"/tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_18ec48c7.dll"
>>>>> /r:"/tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_632a571.dll"
>>>>> /nowarn:0169 --
>>>>> "/tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_3639c1f1_0.cs" error
>>>>> CS0006: cannot find metadata file
>>>>> `/tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_18ec48c7.dll'error CS0006:
>>>>> cannot find metadata file
>>>>> `/tmp/daemon-temp-aspnet-0/b5597ee1/App_Web_632a57
>  1.
>>>>> dll'
>>>>>
>>>>> Version information: Mono Version: 2.0.50727.1433; ASP.NET Version:
>>>>> 2.0.50727.1433
>>>>> _______________________________________________
>>>>> Mono-list maillist - Mono-list at lists.ximian.com
>>>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Pedro Santos
>>>> Home - http://psantos.zi-yu.com
>>>> Work - http://www.pdmfc.com
>>>> The future - http://www.orionsbelt.eu
>>
>>
>>
>> --
>> Pedro Santos
>> Home - http://psantos.zi-yu.com
>> Work - http://www.pdmfc.com
>> The future - http://www.orionsbelt.eu
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 

-- 
View this message in context: http://www.nabble.com/cannot-find-metadata-file-tp23318527p23523018.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list