Friday, June 15, 2012

Entity Framework 4 Issue

Format of the initialization string does not conform to specification starting at index 99.

Solution:
This issue is mostly caused by the incorrect connection string.If you change connection string manually you will probably get this error and solution is very simple.
  • Go on App.config and remove exiting connection string.
  • No open edmx and right click as shown in figure below



  • Fill your database credential



You connection string issue is resolved and you will not get issue
Format of the initialization string does not conform to specification starting at index 99.

2 comments:

  1. If you haven't used stored procedure in Entity framework it may also cause this error :D

    ReplyDelete
  2. The incorrect connection string issue will not be resolved by the stored procedures either. :)
    But if you are such a fan of stored procedures you can use stored procedure to update primary keys in entity framework or where required.
    Overusing a feature kill its benefits.

    ReplyDelete