473,406 Members | 2,352 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

The type initializer for "System.Threading.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.TypeInitializationException: The type
initializer for "System.Threading.Thread" threw an exception. --->
System.ArgumentOutOfRangeException: Load factor needs to be between
0.1 and 1.
Parameter name: loadFactor
at System.Collections.Hashtable..ctor(Int32 capacity, Single
loadFactor, IHashCodeProvider hcp, IComparer comparer)
at System.LocalDataStoreMgr..ctor()
at System.Threading.Thread..cctor()
--- End of inner exception stack trace ---

Source code is as follows:

Option Strict On
Imports System
Imports System.Diagnostics
Imports System.IO

Namespace MWareBackup
Public Module StartupModule
Public Sub Main()
Dim DisplayDate as String = Date.Now.ToString("MM-dd-yyyy")
Dim BackupFilename as String = "<folder name I can't provide>" &
DisplayDate & ".cab"
Console.WriteLine("Backup Utility Running For " & DisplayDate &
".")
Console.WriteLine("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.ToString("MM-dd-yyyy")"

Sep 25 '07 #1
0 2026

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

Similar topics

1
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...
6
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...
3
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...
0
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...
0
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...
4
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:...
1
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. ...
1
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...
2
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.