[Mono-aspnet-list] The imported type 'ASP.default_asp' is defined multiple times
Gonzalo Paniagua Javier
gonzalo.mono at gmail.com
Fri Jul 31 09:51:20 EDT 2009
On Thu, 2009-07-30 at 21:51 -0700, nzsaint wrote:
> Hi, I have been trying on and off for several months to get my ASP.Net
> website running under openSUSE 11.1 with Mono. I have successfully installed
> mono, mod_mono (with XSP) and mono_basic (which I believe I need as my site
> is written in VB.NET). I can see the XSP test pages Index.aspx and
> Index2.aspx by copying /usr/lib/xsp/test directory to /srv/www/hdtocs and
> adding 'Include /etc/apache2/mod_mono.conf' to ‘/etc/apache2/httpd.conf’ as
> described in the instructions in the Mod Mono documentation. I have version
> 188.8.131.52-17.1 of mono-complete installed.
> I decided to create the simplest website possible in VS.NET 2005 by creating
> a new site with just the default page of 'Default.aspx' and some identifying
> text added to the 'Div' element in the middle. The site is called
> 'MonoTest'. I precomiled the site by using the 'Publish Web site' menu
> option in 'VS.NET' with 'Allow this precompiled site to be updateable'
> un-checked. I published it to a file location. I then copied these files to
> /srv/www/MonoTest on my openSUSE OS.
> I then used the the mod-mono configuration utility on the site to generate
> the output for my mod_mono.conf file as shown below (commented lines
> Alias /MonoTest "/srv/www/MonoTest"
> MonoServerPath MonoTest "/usr/bin/mod-mono-server2"
> MonoDebug MonoTest true
> MonoApplications MonoTest "/MonoTest:/srv/www/MonoTest"
> <Location "/MonoTest">
> Allow from all
> Order allow,deny
> MonoSetServerAlias MonoTest
> SetHandler mono
> When I browse to http://localhost/MonoTest I get the error below:
> CS0433: The imported type `ASP.default_aspx' is defined multiple times
> Description: HTTP 500. Error processing request.
> Stack Trace:
> System.Web.Compilation.CompilationException: CS0433: The imported type
> `ASP.default_aspx' is defined multiple times
> at System.Web.Compilation.AssemblyBuilder.BuildAssembly
There are 2 things off here. One is that mono should not be compiling
anything because it's a precompiled site. The other one is that the
compiler error is a C# error, not VB.NET...
Have you tried running it using xsp2 instead of apache/mod_mono?
More information about the Mono-aspnet-list