c# - Converting .Net 1.0 to 2.0 causes System.TypeInitializationException error -


i have converted .net 1.0 project .net 2.0 , fixed bugs related conversion. project build succeeded , loaded in browser, when code tries access database, through database db = databasefactory.createdatabase();

i error in code here

microsoft.practices.enterpriselibrary.data.database db =     microsoft.practices.enterpriselibrary.data.databasefactory.createdatabase(); 

i copied same microsoft.practices.enterpriselibrary dlls .net 1.0 version 2.0 assembly. causing issue ?

i getting below error:

system.typeinitializationexception: type initializer 'microsoft.practices.enterpriselibrary.data.databasefactory' threw exception. ---> system.configuration.configurationexception: unrecognized attribute 'type' (c:\windows\microsoft.net\framework\v2.0.50727\config\machine.config line 32) @ microsoft.practices.enterpriselibrary.configuration.configurationfile.readsectiongroup(xmltextreader reader, string configkey) @ microsoft.practices.enterpriselibrary.configuration.configurationfile.readconfigsections(xmltextreader reader, string configkey) @ microsoft.practices.enterpriselibrary.configuration.configurationfile.readconfiguration(xmltextreader reader) @ microsoft.practices.enterpriselibrary.configuration.configurationfile.load(string filename) @ microsoft.practices.enterpriselibrary.configuration.configurationbuilder.loadmetaconfiguration(string configurationfile) @ microsoft.practices.enterpriselibrary.configuration.configurationmanager..ctor() @ microsoft.practices.enterpriselibrary.configuration.configurationmanager.get_current() @ microsoft.practices.enterpriselibrary.configuration.configurationmanager.getcurrentcontext() @ microsoft.practices.enterpriselibrary.data.databaseproviderfactory..ctor() @ microsoft.practices.enterpriselibrary.data.databasefactory..cctor() --- end of inner exception stack trace --- @ microsoft.practices.enterpriselibrary.data.databasefactory.createdatabase()


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -