[Mono-list] mono mkbundle + xsp2.exe problem

Robert Jordan robertj at gmx.net
Fri Dec 17 11:25:24 EST 2010


On 17.12.2010 16:58, XU, Jiangyan wrote:
> Thanks, Robert.
>
> I copied xsp2.exe to "--root" and the program was able to run.
>
> By "deploying gmcs and dependencies" did you mean deploying them not as part
> of the bundle?

Yes, as a separate bundle whose executable or wrapper script
must be named "gmcs". Even then I'm not sure if ASP.NET respectively
System.CodeDom will be able to find "gmcs". IIRC, this script is
expected to be in the PATH.

Robert

> I bundled gmcs.exe (and --deps) with my program but it cannot compile the
> pages.
>
> Exception:
> ===
> System.ApplicationException: Error compiling application file
> ({webroot}/Global.asax).
> at System.Web.HttpApplicationFactory.InitType (System.Web.HttpContext
> context) [0x00000] in<filename unknown>:0
> ===
>
> Best,
> Jiangyan
>
>
> On Wed, Dec 15, 2010 at 2:35 PM, Robert Jordan<robertj at gmx.net>  wrote:
>
>> On 15.12.2010 19:49, XU, Jiangyan wrote:
>>> Hi all,
>>>
>>> I have tried to change $my_web_root to other values and it appears that
>> the
>>> program always tries to search for "xsp2.exe" under the path specified by
>>> "--root".
>>
>> I don't believe mkbundle is able to fulfill ASP.NET's AppDomain
>> requirements. Try to put xsp2.exe, Mono.WebServer2.dll and
>> Mono.Security.dll into the bin-directory of the web application
>> *and* under the path specified by --root.
>>
>> Note that if your site isn't pre-compiled you won't have much
>> fun with it anyways, unless you're deploying gmcs + its
>> dependencies as well.
>>
>> Robert
>>
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
>
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list




More information about the Mono-list mailing list