# Scaffold problem

**URL:** <https://forum.radzen.com/t/scaffold-problem/18945>\
**Category:** Radzen Blazor Studio\
**Created:** [November 2, 2024, 11:33am UTC](https://forum.radzen.com/t/scaffold-problem/18945 "2024-11-02T11:33:04Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Djordje](https://forum.radzen.com/letter_avatar_proxy/v4/letter/d/f475e1/32.png) [@Djordje](https://forum.radzen.com/u/Djordje)\
**Post date:** [November 2, 2024, 11:33am UTC](https://forum.radzen.com/t/scaffold-problem/18945/1 "2024-11-02T11:33:04Z")

</div>

I am working on database first project and have some changes in a database so I tried to scaffold database objects but have an error that looks like this:

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

This error is received through a window that has the label " **Inferring data source**" with a lot of following text that describe in a .NET manner what was going wrong.

As I did it several times before the same process I need to know what I have done wrong. Compiled application works with no problem and compilation is with no errors.

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [November 2, 2024, 3:22pm UTC](https://forum.radzen.com/t/scaffold-problem/18945/2 "2024-11-02T15:22:21Z")

</div>

Probably the connection string to the database is wrong. Did you change anything in it? Password maybe?

---

<div class="post-metadata">

**Author:** ![Djordje](https://forum.radzen.com/letter_avatar_proxy/v4/letter/d/f475e1/32.png) [@Djordje](https://forum.radzen.com/u/Djordje)\
**Post date:** [November 2, 2024, 3:26pm UTC](https://forum.radzen.com/t/scaffold-problem/18945/3 "2024-11-02T15:26:34Z")

</div>

That connection string is the very same string that application run with.

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [November 2, 2024, 7:45pm UTC](https://forum.radzen.com/t/scaffold-problem/18945/4 "2024-11-02T19:45:51Z")

</div>

In that case we are not sure what went wrong. This message [indicates a bad connection string](https://stackoverflow.com/questions/8243008/format-of-the-initialization-string-does-not-conform-to-specification-starting-a).

---

<div class="post-metadata">

**Author:** ![Djordje](https://forum.radzen.com/letter_avatar_proxy/v4/letter/d/f475e1/32.png) [@Djordje](https://forum.radzen.com/u/Djordje)\
**Post date:** [November 3, 2024, 4:44pm UTC](https://forum.radzen.com/t/scaffold-problem/18945/5 "2024-11-03T16:44:01Z")

</div>

Can you help me where can I find records that are in the section "Choose an existing data source" maybe I could solve the problem when I delete or edit them.

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [November 3, 2024, 5:19pm UTC](https://forum.radzen.com/t/scaffold-problem/18945/6 "2024-11-03T17:19:06Z")

</div>

Those "records" are parsed from your source code. You can't delete them. You can try recreating the data source as a new one. Make sure to use the exact same name as before. I still think there is a problem with the connection string (which is stored in appsetings.json/appsettings.Development.json).

---

<div class="post-metadata">

**Author:** ![mherman](https://forum.radzen.com/letter_avatar_proxy/v4/letter/m/47e85d/32.png) [@mherman](https://forum.radzen.com/u/mherman)\
**Post date:** [August 5, 2025, 12:17pm UTC](https://forum.radzen.com/t/scaffold-problem/18945/7 "2025-08-05T12:17:10Z")

</div>

I am running into the same error message. Up until recently, I was able to work around this by recreating the data source as you mentioned above (with the same exact name). My development database was hosted on Azure with SQL Authentication. Company Policy now dictates that SQL Authentication is no longer permitted and we must use Entra ID Authentication. I switched the connection string in appsettings.Development.json to use Authentication='Active Directory Default' and the application now works in Radzen Blazor Studio and Visual Studio 2022. Unfortunately, I cannot use the Radzen scaffolding capabilities because of the error message. I cannot use the workaround by recreating the data source because the only Authentication types in the Authentication Type dropdown (on the MSSQL connection page) are "SQL Login" and "Windows". Is there some other workaround?

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [August 5, 2025, 12:55pm UTC](https://forum.radzen.com/t/scaffold-problem/18945/8 "2025-08-05T12:55:43Z")

</div>

Hi @mherman,

I am not sure I understand what the problem is. When do you get this error message? What steps should we perform in order to reproduce the error in a test project?

---

<div class="post-metadata">

**Author:** ![mherman](https://forum.radzen.com/letter_avatar_proxy/v4/letter/m/47e85d/32.png) [@mherman](https://forum.radzen.com/u/mherman)\
**Post date:** [August 5, 2025, 2:04pm UTC](https://forum.radzen.com/t/scaffold-problem/18945/9 "2025-08-05T14:04:46Z")

</div>

Here is how I got the error message:

1. Open existing application in Radzen Blazor Studio
2. On the main Radzen Blazor Studio page, click on the Data button
3. On the "Create or Update a data source" page, click on the existing data source
4. Press Next
5. On "Inferring data source" page, received this message: _Format of the initialization string does not conform to specification starting at index 0_.

To recreate this issue, you may need to use an Azure SQL Server database. I realize that this is beyond the scope of normal support. Performing a google search for the error, I see that this is **not** a _Radzen_ error message, but it is a _Microsoft_ error message. Therefore it is probably not something that you can fix or debug. Unfortunately, that Microsoft error message does not tell me what it can't understand in the connection string. When I run the app in Visual Studio, it works fine.

I may need to copy the database schema to a local SQL server in order to use the Radzen scaffolding.

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [August 5, 2025, 2:08pm UTC](https://forum.radzen.com/t/scaffold-problem/18945/10 "2025-08-05T14:08:23Z")

</div>

Can you please share the connection string? You can set it via email to [info@radzen.com](mailto:info@radzen.com). Perhaps this would allow us to find the cause of the exception.

The strange thing is that the app runs with the same connection string (or does it)? Is the connection string in appsettings.json and appsettings.Development.json the same?
