Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge remove-notes-for-error-messages-2091 into production #2099

Merged
merged 2 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ I am trying to run the code snippets in the documentation but they do not compil

## Error Message

>warning Unhandled Exception: System.MissingMethodException: Method not found: Microsoft.Extensions.DependencyInjection.IServiceCollection
`Unhandled Exception: System.MissingMethodException: Method not found: Microsoft.Extensions.DependencyInjection.IServiceCollection`


## Solution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This knowledge base article explains how to avoid or fix the exception about a m

## Error Message

>warning Exception: A Telerik component on the requested view requires a TelerikRootComponent in MainLayout or a parent component.
`Exception: A Telerik component on the requested view requires a TelerikRootComponent in MainLayout or a parent component.`


## Cause
Expand Down
8 changes: 2 additions & 6 deletions knowledge-base/common-connection-closed.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,11 @@ Cannot import XSLX files which have a lot of records. It works for few records.

The exceptions may be similar to:

>warning Connection disconnected with error 'Error: Server returned an error on close: Connection closed with an error.'
>
Attempting to reconnect to the server...
`Connection disconnected with error 'Error: Server returned an error on close: Connection closed with an error.' Attempting to reconnect to the server...`

Or:

>warning `System.Threading.Tasks.TaskCanceledException`
>
> `A task was canceled.`
`System.Threading.Tasks.TaskCanceledException. A task was canceled.`

## Possible Cause

Expand Down
10 changes: 5 additions & 5 deletions knowledge-base/common-failed-to-find.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ I get a `Failed to find a valid digest in the 'integrity' attribute for resource

## Error Message

>warning Failed to find a valid digest in the 'integrity' attribute for resource 'https://.../_framework/Telerik.Recurrence.dll' with computed SHA-256 integrity ... The resource has been blocked.
>
> Unknown error occured while trying to verify integrity.
>
>Error: Failed to start platform. Reason: TypeError: Failed to fetch
`Failed to find a valid digest in the 'integrity' attribute for resource 'https://.../_framework/Telerik.Recurrence.dll' with computed SHA-256 integrity ... The resource has been blocked.`

`Unknown error occured while trying to verify integrity.`

`Error: Failed to start platform. Reason: TypeError: Failed to fetch`

Other possible resources that may be referred to in the error:
* Telerik.Documents.SpreadsheetStreaming.dll
Expand Down
6 changes: 3 additions & 3 deletions knowledge-base/common-maximum-call-stack-exceeded.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ This knowledge base article deals with the `Maximum call stack size exceeded` er

## Error Message

>warning Microsoft.JSInterop.JSException: Maximum call stack size exceeded
>
> RangeError: Maximum call stack size exceeded
`Microsoft.JSInterop.JSException: Maximum call stack size exceeded`

`RangeError: Maximum call stack size exceeded`

## Cause

Expand Down
28 changes: 14 additions & 14 deletions knowledge-base/common-null-value-parameter-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@ I am getting an error when I am using a Telerik Blazor component in an applicati

The exact error message can vary. Here are just a few examples:

>warning Unhandled exception rendering component: Value cannot be null. (Parameter 'format')
>
```
Unhandled exception rendering component: Value cannot be null. (Parameter 'format')
```

```
System.ArgumentNullException: Value cannot be null. (Parameter 'format')
>
at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
>
at System.String.Format(String format, Object arg0, Object arg1)
>
at Telerik.Blazor.Components.TelerikWizard.get_PagerMessage()

>warning System.ArgumentNullException: Value cannot be null. (Parameter 'format')
>
at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
>
at Telerik.Blazor.Components.Common.Filters.FilterMenu.TelerikFilterMenu.get_FilterMenuSettingsLabel()
at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
at System.String.Format(String format, Object arg0, Object arg1)
at Telerik.Blazor.Components.TelerikWizard.get_PagerMessage()
```

```
System.ArgumentNullException: Value cannot be null. (Parameter 'format')
at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
at Telerik.Blazor.Components.Common.Filters.FilterMenu.TelerikFilterMenu.get_FilterMenuSettingsLabel()
```

## Possible Cause

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@ This knowledge base article deals with the following issues:

## Error Message

>warning The nuget command failed with exit code and error
>
> NU1202: Package Telerik.Pivot.Core 0.1.1 is not compatible with net80 (.NETFramework,Version=v8.0). Package Telerik.Pivot.Core 0.1.1 supports: netstandard2.1 (.NETStandard,Version=v2.1)
>
> NU1202: Package Telerik.Pivot.DataProviders.Xmla 0.1.1 is not compatible with net80 (.NETFramework,Version=v8.0). Package Telerik.Pivot.DataProviders.Xmla 0.1.1 supports:
netstandard2.1 (.NETStandard,Version=v2.1)
>
> Packages failed to restore.
```
The nuget command failed with exit code and error

