locked
ArgumentException registering database RRS feed

  • Question

  • User1974228133 posted

    Hi, 

    I'm new to Visual Studio 2016 and get an ArgumentException when registering the database.

    I set up a vb - asp.net application - dynamic data entities website
    In there I add an ADO.NET entity data model. (Named TestDB - a SQL database on my local PC)

    For registration of the database, I uncomment and change the line in Global.asax:

    DefaultModel.RegisterContext(GetType(TestDBEntities), New ContextConfiguration() With {.ScaffoldAllTables = True})

    On that line, I always get a problem: ArgumentException was unhandled by user code:
    An exception of type 'System.ArgumentException' occurred in System.Web.DynamicData.dll but was not handled in user code
    Additional information: The context type 'TestDBEntities' is not supported.

    However if I look on Internet, I find this as how to do this.
    What is wrong here? 
    Or where can I find how to do this in Visual Studio 2016?

    Thanks in advance,

    Paul

    Monday, December 14, 2015 1:05 PM

Answers