473,398 Members | 2,525 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,398 software developers and data experts.

TypeLoadException??

I'm implemeting an application for a smartdevice using c# and all
through the implementation things were goin fine, and suddenly the
same function that was called peacefully started generating a
TypeLoadExcpetion. I don't understand why.
This is t the function call:

try
{

exporter.Export(this.currentProject, fileName);
}
catch (TypeLoadException ee)
{
MessageBox.Show("second" + ee.Message);
}
and this is the function until the exception takes place:

public void Export(Projects project, string filename)
{
s.WriteLine("here2");
s.WriteLine(project.getpID().ToString());
s.WriteLine(filename);
XmlDocument myDoc = new XmlDocument();

If anyone knows the solution, please inform me..
Thanks

Sageda

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
Nov 16 '05 #1
2 1831
You'll need to provide more information. Do you have a small but
complete sample that can demonstrate the problem? Have you tried
stepping through the method with the debugger?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 11 Dec 2004 13:55:09 -0600, sa****@gmail-dot-com.no-spam.invalid
(Sageda) wrote:
I'm implemeting an application for a smartdevice using c# and all
through the implementation things were goin fine, and suddenly the
same function that was called peacefully started generating a
TypeLoadExcpetion. I don't understand why.
This is t the function call:

try
{

exporter.Export(this.currentProject, fileName);
}
catch (TypeLoadException ee)
{
MessageBox.Show("second" + ee.Message);
}
and this is the function until the exception takes place:

public void Export(Projects project, string filename)
{
s.WriteLine("here2");
s.WriteLine(project.getpID().ToString());
s.WriteLine(filename);
XmlDocument myDoc = new XmlDocument();

If anyone knows the solution, please inform me..
Thanks

Sageda

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*


Nov 16 '05 #2
I fixed it thanks.. I still don't understand what the problem was, bas
it's not there anymore..

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
Nov 16 '05 #3

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

Similar topics

1
by: cody | last post by:
my problem is as follows: abstract class A { abstract Foo(); static Doit() { A = new B(); } }
0
by: Magnus Lindhe | last post by:
Hello, I'm trying to deserialize an XML document into a objects with the XmlSerializer which works fine in my NUnit test suit but fails with a TypeLoadException in the server. The difference...
1
by: DC | last post by:
Hi, I am programming a windows service and all went well until I needed to use a simple array of chars which I initialize like this: char test = new char {'\x002F', '\x005E'}; Immediatly...
2
by: Scott Wisniewski | last post by:
I am attempting to write a class to expose the STL map class to .NET languages as an IDictionary. As part of the implementation I created an implementation of IEnumerator that contains a pointer to...
0
by: ryan groth | last post by:
Every three or four compiles I get a TypeLoadException everytime I run a web application on the same one or two dlls. The exception information is vauge, no file errors, no permission errors, no...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
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...
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,...

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.