ntdll:find_reg_tz_info Error when running a .net application

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
4r1y4n
Newbie
Newbie
Posts: 3
Joined: Sat Aug 18, 2012 12:38 pm

ntdll:find_reg_tz_info Error when running a .net application

Post by 4r1y4n »

Hi
I'm trying to run TumblRipper that requires .NET framework 2.0
I installed Mono-2.10.8 from winetricks
But now when I try to run it , it gives this error in "ntdll":

Code: Select all

fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias -210, std (d/m/y): 21/09/2012, dlt (d/m/y): 21/03/2012

Unhandled Exception: System.NotSupportedException: Can't get timezone name.
  at System.CurrentSystemTimeZone..ctor (Int64 lnow) [0x00000] in <filename unknown>:0 
  at System.TimeZone.get_CurrentTimeZone () [0x00000] in <filename unknown>:0 
  at System.DateTime.get_Now () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.TextBoxBase..ctor () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.TextBox..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.TextBox:.ctor ()
  at TumblRipper.Form1.InitializeComponent () [0x00000] in <filename unknown>:0 
  at TumblRipper.Form1.init () [0x00000] in <filename unknown>:0 
  at TumblRipper.Form1..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) TumblRipper.Form1:.ctor ()
  at TumblRipper.Program.Main (System.String[] Args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.NotSupportedException: Can't get timezone name.
  at System.CurrentSystemTimeZone..ctor (Int64 lnow) [0x00000] in <filename unknown>:0 
  at System.TimeZone.get_CurrentTimeZone () [0x00000] in <filename unknown>:0 
  at System.DateTime.get_Now () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.TextBoxBase..ctor () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.TextBox..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.TextBox:.ctor ()
  at TumblRipper.Form1.InitializeComponent () [0x00000] in <filename unknown>:0 
  at TumblRipper.Form1.init () [0x00000] in <filename unknown>:0 
  at TumblRipper.Form1..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) TumblRipper.Form1:.ctor ()
  at TumblRipper.Program.Main (System.String[] Args) [0x00000] in <filename unknown>:0 
How Can I fix it?

Thanks
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: ntdll:find_reg_tz_info Error when running a .net applica

Post by vitamin »

4r1y4n wrote:fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias -210, std (d/m/y): 21/09/2012, dlt (d/m/y): 21/03/2012
Try setting timezone to something more common, like US/Eastern. If it fixes your problem - you might want to import relevant timezone information from Windows registry.
4r1y4n
Newbie
Newbie
Posts: 3
Joined: Sat Aug 18, 2012 12:38 pm

Re: ntdll:find_reg_tz_info Error when running a .net applica

Post by 4r1y4n »

vitamin wrote:
4r1y4n wrote:fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias -210, std (d/m/y): 21/09/2012, dlt (d/m/y): 21/03/2012
Try setting timezone to something more common, like US/Eastern. If it fixes your problem - you might want to import relevant timezone information from Windows registry.
Hi
Yes Running this fixed the problem:

Code: Select all

TZ=America/New_York wine TumblRipper.exe
Thanks
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Re: ntdll:find_reg_tz_info Error when running a .net applica

Post by DanKegel »

What was TZ before?
What country is this?

I'd like to reproduce that problem, but can't.
We should file a bug to handle that timezone better.

Incidentally, in wine-1.5.10, the app runs without manually installing mono.
(Wine now installs mono automatically.)
4r1y4n
Newbie
Newbie
Posts: 3
Joined: Sat Aug 18, 2012 12:38 pm

Re: ntdll:find_reg_tz_info Error when running a .net applica

Post by 4r1y4n »

DanKegel wrote:What was TZ before?
What country is this?

I'd like to reproduce that problem, but can't.
We should file a bug to handle that timezone better.

Incidentally, in wine-1.5.10, the app runs without manually installing mono.
(Wine now installs mono automatically.)
Hi
TZ is an environment variable that stores timezone! (this technique sets time zone temporary only for this session so I can keep my original stored time zone and don't need to change it every time I want to run this app.)
"America/New_York" is New York city in USA ; and it is the working zone!
The zone that didn't worked for me was "Asia/Tehran".

I didn't test wine 1.5 mine is wine-1.4 ; I will test 1.5 too ; Thanks
Locked