Click here to Skip to main content
15,904,416 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have install oracle 11g in my computer and i want to connect my database "xyz "
with my asp.net webapplication.
my connection string.
HTML
<connectionstrings>
  <add name="OracleDatabase">
     connectionString="Data Source=xyz ;User ID=SCOTT;Password=tiger;"/&gt;
</add></connectionstrings>

And when iam trying to run my program i am getting an error
An OLE DB Provider was not specified in the ConnectionString. An example would be, 'Provider=SQLOLEDB;'

please help.
Posted
Updated 2-Sep-12 5:05am
v2
Comments
[no name] 2-Sep-12 7:33am    
www.connectionstrings.com

1 solution

I guess you have forgotten to include the providerName for your connection string.

If you are using ODT it should look something like this
<add name="ConnectionString" connectionstring="Data Source=xyz;User Id=SCOTT;Password=tiger;" providername="Oracle.DataAccess.Client" />

Or of you are using the ms oracle provider is should look like this:
<add name="ConnectionString" connectionstring="Data Source=xyz;User Id=SCOTT;Password=tiger;">
providerName="System.Data.OracleClient" />
</add>



Best regards
Espen Harlinn
 
Share this answer
 
Comments
Sandeep Mewara 2-Sep-12 10:36am    
Good answer. 5!
Espen Harlinn 2-Sep-12 14:53pm    
Thank you, Sandeep :-D
Wendelius 2-Sep-12 11:22am    
Exactly, 5'd :)
Espen Harlinn 2-Sep-12 14:54pm    
Thank you, Mika :-D
__TR__ 2-Sep-12 12:32pm    
My 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900