[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Visual Studio 2005 Error "TypeInitialization was unhandled by user code"

Posted on 2006-05-31
6
Medium Priority
?
219 Views
Last Modified: 2010-04-23
Hi

I am building a project in Visual Studio 2005 and have received
the error message mentioned in the header above.

What steps do I take to find the root of such a problem??

Thanks
0
Comment
Question by:Murray Brown
  • 3
  • 3
6 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 16797660
Murray,

Not enough information to help.  What type of project?  Are you saying that you don't know where this is coming from?  No stack information?

Bob
0
 

Author Comment

by:Murray Brown
ID: 16797694
Hi Bob

Its a VSTO 2005 Project and I may have used a variable twice.

I am just not sure where to begin looking when such an error occurs as I am used to
the particular pierce of code being highlighted, whereas with this it just highlighted
where I called the procedure: ie Call ExProc

I really just want to know general guidelines on where to look and how to find exactly which line of code
is not working.

This may sound too general.

Thanks

Murray
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 16798189
What is ExProc?

Bob
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:Murray Brown
ID: 16798233
ExProc is just a procedure name. Sorry if this is too general.
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 2000 total points
ID: 16798242
Ok, so what does ExProc do?  Does it have any exception handling (Try/Catch)?

Bob
0
 

Author Comment

by:Murray Brown
ID: 16798267
Hi Bob

Aaaah I am seeing the errors of my ways.

So I should just have built some exception handeling in. It is a very simple procedure
that assigns string values to a RichTextBox based on certain criteria.

It was the only procedire in which I have not used Try... Catch.

I will go and build that in

Thanks for the direction
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question