Exceptions not allowing NDatabase use on ASP.NET web forms project in VS

Nov 13, 2013 at 6:07 PM
Edited Nov 14, 2013 at 7:30 AM
Hello, I seem to recieve two exceptions when trying to use NDatabase, in an ASP.NET web forms project, which would have run fine if it were in a console application or WPF project. I can't figure out how to fix it, so I'm coming here as a last ditch effort.

The two errors are:
Error:10:Internal error : Error during opening FileStream
and
Error 1002, Incompatible Meta-Model

Neither is present in other forms of projects, using the same methods, and class structure.
Coordinator
Nov 14, 2013 at 4:36 PM
Hello,
could you please send the sample code reproducing the issue? Unfortunately, it's not possible to find the problem having in mind only details you put above.

Thanks,
Jacek
Nov 14, 2013 at 7:23 PM
Edited Nov 15, 2013 at 9:29 AM
    private const string dbFileName = "ndb.db";

    public static void Store(Media media)
    {
        using (var odb = OdbFactory.Open(dbFileName))
        {
            odb.Store(media);

            odb.Commit();
        }
    }
It is a very simple procedure, not any different from the tutorials. It only generates, as I mentioned, in a ASP.NET web forms projectin Visual Studio.

The media class is quite simple, but I'll post the values which it has:
static int idcounter;
private string _title;
private uint _id;
private List<Genre> _genres; //enum type
private Dictionary<string, int> _tags;

EDIT:
It seems that the enum type Genre caused these problems, which used Enum Extentions using System.ComponentModel and System.Reflection, to create an attribute called DescriptionAttribute. Other Enums which did not use this attribute worked fine.