[Mono-dev] Fail to run aspx web application on mod_mono-2.10 ( .Net 4 framework )

Anas Muzakir anas.muzakir at gmail.com
Fri Jul 13 09:52:55 UTC 2012


Hi Rob,

Thanks for reply,

I've tested options.OutputAssembly variable and it points to valid path.
and I also execute mcs manually using string parameter that comes from
BuilArgs function, and i can confirm this manual execution able to generate
the dll file.

i run it with this command : su -s /bin/sh apache -c "mcs .... "

FYI, it fail while trying to build  global.asa


Regards,
Anas

On Tue, Jul 10, 2012 at 7:32 PM, Rob Wilkens <robwilkens at gmail.com> wrote:

>
> If there was a compile time error, you should be seeing output between the
> '' (or '') ..
>
> But it's empty
>
> So what it's telling you is the compile succeeded but the file does not
> exist, or does not exist where it was expected to be found.
>
> Odd sort of error.  Sounds like a configuration issue.
>
> If you want to know what file it's looking for, around line 274 of
> CSharpCodeCompiler.cs, do something before the foreach loop which does
> something like:
> sb.Append("Looking for this file: "+options.OutputAssembly);
>
> IF you don't want to play with the mono source, and instead are looking
> for information on how to configure mono, i hate to suggest this, but
> perhaps mono-devel list is not the place to ask.
>
> -Rob
>
>
> On 07/09/2012 11:42 PM, Anas Muzakir wrote:
>
> Hi All,
>
> I try to porting our web application ( aspx file ) to mono using mono-2.11
> under centOS 6.2
>
> i got issue while running our application under apache webserver
> that mcs wont create dll file on /tmp/apache-temp-aspnet-0/xxxx....
> it able to generate cs file but not the assembly file
>
> i have tried to debug by run the mcs manually using argument that
> generated by mcs/class/System/Microsoft.CSharp/CSharpCodeCompile.cs
> and it works , assembly dll file is successfully generated.
>
> here's the error message at client browser
>
> <!--[System.Exception]: Compiler failed to produce the assembly. Output: ''  at Mono.CSharp.CSharpCodeCompiler.CompileFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00000] in <filename unknown>:0   at Mono.CSharp.CSharpCodeCompiler.CompileAssemblyFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00000] in <filename unknown>:0   at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00000] in <filename unknown>:0   at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.Web.VirtualPath virtualPath, System.CodeDom.Compiler.CompilerParameters options) [0x00000] in <filename unknown>:0   at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.Web.VirtualPath virtualPath) [0x00000] in <filename unknown>:0   at System.Web.Compilation.BuildManager.GenerateAssembly (System.Web.Compilation.AssemblyBuilder abuilder, System.Web.Compilation.BuildProviderGroup group, System.Web.VirtualPath vp, Boolean debug) [0x00000] in <filename unknown>:0   at System.Web.Compilation.BuildManager.BuildInner (System.Web.VirtualPath vp, Boolean debug) [0x00000] in <filename unknown>:0   at System.Web.Compilation.BuildManager.Build (System.Web.VirtualPath vp) [0x00000] in <filename unknown>:0   at System.Web.Compilation.BuildManager.GetCompiledType (System.Web.VirtualPath virtualPath) [0x00000] in <filename unknown>:0   at System.Web.Compilation.BuildManager.GetCompiledType (System.String virtualPath) [0x00000] in <filename unknown>:0   at System.Web.HttpApplicationFactory.InitType (System.Web.HttpContext context) [0x00000] in <filename unknown>:0 -->
>
> and xsp4 will not return this error
>
> testing environment
> - centos 6.2
> - mono.2-11 ( i compile it with --prefix=/opt/mono
> - mod_mono-2.10
> - xsp-2.10.2
>
> apache configuration :
>
> MonoAutoApplication enabled
> MonoServerPath default "/opt/mono/bin/mod-mono-server4"
> MonoPath default "/opt/mono/bin/mono/4.0"
> MonoApplicationConfigDir default "/opt/mono/lib/mono/4.0"
>
>
> Did i miss something on the configuration ?
> or anyone can guide me how to debug this issue  ?
>
> Regards,
> Anas
>
>
>
> _______________________________________________
> Mono-devel-list mailing listMono-devel-list at lists.ximian.comhttp://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120713/fc5bb109/attachment.html>


More information about the Mono-devel-list mailing list