[Mono-devel-list] Monodoc Web Application Problems

Gonzalo Paniagua Javier gonzalo at ximian.com
Wed Jul 14 23:13:19 EDT 2004


El mié, 14-07-2004 a las 22:46, MET escribió:
> I'm trying to get the monodoc web application to work without any luck. 
> I have mod-mono-server.exe running via Apache2 just fine as it serves
> other applications.
> 
> So what I've done is copy the web directory from within monodoc/browser
> into a html directory and set it up fine within httpd.conf.  I then
> point my browser to it and the page dies with errors.
> 
> ===
> Description: Error compiling a resource required to service this
> request. Review your source file and modify it to fix this error. 
> 
> Error message: /tmp/35897.cs(28,0) : error CS0246: Cannot find type
> `RootTree' /tmp/35897.cs(21,0) : error CS0246: The namespace `Monodoc'
> can not be found (missing assembly reference?) (0,0) : error failed: 2
> error(s), 0 warnings
> ===
> 
> I have monodoc installed on the machine (it even works through X
> forwarding) and $PKG_CONFIG_PATH is also setup.

The problem here is that, yes, monodoc is there in the GAC, but unless
told otherwise, mcs and asp.net compilation classes don't know anything
about it.

Possible solutions are:
      * Copy your monodoc.dll in bin.
      * Copy monodoc.dll to $PREFIX/lib/mono/1.0 and add a @assembly in
        the pages you want (mcs will be able to find it when
        -r:monodoc.dll is provided)
      * Add a CompilationOptions="-pkg:monodoc" attribute to your page.

I prefer the first one.

-Gonzalo





More information about the Mono-devel-list mailing list