NU1202: Package Telerik.Pivot.Core 0.1.1 is not compatible with net80 (.NETFramework,Version=v8.0). Package Telerik.Pivot.Core 0.1.1 supports: netstandard2.1 (.NETStandard,Version=v2.1)

NU1202: Package Telerik.Pivot.DataProviders.Xmla 0.1.1 is not compatible with net80 (.NETFramework,Version=v8.0). Package Telerik.Pivot.DataProviders.Xmla 0.1.1 supports: netstandard2.1 (.NETStandard,Version=v2.1)

Packages failed to restore.
```

Similar errors can mention `net70 (.NETFramework,Version=v7.0)` or `net60 (.NETFramework,Version=v6.0)`.

Expand Down
2 changes: 1 addition & 1 deletion knowledge-base/common-partial-localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ The following repository contains translations provided by the community. You ca

Apart from missing localization strings, you may occasionally experience an error, similar to this one:

>warning Unhandled exception rendering component: Value cannot be null. (Parameter 'format')
`Unhandled exception rendering component: Value cannot be null. (Parameter 'format')`

See knowledge base article [Value cannot be null. (Parameter 'format')]({%slug common-kb-null-value-parameter-format%}) for more details.
20 changes: 13 additions & 7 deletions knowledge-base/dpl-allocate-memory-error.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,19 @@ When I try to Generate or Export documents through the Telerik Document Processi

## Error Message

>warning WASM: Error: Garbage collector could not allocate 16384 bytes of memory for major heap section

>warning WASM: * Assertion at /mnt/jenkins/workspace/test-mono-mainline-wasm/label/ubuntu-1804-amd64/mono/utils/lock-free-alloc.c:145, condition `sb_header' not met, function:alloc_sb, Failed to allocate memory for the lock free allocator

