The connection name 'OraAspNetConString' was not found in the applications configuration or the connection string is empty.
Recently, I was getting this error when I was working on a web project I've had in my machine for a while.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.Parser Error Message: The connection name 'OraAspNetConString' was not found in the applications configuration or the connection string is empty.
Source Error:
|
Source File: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config Line: 277
After some head-scratching, I realized that I installed Oracle Data Provider for .NET(ODP.net) a couple weeks prior to that. Turns out this installation adds a provider in all providers section listed in machine.config file.
So, the solution was to simple: add a clear statement as the line in a provider sections.
Voila, off I went fine.
Thanks for posting this, helped me resolve in about 10 seconds!
ReplyDeleteThank you! Glad it was helpful
ReplyDelete