I'm trying to get a vulnerable practice ASP.NET web application (WebGoat.NET) installed on Apache Mono on Ubuntu. I've followed this guide and it all went smoothly; however, whenever I try to run the app I get this error:
The type or namespace name `log4net' could not be found. Are you missing a using directive or an assembly reference?
Log4net.dll is in the lib folder of the application directory. It's also in the /usr/lib/mono/gac directory. I'm not sure where else it needs to be. Any suggestions? Thanks!
Put in the
bin/
folder of your web application?I also followed that guide and received the log4net could not be found error. To fix it I followed the steps in the official readme under the heading How To Build And Run under Mac OS X and Linux.
After following this guide, I did the following as per the readme:
apt-get install sqlite3 libsqlite3-dev
cd /var/www/webgoat-net/
) and runxbuild
apt-get install mono-xsp4
cd /var/www/webgoat-net/WebGoat/
) and run:xsp4
Fill in the database form:
Data Provider: Sqlite
Data File Path:
/var/www/webgoat-net/sqlite3/webgoat.db
Client Executable:
/usr/bin/sqlite3
and click 'Rebuild Database'.