[Mono-aspnet-list] System.Web.Extensions
Robert Jordan
robertj at gmx.net
Thu Apr 22 15:15:28 EDT 2010
On 22.04.2010 19:57, Dirk Roeleveld wrote:
> So what does this tell us?
>
> Should I be referencing it by putting in
> -r:$prefix/lib/mono/2.0/System.Web.Extensions.dll in the command line for
> gmcs? Or does gmcs pay attention to web.config and I should be mentioning
> System.Web.Extensions.dll inside of web.config?
gmcs-r:System.Web.Extensions.dll *must* work if your Mono is correctly
installed and if the assembly exists and it's accessible.
Check the output of
cat `type -p gmcs`
on your system. It must be something like that:
mono $prefix/lib/mono/2.0/gmcs.exe
Does gmcs.exe's path match your $prefix?
On web.config:
Gmcs does not look at it if you compile assemblies manually.
OTOH, compilations triggered by ASP.NET are heavily configured
with a web.config. See the attached generic (boilerplate)
web.config which enables ASP.NET 3.5 for a web application.
>
> Or is this some other way to tell gmcs to look in the GAC?
No. Compilers never look in the GAC because the GAC may
contain several versions of the same assembly.
Robert
>
> Many thanks for your help
>
> On 21 April 2010 16:30, Dirk Roeleveld<dirkroel at gmail.com> wrote:
>
>> Thanks for your response, Robert. I did check and in my
>> /opt/mono/lib/mono/2.0 folder there IS indeed a System.Web.Extensions.dll.
>>
>> It is a symbolic link
>> to ../gac/System.Web.Extensions/3.5.0.0__31bf3856ad364e35/System.Web.Extensions.dll
>>
>>
>>
>> On 21 April 2010 15:15, Robert Jordan<robertj at gmx.net> wrote:
>>
>>> On 21.04.2010 15:07, Mark Devgood wrote:
>>>>
>>>> Not ideal, but my solution was to copy System.Web.Extensions out of the
>>> GAC
>>>> into my own bin folder.
>>>>
>>>> Surely there is a better way though.
>>>
>>> It seems that System.Web.Extensions.dll is missing from your
>>> $prefix/lib/mono/2.0/ directory. I don't know how this could
>>> happen. Maybe due to a bug of your distro's mono packaging...
>>>
>>> Robert
>>>
>>>>
>>>>
>>>> On 20 April 2010 17:49, Mark Devgood [via Mono]<
>>>> ml-node+2017581-855586602-146087 at n4.nabble.com<ml-node%2B2017581-855586602-146087 at n4.nabble.com>
>>> <ml-node%2B2017581-855586602-146087 at n4.nabble.com<ml-node%252B2017581-855586602-146087 at n4.nabble.com>
>>>>
>>>>> wrote:
>>>>
>>>>> Since Mono is supporting Silverlight, surely SOMEONE out there has
>>> managed
>>>>> to compile with System.Web.Extensions?
>>>>>
>>>>> ------------------------------
>>>>> View message @
>>>>> http://n4.nabble.com/System-Web-Extensions-tp2015486p2017581.html
>>>>> To unsubscribe from System.Web.Extensions, click here< (link removed)
>>> ==>.
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Mono-aspnet-list mailing list
>>>> Mono-aspnet-list at lists.ximian.com
>>>> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
>>>
>>>
>>> _______________________________________________
>>> Mono-aspnet-list mailing list
>>> Mono-aspnet-list at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
>>>
>>
>>
>
>
>
> _______________________________________________
> Mono-aspnet-list mailing list
> Mono-aspnet-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: web.config
Type: application/xml
Size: 4507 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20100422/707ec108/attachment-0001.rdf
More information about the Mono-aspnet-list
mailing list