The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Solving System.TypeInitializationException when running the Regulator

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Roy Osherove

Posts: 1807
Nickname: royo
Registered: Sep, 2003

Roy Osherove is a .Net consultant based in Israel
Solving System.TypeInitializationException when running the Regulator Posted: Sep 3, 2004 4:12 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Roy Osherove.
Original Post: Solving System.TypeInitializationException when running the Regulator
Feed Title: ISerializable
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/rosherove/Rss.aspx
Feed Description: Roy Osherove's persistent thoughts
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Roy Osherove
Latest Posts From ISerializable

Advertisement
I've recently started to get emails from people who had The Regulator break on their system after installing SP2 (or some other hotfix...). I'm not sure exactly how it broke, but I know how to fix it.
Here's a typical email and the solution is in the end:
 
"I have been using your Regulator utility for some time and now all of a sudden I'm getting the following error:
 
An unhandled exception of type 'System.TypeInitializationException' occurred in Regulator.exe
Additional information: The type initializer for "Regulator.SDK.AppContext" threw an exception.
I'm assuming XP SP2 has something to do with this but I'm not 100% certain because a couple colleagues are also using it with SP2 installed with no ill effects.
 
I noticed that Net Framework 1.1 SP1 was out yesterday, but I haven't thrown that on yet. Think I'll wait a while.
 
 
BTW, I tried a repair and also an uninstall/reinstall, with the same error cropping up each time. Any ideas?"
 
 
The solution:
Install The Regulator again but to a different folder.That should fix it.
The plugin configuration file was messed up and the application can't read it and load the plugins. Re-installing it to a different folder also creates the config file again. Repair will not touch existing config files for some reason.

Read: Solving System.TypeInitializationException when running the Regulator

Topic: Xamlon 0.9 Beta 5, Free Previous Topic   Next Topic Topic: More Tweaks

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use