c# - vnext (asp .net 5.0) and oracle -


i created vnext solution in visual studio ultimate 2015 ctp version 14.0.22609.0 d14rel , in package manager added oracle managed driver.

install-package odp.net.managed 

then in config.json

"data": {         "defaultconnection": {             "connectionstring": "server=(localdb)\\mssqllocaldb;database=aspnet5-vnext-237fb18c-c414-44a8-8771-e02d4719d1dc;trusted_connection=true;multipleactiveresultsets=true"         },         "hr": {             "connectionstring": "data source=(description=(address=(protocol=tcp)(host=localhost)(port=1521))(connect_data=(sid=mydatabase))); user id=hr; password=xxxxxxx;", "providername":"oracle.manaagedatacess.client"         }      }, 

when attempted use in class

using system; using oracle.manageddataaccess.client; using system.configuration;  namespace vnext.models {     internal class datahelper     {         oracleconnection cn = new oracleconnection(configurationmanager.connectionstrings["hr"].connectionstring);     } } 

lots of compile errors such type or namespace oracle, configuration, , oracleconnection not found missing assembly reference? project vnext asp.net core 5.0

christian shay right... there tweak. didn't tested try comment dnxcore50 in project.json follows:

"frameworks": { "dnx451": { }   }, 

since default web template targets both full .net , .net core, oracle managed driver framework not available in .net core. can comment out. should able build , run solution out error.

update : removed /* dnxcore50": { } */


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -