Server Side localisation working on local but not on my server

Hi great Support,

I have server side localisation. Every thing working perfectly while debugging on local.

But i have hosted on IIS server some how its not working;
Here is my Startup implementation;


Culture controller;


Localizer;


My resource files are in seperated shared file like this;


Lastly my iis host source file looks like this;


Do you have any idea why its not working?

In local, i am entering this url and localizations just works;
http://localhost:53416/Culture/SetCulture?culture=de&redirectUri=%2Ftanimlar

5 Replies 1 reply marked as answer

SU Sridurgha Uthayakumaran Syncfusion Team September 29, 2020 02:38 PM UTC

Hi, 
 
Thanks for contacting Syncfusion support. 
 
We have checked your query and we have published the Blazor server application with localization from Visual Studio using folder publish. Then, deployed the folder using IIS and we are not able to reproduce the reported issue in our end. We request you to ensure the below suggestion for clear understanding of your problem.   

Check whether the “wwwroot” folder in published location have “_content” folder
 
   
   
 
We have used the Blazor Localization sample from the below link. 
 
 
Reference Image 
 
   
 
Also, we ask you to share more details of your deployment procedure, images, video (screen capture), sample application(if possible) for better illustration of your problem if we misunderstood your point.  
 
Please get back to us with requested details and further query if any. 
 
Regards,  
Sridurgha U  


Marked as answer

BL Blazor September 29, 2020 05:42 PM UTC

Sridurgha  Thanks,

I have just fixed with github sample project help. My lang. packages placed wrong file path while publishing.


SU Sridurgha Uthayakumaran Syncfusion Team September 30, 2020 09:00 AM UTC

Hi, 

We are glad to hear that your issue has been resolved. 

Please get back to us if you need any further assistance. We will be happy to help you as always. 

Regards, 
Sridurgha U 



SZ Szoke July 7, 2023 08:07 PM UTC

HI,

Unfortunately, we made this mistake: the localizer works well locally, but not when uploaded to IIS.

resx file exists:


{appname}.resource.dll exists:




wwwroot>_content ok:


What could be the problem ?



AK Arun Kumar Ragu Syncfusion Team July 10, 2023 03:58 PM UTC

Hi,

Thanks for contacting Syncfusion support. 

Based on the query raised. We have created a Blazor server application using .NET 7 as the target framework. In the application, we have included a calendar component with localization support and we published the application folder using Visual Studio. Then, hosted the application on an IIS server and we were not able to replicate the problem.


We have attached the sample file used in the replication process.


Reference Image:




To assist you better, could you please share more details like package versions, target framework, application type, images or videos, sample code(if applicable). These details will enable us to understand and address the issue more effectively.

 

Please get back to us with requested details and further query if any. 


Regards,  

Arun Kumar R


Attachment: Localization_82d23d1b.zip

Loader.
Up arrow icon