January 27, 2020

VS2017 Debugging Error - mscorlib.pdb not loaded

I was running my application in VS2017 and I got this runtime error:

mscorlib.pdb contains the debug information required to find the source for the module mscorlib.dll

The issue was related to the Internal .NET Framework Assembly. You have to stop the debugger from launching Internal .NET Framework Assembly.

Mark the checkbox for Enable Just My Code option as True in Tools > Options > Debugging > General tab.

January 23, 2020

Add Oracle provider in VS2017 for Entity Framework.

I tried using Entity Framework model being generated from Oracle database, I faced issues in connecting to the database and generating model from existing objects.

Here is how you can connect to Oracle 12c database for Entity Framework model in Visual Studio 2017.

  • First you have to install Oracle Developer Tools for Visual Studio 2017. On this link you will find multiple packages for oracle providers. For Visual Studio 2017 you need to install ODAC for VS 2017 12.2.0.1.1. If you have already installed some other version, make sure uninstall that version first before installing this.

  • Second you need to install Nuget Package

     Oracle.ManagedDataAccess.EntityFramework 12.2.1100
      

Now you should be able to connect from Entity Framework model to Oracle 12c database and the solution should build successfully.