>warning dotnet.js:1 Uncaught RuntimeError: abort(undefined). Build with -s ASSERTIONS=1 for more info.
> at abort (http://localhost:62774/_framework/wasm/dotnet.js:1:16107)
> at _abort (http://localhost:62774/_framework/wasm/dotnet.js:1:117299)
```
WASM: Error: Garbage collector could not allocate 16384 bytes of memory for major heap section
```

```
WASM: * Assertion at /mnt/jenkins/workspace/test-mono-mainline-wasm/label/ubuntu-1804-amd64/mono/utils/lock-free-alloc.c:145, condition 'sb_header' not met, function:alloc_sb, Failed to allocate memory for the lock free allocator
```

```
dotnet.js:1 Uncaught RuntimeError: abort(undefined). Build with -s ASSERTIONS=1 for more info.
at abort (http://localhost:62774/_framework/wasm/dotnet.js:1:16107)
at _abort (http://localhost:62774/_framework/wasm/dotnet.js:1:117299)
```


## Possible Cause
Expand Down
13 changes: 7 additions & 6 deletions knowledge-base/dropdowns-readonly-struct-error.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ res_type: kb
## Description
When using the combo box component when the desired data is list of readonly structs there is a null reference exception and the combo box does not work.

## Error Message
A typical error would be null reference exception like the one below:

```
NullReferenceException: Object reference not set to an instance of an object.
Telerik.Blazor.Components.TelerikComboBox<TItem, TValue>.<OnParametersSetAsync>b__70_0(ListDataItem item)
```

## Steps to Reproduce

Expand Down Expand Up @@ -53,12 +60,6 @@ Selected value: @selectedValue
}
````

## Error Message
A typical error would be null reference exception like the one below

>warning NullReferenceException: Object reference not set to an instance of an object.
Telerik.Blazor.Components.TelerikComboBox<TItem, TValue>.<OnParametersSetAsync>b__70_0(ListDataItem item)

## Possible Cause
The components require a model when binding so it can be instantiated with a parameterless constructor. This is a requirement that comes down to the forms validation that they must support and getting the `Default` value and object. Structs do not have a parameterless constructor.

Expand Down
14 changes: 5 additions & 9 deletions knowledge-base/fileselect-autofac.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,11 @@ This knowledge base article deals with the following issues:

## Error Message

>warning Microsoft.JSInterop.JSException
>
> JsonException: JSON serialization is attempting to deserialize an unexpected byte array.
>
> StackTrace:
>
> at System.Threading.Tasks.ValueTask`1.get_Result()
>
> at Telerik.Blazor.Components.FileSelect.Stream.FileInfoStream.&lt;ReadBytesAsync&gt;d__24.MoveNext()
```
Microsoft.JSInterop.JSException: JSON serialization is attempting to deserialize an unexpected byte array.
at System.Threading.Tasks.ValueTask`1.get_Result()
at Telerik.Blazor.Components.FileSelect.Stream.FileInfoStream.&lt;ReadBytesAsync&gt;d__24.MoveNext()
```


## Cause
Expand Down
7 changes: 4 additions & 3 deletions knowledge-base/fileselect-stream-exception.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ The FileSelect `Stream` (`FileInfoStream`) has exposed methods that are "not imp

## Error Message

>warning System.NotImplementedException: The method or operation is not implemented.
>
at Telerik.Blazor.Components.FileSelect.Stream.FileInfoStream.Read()
```
System.NotImplementedException: The method or operation is not implemented.
at Telerik.Blazor.Components.FileSelect.Stream.FileInfoStream.Read()
```

The same exception will occur for the following methods and properties:

Expand Down
12 changes: 7 additions & 5 deletions knowledge-base/grid-filtering-null-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ res_type: kb
For our current project, we are grabbing data from the server and using it to dynamically populate a `TelerikGrid` in Blazor. This is causing an issue with filtering in the `Grid`.

## Error Message
>warning `System.NullReferenceException: Object reference not set to an instance of an object.` <br />
>`at Telerik.Blazor.Components.Common.Filters.FilterList.TelerikFilterList.GetFilterOperators()`
>`at Telerik.Blazor.Components.Common.Filters.FilterList.TelerikFilterList.InitFilterOperators()`
>`at Telerik.Blazor.Components.Common.Filters.FilterList.TelerikFilterList.OnInitializedAsync()`
>`at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()`
```
System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Blazor.Components.Common.Filters.FilterList.TelerikFilterList.GetFilterOperators()
at Telerik.Blazor.Components.Common.Filters.FilterList.TelerikFilterList.InitFilterOperators()
at Telerik.Blazor.Components.Common.Filters.FilterList.TelerikFilterList.OnInitializedAsync()
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
```

## Possible Cause
The possible reason for this error is a missing `FieldType` from the column that you try to filter.
Expand Down
18 changes: 12 additions & 6 deletions knowledge-base/grid-json-serializer-null-membertype.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,24 @@ I see errors when I load the Grid state at initialization (`OnStateInit` event h

The exception messages can vary, for example:

>warning System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Blazor.Common.Filter.FilterOperatorFactory.GetFilterOperatorsForType(Type type, ITelerikStringLocalizer localizer)
```
System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Blazor.Common.Filter.FilterOperatorFactory.GetFilterOperatorsForType(Type type, ITelerikStringLocalizer localizer)
```

Or alternatively:

>warning System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Blazor.Components.Common.Filters.FilterList.TelerikFilterList.GetFilterOperators()
at Telerik.Blazor.Components.Common.Filters.FilterList.TelerikFilterList.InitFilterOperators()
```
System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Blazor.Components.Common.Filters.FilterList.TelerikFilterList.GetFilterOperators()
at Telerik.Blazor.Components.Common.Filters.FilterList.TelerikFilterList.InitFilterOperators()
```

If the Grid is bound to **OData**, the OData query may be incorrect and the following exception may occur:

>warning A binary operator with incompatible types was detected. Found operand types '...' and '...' for operator kind '...'.", "type": "Microsoft.OData.ODataException".
```
A binary operator with incompatible types was detected. Found operand types '...' and '...' for operator kind '...'.", "type": "Microsoft.OData.ODataException".
```


## Possible Cause
Expand Down
2 changes: 1 addition & 1 deletion knowledge-base/keynotfoundexception-inputelementvalue.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ When I set the focus on a DatePicker or DateInput and tab to switch to another c

## Error Message

>warning System.Collections.Generic.KeyNotFoundException: The given key 'inputElementValue' was not present in the dictionary.
`System.Collections.Generic.KeyNotFoundException: The given key 'inputElementValue' was not present in the dictionary.`


## Possible Cause
Expand Down
8 changes: 4 additions & 4 deletions knowledge-base/nest-render-fragment.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ The Blazor app produces exceptions when using `RenderFragment` templates in Tele

The exception message can vary by component name, but the common wording will be similar to:

>warning The child content element `ChildContent` of component `GridCommandColumn` uses the same parameter name (`context`) as enclosing child content element `ChildContent` of component `EditForm`. Specify the parameter name like: `<ChildContent Context="another_name">` to resolve the ambiguity.
`The child content element ChildContent of component GridCommandColumn uses the same parameter name (context) as enclosing child content element ChildContent of component EditForm. Specify the parameter name like: <ChildContent Context="another_name"> to resolve the ambiguity.`

or

>warning The child content element `DetailTemplate` of component `TelerikGrid` uses the same parameter name (`context`) as enclosing child content element `DetailTemplate` of component `TelerikGrid`. Specify the parameter name like: `<DetailTemplate Context="another_name">` to resolve the ambiguity.
`The child content element DetailTemplate of component TelerikGrid uses the same parameter name (context) as enclosing child content element DetailTemplate of component TelerikGrid. Specify the parameter name like: <DetailTemplate Context="another_name"> to resolve the ambiguity.`

or

>warning RZ9999: The child content element `Template` of component `GridColumn` uses the same parameter name (`context`) as enclosing child content element ... of component .... Specify the parameter name like `<Template Context="another_name">` to resolve the ambiguity.
`RZ9999: The child content element Template of component GridColumn uses the same parameter name (context) as enclosing child content element ... of component .... Specify the parameter name like <Template Context="another_name"> to resolve the ambiguity.`

You may also see the following error:

>warning Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type.
`Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type.`


## Possible Cause
Expand Down
2 changes: 1 addition & 1 deletion knowledge-base/requires-valueexpression.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ I have a Telerik input component (such as a texbox, or an autocomplete, or a dro

## Error Message

>warning Error SystemInvalidOperationException: Telerik.Blazor.Components.SomeComponent requires a value for 'ValueExpression'. ValueExpression is provided automatically when using 'bind-Value'
`Error SystemInvalidOperationException: Telerik.Blazor.Components.SomeComponent requires a value for 'ValueExpression'. ValueExpression is provided automatically when using 'bind-Value'`

## Possible Cause

Expand Down
24 changes: 15 additions & 9 deletions knowledge-base/root-component-null-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,21 @@ res_type: kb

When running a Telerik Blazor application I receive an error similar to the following:

>warning `System.NullReferenceException` <br />
> `at Telerik.Blazor.Components.RootComponent.TelerikRootComponentFragment.Dispose()`
> `at Microsoft.AspNetCore.Components.Rendering.ComponentState.Dispose()`

>warning `NullReferenceException: Object reference not set to an instance of an object.`
> `at Telerik.Blazor.Components.RootComponent.TelerikRootComponentFragmentBase.Dispose()`

>warning `Object reference not set to an instance of an object.`
> `at Telerik.Blazor.Components.TelerikRootComponentFragmentBase.OnInitAsync()`
```
System.NullReferenceException
at Telerik.Blazor.Components.RootComponent.TelerikRootComponentFragment.Dispose()
at Microsoft.AspNetCore.Components.Rendering.ComponentState.Dispose()
```

```
NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Blazor.Components.RootComponent.TelerikRootComponentFragmentBase.Dispose()
```

```
Object reference not set to an instance of an object.
at Telerik.Blazor.Components.TelerikRootComponentFragmentBase.OnInitAsync()
```


## Possible Cause
Expand Down
2 changes: 1 addition & 1 deletion knowledge-base/slider-max-parameter-zero-error.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ res_type: kb
I'm using the Telerik Slider, and I can't set Max to 0. When I set the Max parameter to zero, the component throws an error.

## Error Message
>warning ArgumentException: Telerik.Blazor.Components.TelerikSlider`1[System.Int32] requires the Max parameter.
``ArgumentException: Telerik.Blazor.Components.TelerikSlider`1[System.Int32] requires the Max parameter.``

## Possible Cause
The `Max` parameter is a required attribute and the component is checking if it is set. If the developer doesn't set any value for `Max` and the Slider `Value` type is `int`, then the `Max` parameter value will match the default value of the `int` type. This causes the observed error. The default value for the non-nullable `int` type is 0, and when you explicitly set `Max` to 0, the component acts like there is no parameter value set and still throws the error.
Expand Down
2 changes: 1 addition & 1 deletion knowledge-base/typescript-exports-error.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Then, if you add a workaround that is commonly offered on the Internet for that,

you will get an error similar to

>warning `Microsoft.JSInterop.JSException: Could not find 'TelerikBlazor' in 'window'.`
`Microsoft.JSInterop.JSException: Could not find 'TelerikBlazor' in 'window'.`

## Possible Cause

Expand Down
Loading
Loading