tags:

views:

318

answers:

1

hello all

while creating the entity model I am getting the following error .

Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. Added the connection string to Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. The model was generated with warnings or errors. Please see the Error List for more details. These issues must be fixed before running your application. Loading metadata from database took 00:00:03.1640453. Generating model took 00:00:02.7085734. Writing out the EDMX file took 00:00:00.0687825. The 'connectionStrings' start tag on line 33 does not match the end tag of 'configuration'. Line 164, position 3. Added the connection string to Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. ERROR: Unable to generate model because of the following exception: 'Value does not fall within the expected range.'. Loading metadata from database took 00:00:01.6530243. Generating model took 00:00:00.9475225. Writing out the EDMX file took 00:00:00. Added the connection string to Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. ERROR: Unable to generate model because of the following exception: 'Value does not fall within the expected range.'. Loading metadata from database took 00:00:01.6441323. Generating model took 00:00:00.8377128. Writing out the EDMX file took 00:00:00. Added the connection string to Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. ERROR: Unable to generate model because of the following exception: 'Value does not fall within the expected range.'. Loading metadata from database took 00:00:02.8477066. Generating model took 00:00:00.8298924. Writing out the EDMX file took 00:00:00. Added the connection string to Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. ERROR: Unable to generate model because of the following exception: 'Value does not fall within the expected range.'. Loading metadata from database took 00:00:01.7778770. Generating model took 00:00:00.8204455. Writing out the EDMX file took 00:00:00. Added the connection string to Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. ERROR: Unable to generate model because of the following exception: 'Value does not fall within the expected range.'. Loading metadata from database took 00:00:01.7504937. Generating model took 00:00:00.9764878. Writing out the EDMX file took 00:00:00. Added the connection string to Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. ERROR: Unable to generate model because of the following exception: 'Value does not fall within the expected range.'. Loading metadata from database took 00:00:02.6867518. Generating model took 00:00:01.0360631. Writing out the EDMX file took 00:00:00. Added the connection string to Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. ERROR: Unable to generate model because of the following exception: 'Value does not fall within the expected range.'. Loading metadata from database took 00:00:02.6111025. Generating model took 00:00:00.8483035. Writing out the EDMX file took 00:00:00. Added the connection string to Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. ERROR: Unable to generate model because of the following exception: 'Value does not fall within the expected range.'. Loading metadata from database took 00:00:02.7983079. Generating model took 00:00:00.8814964. Writing out the EDMX file took 00:00:00. Added the connection string to Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. ERROR: Unable to generate model because of the following exception: 'Value does not fall within the expected range.'. Loading metadata from database took 00:00:02.4586043. Generating model took 00:00:00.9564520. Writing out the EDMX file took 00:00:00. Added the connection string to Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. The model was generated with warnings or errors. Please see the Error List for more details. These issues must be fixed before running your application. Loading metadata from database took 00:00:03.0524830. Generating model took 00:00:01.7847510. Writing out the EDMX file took 00:00:00.0035825. Added the connection string to Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. ERROR: Unable to generate model because of the following exception: 'Value does not fall within the expected range.'. Loading metadata from database took 00:00:01.8458430. Generating model took 00:00:01.7587581. Writing out the EDMX file took 00:00:00. Added the connection string to Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. ERROR: Unable to generate model because of the following exception: 'Value does not fall within the expected range.'. Loading metadata from database took 00:00:02.1113369. Generating model took 00:00:00.8723360. Writing out the EDMX file took 00:00:00. Added the connection string to Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. ERROR: Unable to generate model because of the following exception: 'Value does not fall within the expected range.'. Loading metadata from database took 00:00:02.7187070. Generating model took 00:00:01.3675289. Writing out the EDMX file took 00:00:00. Added the connection string to Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config. ERROR: Unable to generate model because of the following exception: 'Value does not fall within the expected range.'. Loading metadata from database took 00:00:02.1203632. Generating model took 00:00:00.8390920. Writing out the EDMX file took 00:00:00.

All the tables are getting created but the BC_States table is not getting created.I can't understand why.Please help

Thanks Ritz

A: 

The question is not readable but I found the similar question at Ado.Net Entity Data Model Not Updating Correctly.

As for me (I had the same problem) the issue was because of there was no primary key set on one of the tables.

Regent