LINQ to SQL dbml file not generating a DataContext class RRS feed

  • Question

  • I know there has to be a simple answer to this, but I can't find it after two hours of googling.  I have a asp.net web application in vs2008 Prof (version 9.0.21022.8 RTM) in vb.net.

    I have created the dbml file after connecting to my SQL server database through Server Explorer.
    I saved the dbml file and built the project.  From what I read this was supposed to create a DataContext class that I can use to code with LINQ inside my app.  However no class is being created.
    When I right click my dbml file and choose 'Run Custom Tool' I get the error "The custom tool 'MSLinqToSQLGenerator' failed. Object reference not set to an instance of an object."

    I then looked that up and only found something about changing registry keys which I do not want to do.

    Please help.  Thanks
    • Moved by eryang Thursday, September 3, 2009 2:34 AM (From:.NET Base Class Library)
    Tuesday, September 1, 2009 10:24 PM


All replies