Click here to Skip to main content
16,021,125 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i creating entity framework then it is showing error like below.
how can i solve this error.
Please help me to solve this error.

CSS
Could not parse the configuration file. The error message is: 'The 'data source' keyword is not supported.'. Try editing the file manually and then saving it.
Generated model file: treModel.edmx.
Loading metadata from the database took 00:00:02.5454278.
Generating the model took 00:00:02.2199717.
Unable to update the Web.Config file because of the following exception: 'The 'data source' keyword is not supported.'
Successfully registered the build provider in the Web.Config file.
Writing the .edmx file took 00:00:00.0084904.
Generated model file: treModel.edmx.
Loading metadata from the database took 00:00:02.9408819.
Generating the model took 00:00:01.2660688.
Unable to update the Web.Config file because of the following exception: 'The 'data source' keyword is not supported.'
Successfully registered the build provider in the Web.Config file.
Writing the .edmx file took 00:00:00.0087412.
Posted
Comments
Krunal Rohit 18-Sep-13 9:04am    
Provide your EF Connection String..
Mukesh Bhagat 18-Sep-13 9:08am    
<add name="treEntities" connectionstring="metadata=metadata=res://*/App_Code.treModel.csdl|res://*/App_Code.treModel.ssdl|res://*/App_Code.treModel.msl; provider=System.Data.SqlClient;provider connection string='Data Source=localhost; Initial Catalog=Tre;Integrated Security=True;Connection Timeout=60; multipleactiveresultsets=true'" providername="System.Data.EntityClient">

1 solution

My Entity Connection String is:-

<add name="treEntities" connectionstring="metadata=metadata=res://*/App_Code.treModel.csdl|res://*/App_Code.treModel.ssdl|res://*/App_Code.treModel.msl;provider=System.Data.SqlClient;provider connection string='Data Source=localhost;Initial Catalog=Tre;Integrated Security=True;Connection Timeout=60;multipleactiveresultsets=true'" providername="System.Data.EntityClient">
 
Share this answer
 

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