Skip to content

Commit 73c9c37

Browse files
Merge pull request #4699 from syncfusion-content/104365-hot1
documentation(104365): Textbox troubleshoot information included in h…
2 parents b863bc2 + 64b2bdd commit 73c9c37

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

blazor-toc.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4384,6 +4384,7 @@
43844384
<li> <a href="/blazor/textbox/how-to/customize-the-textbox-background-color-and-text-color">Customize the TextBox Background-color and Text-color</a></li>
43854385
<li> <a href="/blazor/textbox/how-to/create-components-dynamically">Create TextBox component dynamically</a></li>
43864386
<li> <a href="/blazor/textbox/how-to/create-custom-component-with-validation">Create custom component with validation</a></li>
4387+
<li> <a href="/blazor/textbox/how-to/troubleshoot">Troubleshoot</a></li>
43874388
</ul>
43884389
</li>
43894390
<li>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
layout: post
3+
title: How to troubleshoot exceptions in TextBox Blazor | Syncfusion
4+
description: Checkout and learn here all about troubleshooting server and client exceptions in Blazor TextBox component.
5+
platform: Blazor
6+
component: Common
7+
documentation: ug
8+
---
9+
10+
# How to troubleshoot exceptions in Blazor TextBox
11+
12+
<!-- markdownlint-disable MD036 -->
13+
14+
## Runtime exceptions
15+
16+
* **InvalidOperationException: Cannot provide a value for property 'SyncfusionService' on type 'Syncfusion.Blazor.Inputs.SfTextBox'**
17+
18+
You may see the below runtime exception while running the application for the first time.
19+
20+
E> **InvalidOperationException:** Cannot provide a value for property 'SyncfusionService' on type 'Syncfusion.Blazor.Inputs.SfTextBox'. There is no registered service of type 'Syncfusion.Blazor.SyncfusionBlazorService'.
21+
22+
**Cause:**
23+
24+
This exception thrown because you missed registering the `SyncfusionBlazorService` in `Program.cs`.
25+
26+
**Solution:**
27+
28+
You can register the `SyncfusionBlazorService` in `Program.cs` file to resolve the exception.
29+
30+
```c#
31+
using Syncfusion.Blazor;
32+
....
33+
builder.Services.AddSyncfusionBlazor();
34+
```
35+
36+
## See also
37+
38+
* [Common Troubleshoot](https://blazor.syncfusion.com/documentation/common/how-to/troubleshoot)

0 commit comments

Comments
 (0)