[Mono-list] C++/CLI

Jonathan Pryor jonpryor at vt.edu
Wed Aug 27 16:05:31 EDT 2008

On Wed, 2008-08-27 at 13:24 +1000, Adelle Hartley wrote:
> I have built an assembly in Visual C++ 2005 with the /clr:safe compiler 
> option, following the instructions from here:
>    http://www.mono-project.com/CPlusPlus

> The console application works, but the asp web site does not.
> This is the error that I get on the web site:
> Parser Error
> Description: Error parsing a resource required to service this request. 
> Review your source file and modify it to fix this error.
> Error message:
> Assembly Microsoft.VisualC, Version=, Culture=neutral, 
> PublicKeyToken=B03F5F7F11D50A3A not found
> I know from trying to get the console application to work, that any CRT 
> dependancy is a problem, but if the C++ assembly depends on Microsoft 
> CRT, then why would the console application work?

That error message implies that it's looking for the assembly
Microsoft.VisualC.dll, which isn't the C runtime (MSVCRT.DLL, etc.), but
a support assembly.

Mono does provide a Microsoft.VisualC.dll assembly, and you likely don't
have it installed.  You need to install the libmono-microsoft7.0-cil
and libmono-microsoft8.0-cil packages.

You can use `apt-file` to find which packages provide a given file; in
this case `apt-file search Microsoft.VisualC.dll` would return the above
two packages.

(Thanks to meebey and directhex for the apt-file information...)

 - Jon

More information about the Mono-list mailing list