none
Activation error occured while trying to get instance of type Database, key ""

    Pergunta

  • Hi

      I have used Enterprise Data access block(Version 5.0) in asp.net webapplication , which works fine. However when I try to create same stuff in Sharepoint 2010, I get following Error

    Activation error occured while trying to get instance of type Database, key ""

    using Microsoft.Practices.EnterpriseLibrary.Data;

    Page Load

    {

     Database _database = DatabaseFactory.CreateDatabase();

    }

    This is the small code throwing error.(But this works fine in asp.et webapplication)

    I have given the proper reference of DLL's also cretaed Data Block in web.config.

    One thing I have noticed that, (Here I have to give all reference of Enteprise Dll in sharepoint solution, still it throws error.) 

    terça-feira, 7 de agosto de 2012 06:01

Respostas

Todas as Respostas