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:


Line 275:    <siteMap>
Line 276:      <providers>
Line 277:        <add name="OracleSiteMapProvider" type="Oracle.Web.SiteMap.OracleSiteMapProvider, Oracle.Web, Version=4.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342" connectionStringName="OraAspNetConString" applicationName="" securityTrimmingEnabled="true"/>
Line 278:      </providers>
Line 279:    </siteMap>

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.

Comments

Post a Comment

Popular posts from this blog

Testing PDF forms with merge code fields - let's just build a tool

Dynamics CRM implementation: lessons learnt

Moving data? Integrating systems? Right ETL tool is your best friend