473,761 Members | 4,082 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The type initializer for "System.Threadi ng.Thread" threw an exception.

I'm having a strange problem, I have a small executable that runs a
backup for a some data nightly, and as of September 22, 2007 it has
ceased to function with the following error:

Unhandled Exception: System.TypeInit ializationExcep tion: The type
initializer for "System.Threadi ng.Thread" threw an exception. --->
System.Argument OutOfRangeExcep tion: Load factor needs to be between
0.1 and 1.
Parameter name: loadFactor
at System.Collecti ons.Hashtable.. ctor(Int32 capacity, Single
loadFactor, IHashCodeProvid er hcp, IComparer comparer)
at System.LocalDat aStoreMgr..ctor ()
at System.Threadin g.Thread..cctor ()
--- End of inner exception stack trace ---

Source code is as follows:

Option Strict On
Imports System
Imports System.Diagnost ics
Imports System.IO

Namespace MWareBackup
Public Module StartupModule
Public Sub Main()
Dim DisplayDate as String = Date.Now.ToStri ng("MM-dd-yyyy")
Dim BackupFilename as String = "<folder name I can't provide>" &
DisplayDate & ".cab"
Console.WriteLi ne("Backup Utility Running For " & DisplayDate &
".")
Console.WriteLi ne("Backup Filename = " & BackupFileName & ".")
Process.Start(" C:\PACL\PACOMP. EXE", "-a -r -p -c2 -e2 -w -lC:
\Backup.log " & BackupFilename & " <Other folder name I can't provide>
\*.*")
End Sub
End Module
End Namespace

Of all places, the exception is thrown in the line "Dim DisplayDate as
String = Date.Now.ToStri ng("MM-dd-yyyy")"

Sep 25 '07 #1
0 2072

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
536
by: Rafael | last post by:
Hi, I hope I can find some help for this problem IDE: Visual Studio.NET 2003 Developer Editio Language: C# Problem: "An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll. Additional information: Object reference not set to an instance of an object. Visual Studio's IDE is not allowing me to develop projects in C#... I've trying to create a simple Windows Forms project using Visual Studio.NET...
6
17973
by: Selen | last post by:
I am using asp.net c#...I am adding a field to cystal report but I get error Exception of type System.Exception was thrown. How can I solve this error...When I insert a field from another table I dont get error... Thanks...
3
2468
by: cristiank | last post by:
hi everybody, I need to clear something out, does anybody have ever encountered such an exception until now : "Un unhandled exception of type System.NullReferenceException occurred in system.windows.forms.dll Additional information: Object reference not set to an instance of an object." I receive this exception when I use HelpProvider and play a little with the question mark upon different controls.
0
1400
by: Selen | last post by:
I am using asp.net c#...I am adding a field to crystal report but I get error Exception of type System.Exception was thrown. How can I solve this error...When I insert a field from another table I dont get error... Thanks...
0
2150
by: Siberwulf | last post by:
I'm trying to fetch an XML document from a website through an assembly i built and attached to SQL 2005. Here is my code for the SPROC assembly: public static void fetch_FeedData(string m_URL) { SqlPipe p = SqlContext.Pipe;
4
15025
by: John Dalberg | last post by:
I am looking at a problem which is preventing my code to get a reference to any asp control inside a div section which has a runat=server attribute. This can be reproduced in a simple test: Create a blank webform and add this html inside the <formsection: <div id="myDiv" runat=server> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> </div> In the code behind, add this code in the page_load event handler:
1
3712
by: danfoss | last post by:
Hi, I programmed the following managed C++ code, but it cannot be compiled. error C3699: '*': cannot use this indirection on type 'System::Exception'. Can somebody tell me why? Thanks. #include "stdafx.h" #include "LoadMappingTool.h" using namespace Mapping;
1
2040
by: JoeP | last post by:
Hi All, 1) I am using code like the below outside of the Try.. Catch... Endtry and getting this message Within the Immediate Window. An exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll but was not handled in user code What can be done to avoid the above message?
2
4736
by: lily86 | last post by:
i'm very new so i hope all of u can help me. when i debug my webforms this error occur "An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll Additional information: System error." pls help me solve the problem...thanks.. my code: Imports System.Data.SqlClient Imports System.Data.OleDb Imports System.Globalization Imports System.Threading Public Class PhoneBook
0
9336
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9948
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9902
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7327
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6603
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5364
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3866
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3446
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.