# 'Page.{class}' does not contain a definition for 'object'

**URL:** <https://forum.radzen.com/t/page-class-does-not-contain-a-definition-for-object/4570>\
**Category:** Blazor Server\
**Created:** [August 7, 2020, 8:24pm UTC](https://forum.radzen.com/t/page-class-does-not-contain-a-definition-for-object/4570 "2020-08-07T20:24:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kim](https://forum.radzen.com/user_avatar/forum.radzen.com/kim/32/9988_2.png) [@kim](https://forum.radzen.com/u/kim)\
**Post date:** [August 7, 2020, 8:24pm UTC](https://forum.radzen.com/t/page-class-does-not-contain-a-definition-for-object/4570/1 "2020-08-07T20:24:21Z")

</div>

Hello!

Currently I'm implementing internationalization in my Blazor app, where the user can change language and all the texts must update without any type of refresh. For real time updates, I'm binding strings from a method located in a service, to the Text properties. Here's an example using the PanelMenu:

 ![image](https://forum.radzen.com/uploads/default/original/2X/c/cd6e75c3dc0194da8618d03b50984088a4e143f1.png)  
It is working perfectly for the layouts but the same process gives me an error in the pages:  
 ![image](https://forum.radzen.com/uploads/default/original/2X/2/2c3b869a84b2fce14838bdd793401c5955bd7faa.png)  
Here's a page without the bindings and the service injection:  
 ![image](https://forum.radzen.com/uploads/default/original/2X/5/5367f5c70b071d111491ed591338556858843103.png)  
This happens right after injecting the service, as follows:  
 ![image](https://forum.radzen.com/uploads/default/original/2X/9/93c1d7fa72adde34a30c0a35debe1a5a4bab3e34.png)  
And this is the respective .razor page:  
 ![image](https://forum.radzen.com/uploads/default/original/2X/3/30207773905b8bbdb819d7260ba7efd4539d2a7a.png)  
The other service mentioned in the error messages has the following enum:  
 ![image](https://forum.radzen.com/uploads/default/original/2X/2/2d76be8a6b8e22a8742ce5f40022ff55540a1828.png)

---

<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 8, 2020, 5:06am UTC](https://forum.radzen.com/t/page-class-does-not-contain-a-definition-for-object/4570/2 "2020-08-08T05:06:25Z")

</div>

Hi @kim,

It seems Radzen cannot determine the type of the service correctly and generate correct code for design time. Can you zip your application and send it to [info@radzen.com](mailto:info@radzen.com)? Delete the bin, obj and wwwroot directories to keep the file size smaller.
